Sfoglia il codice sorgente

fix:地图点击功能

chenzhen2 1 anno fa
parent
commit
5dca02d882
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      src/packagesEnv/pages/intelligentControl/home2.wpy

+ 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);
     },