This commit is contained in:
cansnow
2026-01-09 09:15:59 +08:00
parent 78386d4cc1
commit 7913a63a39
51 changed files with 1048 additions and 449 deletions
+9 -4
View File
@@ -235,6 +235,7 @@
}
},
confirm() {
const _this = this;
//console.log(this.checkedUserIDList,this.checkedGroupIDList);
//return false;
// if (this.activeTab) {
@@ -262,16 +263,20 @@
return;
}
if (this.type === ContactChooseTypes.Invite) {
console.log(_this.getCheckedUserInfo,_this.groupID);
IMSDK.asyncApi(IMSDK.IMMethods.InviteUserToGroup, IMSDK.uuid(), {
groupID: this.groupID,
groupID: _this.groupID,
reason: "",
userIDList: this.getCheckedUserInfo.map((user) => user.userID),
userIDList: _this.getCheckedUserInfo.map((user) => user.userID),
})
.then(() => {
toastWithCallback("操作成功", () => uni.navigateBack());
this.comfirmLoading = false;
_this.comfirmLoading = false;
})
.catch(() => toastWithCallback("操作失败"));
.catch((e) => {
console.log(e);
toastWithCallback("操作失败")
});
return;
}
@@ -66,8 +66,6 @@
return true;
}
return false;
console.log(friend.nickname);
return friend.nickname.indexOf(this.keyword) !==-1 || friend?.remark.indexOf(this.keyword) !==-1
}
),
],