Ver código fonte

添加禁用逻辑

zhaoxiaohai 3 anos atrás
pai
commit
dcc3c1c7e6
1 arquivos alterados com 12 adições e 5 exclusões
  1. 12 5
      pages/group/modules/Yl-group/index.js

+ 12 - 5
pages/group/modules/Yl-group/index.js

@@ -37,12 +37,19 @@ Component({
             });
         },
         addUser() {
-            if (this.data.add) wx.navigateTo({
-                url: '/pages/group/index?item=' + JSON.stringify({
-                    ownertable: this.data.ownertable,
-                    ownerid: this.data.ownerid
+            if (this.data.add) {
+                wx.navigateTo({
+                    url: '/pages/group/index?item=' + JSON.stringify({
+                        ownertable: this.data.ownertable,
+                        ownerid: this.data.ownerid
+                    })
+                })
+            } else {
+                wx.showToast({
+                    title: '当前状态不可查询',
+                    icon: "none"
                 })
-            })
+            }
         },
     }
 })