zhaoxiaohai 2 years ago
parent
commit
d129771528
1 changed files with 4 additions and 3 deletions
  1. 4 3
      packageA/group/index.js

+ 4 - 3
packageA/group/index.js

@@ -8,6 +8,7 @@ Page({
         keyword: "", //搜索关键字
     },
     handelSubmit(userids) {
+        const that = this;
         wx.showModal({
             title: '提示',
             content: '是否确认添加成员',
@@ -17,8 +18,8 @@ Page({
                 if (confirm) _Http.basic({
                     "id": 20220930103601,
                     "content": {
-                        "ownertable": this.data.ownertable,
-                        "ownerid": this.data.ownerid,
+                        "ownertable": that.data.ownertable,
+                        "ownerid": that.data.ownerid,
                         userids
                     }
                 }).then(res => {
@@ -27,7 +28,7 @@ Page({
                         title: res.data,
                         icon: "none"
                     });
-                    this.getList();
+                    that.getList();
                     wx.showToast({
                         title: '添加成功',
                         icon: "none"