Przeglądaj źródła

fix:地图点击功能

chenzhen2 1 rok temu
rodzic
commit
5dca02d882

+ 8 - 0
src/packagesEnv/pages/intelligentControl/home2.wpy

@@ -783,6 +783,14 @@ wepy.component({
     },
     // 获取选中的空间
     selectAreaFun(currentSelect) {
+      if (!currentSelect.isCompanyControl) {
+        wx.showToast({
+          title: '不可选区域',
+          duration: 1000,
+          icon: 'none'
+        });
+        return;
+      }
       this.selectArea = null;
       this.doSelectArea(currentSelect);
     },