shuishen
2022-03-08 3f957f1b2edf8ad7e35f6c3f64b47f7704fa366d
src/components/mobilePopupOur/index.vue
@@ -113,7 +113,7 @@
      this.getListSearchMethod(this.mBigPopup.value);
      return;
    }
    this.choiceMain = this.popupOurOpenData.qurey; // 进入的主题:列:机构单位,社区建筑
    this.choiceMain = this.popupOurOpenData.qurey; // 进入的主题:列:机构单位,校区建筑
    this.choiceData = this.popupOurOpenData.main; //带入数据  包括name、type、method
    this.choiceValue = this.popupOurOpenData.main[0].name;
@@ -192,12 +192,12 @@
        const data = res.data.data;
        let outList = [];
        if (
          this.mBigPopup.name == "社区建筑" ||
          this.mBigPopup.name == "校区建筑" ||
          this.mBigPopup.name == "文化风景"
        ) {
          // 社区建筑使用该id获取具体信息
          // 校区建筑使用该id获取具体信息
          data.forEach((item) => {
            let icon = item.tpurl.split(",");
            let icon = item.tpurl ? item.tpurl.split(",") : item.id;
            outList.push({
              id: item.id,
              name: item.mechanismname,
@@ -206,14 +206,14 @@
              from: this.choiceMain,
              video: item.videourl,
              buts:
                this.mBigPopup.name == "社区建筑" ||
                this.mBigPopup.name == "校区建筑" ||
                this.mBigPopup.name == "文化风景"
                  ? ["定位", "实景", "图集"]
                  : ["定位"],
            });
          });
        } else if (this.mBigPopup.name == "活动") {
          // 社区建筑使用该id获取具体信息
          // 校区建筑使用该id获取具体信息
          data.records.forEach((item) => {
            let icon = item.tpurl.split(",");
            let useData = {
@@ -234,7 +234,7 @@
              introduce: item.context,
              video: item.videourl,
              buts:
                that.mBigPopup.name == "社区建筑" ||
                that.mBigPopup.name == "校区建筑" ||
                that.mBigPopup.name == "文化风景"
                  ? ["定位", "实景", "图集"]
                  : ["定位"],
@@ -273,7 +273,7 @@
              introduce: item.introduce,
              video: item.videourl,
              buts:
                that.mBigPopup.name == "社区建筑" ||
                that.mBigPopup.name == "校区建筑" ||
                that.mBigPopup.name == "文化风景"
                  ? ["定位", "实景", "图集"]
                  : ["定位"],
@@ -305,26 +305,26 @@
        //正常获取全部数据
        let outList = [];
        data.forEach((item) => {
          let icon = item.list.tpurl.split(",");
          let icon = item.tpurl.split(",");
          let useData = {
            name: item.list.mechanismname,
            lntLat: [item.list.jd, item.list.wd],
            alt: item.list.gd,
            heading: item.list.heading,
            pitch: item.list.pitch,
            roll: item.list.roll,
            bgImg: item.list.tpurl,
            name: item.mechanismname,
            lntLat: [item.jd, item.wd],
            alt: item.gd,
            heading: item.heading,
            pitch: item.pitch,
            roll: item.roll,
            bgImg: item.tpurl,
            icon: icon,
            icons: icon + item.list.mechanismname, //图片响应改变
            icons: icon + item.mechanismname, //图片响应改变
            from: this.choiceMain,
            QRImg: item.list.codeurl,
            websiteUrl: item.list.websiteurl,
            telePhone: item.list.telephone,
            address: item.list.address,
            introduce: item.list.introduce,
            video: item.list.videourl,
            QRImg: item.codeurl,
            websiteUrl: item.websiteurl,
            telePhone: item.telephone,
            address: item.address,
            introduce: item.introduce,
            video: item.videourl,
            buts:
              that.mBigPopup.name == "社区建筑" ||
              that.mBigPopup.name == "校区建筑" ||
              that.mBigPopup.name == "文化风景"
                ? ["定位", "实景", "图集"]
                : ["定位"],