From 81f54040c2cb65537c6c6e1db8358a39a57dea0d Mon Sep 17 00:00:00 2001
From: mayisheng <admin>
Date: Mon, 15 Aug 2022 16:14:01 +0800
Subject: [PATCH] 1

---
 src/components/mobileActivity/index.vue |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/components/mobileActivity/index.vue b/src/components/mobileActivity/index.vue
index 074476d..4a859d1 100644
--- a/src/components/mobileActivity/index.vue
+++ b/src/components/mobileActivity/index.vue
@@ -1,4 +1,7 @@
 <template>
+  <!-- 活动弹窗
+mobileActivity
+ -->
   <div
     id="mobileActivity"
     :style="{ height: height + 'px' }"
@@ -156,6 +159,7 @@
     //       this.height = this.useHeight;
     //     }
     //   },
+    //当弹窗显示时,开始操作数据
     showActivity() {
       if (this.showActivity) {
         this.inToInit(); // 初始化
@@ -223,6 +227,7 @@
           //     }
           //   }
           // }
+          //处理底图
           window.serviceMapSee = {};
           getdetail(this.showActivityData.opendata.id).then((res) => {
             let name = res.data.data.mapname.split(",");
@@ -239,7 +244,7 @@
                 url: url[k],
                 to: "serviceMap",
               };
-              this.serviceMap.push(d);
+              this.serviceMap.push(d); //数据层
               // console.log(d, "see");
 
               window.onceServiceMap =
@@ -250,8 +255,8 @@
                 flag: true,
                 layer: global.viewer.imageryLayers.addImageryProvider(
                   window.onceServiceMap
-                ),
-                source: window.onceServiceMap,
+                ), //渲染层
+                source: window.onceServiceMap, //渲染源
               };
               window.onceServiceMap = null;
             }
@@ -266,7 +271,7 @@
               global.viewer.imageryLayers.remove(window.serviceMapSee[k].layer);
             }
           }
-          window.serviceMapSee == {};
+          window.serviceMapSee = {};
         }
       }
     },
@@ -349,6 +354,7 @@
         item.img = item.normal;
       }
       if (item.to == "serviceMap") {
+        //再次判断是否是底图的加载
         console.log(window.serviceMapSee[item.layer]);
         //清除
         if (!item.flag && window.serviceMapSee[item.layer].flag) {

--
Gitblit v1.9.3