liuyg
2021-12-27 4dabd9bf6d4d28aa7aa917e09da919427407206f
+处理图集
2 files modified
21 ■■■■■ changed files
src/components/mobileWindow/index.vue 17 ●●●● patch | view | raw | blame | history
src/components/mobilemap/index.vue 4 ●●●● patch | view | raw | blame | history
src/components/mobileWindow/index.vue
@@ -83,10 +83,7 @@
        let queryData = this.query.query;
        // console.log(queryData);
        this.title = queryData.name;
        if (queryData.bgImg) {
          this.srcList = queryData.bgImg.split(",");
          this.url = this.srcList[0];
        }
        if (queryData.seebut) {
          this.seebut = queryData.seebut;
          for (let k in this.seebut) {
@@ -109,6 +106,14 @@
              name: "去这",
            },
          ];
        }
        if (queryData.bgImg) {
          this.srcList = queryData.bgImg.split(",");
          this.url = this.srcList[0];
        } else {
          this.seebut = this.seebut.filter((res) => {
            return res.name != "图集";
          });
        }
        if (queryData.video) {
          if (queryData.from == "labels") {
@@ -179,7 +184,9 @@
        );
      } else if (val == "图集") {
        let imgsDom = document.getElementById("mobileBigImgs");
        imgsDom.click();
        if (imgsDom) {
          imgsDom.click();
        }
      } else if (val == "视频") {
        this.seebut[this.seebut.length - 1].name = "返回";
        this.video = this.query.query.video;
src/components/mobilemap/index.vue
@@ -326,8 +326,8 @@
      viewer.compass.enable = false;
      viewer.zoomController.enable = true;
      viewer.locationBar.enable = true;
      viewer.distanceLegend.enable = true;
      viewer.locationBar.enable = false;
      viewer.distanceLegend.enable = false;
    }
    DC.ready(initViewer);