Explorar o código

fix:地图点击功能

chenzhen2 %!s(int64=2) %!d(string=hai) anos
pai
achega
5dca02d882
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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);
     },