群重复邀请处理

This commit is contained in:
2022-02-25 14:45:38 +08:00
parent 7b204e4a50
commit 013c030963
2 changed files with 12 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
{
{
"name" : "ZH-HEALTH",
"appid" : "__UNI__C29473D",
"description" : "ZH-HEALTH您手上的健康管理专家",
"versionName" : "1.0.19",
"versionName" : "1.0.20",
"versionCode" : 100,
"transformPx" : false,
/* 5+App */

View File

@@ -26,7 +26,8 @@
</u-checkbox-group>
</u-index-list>
<view class="bottom">
<span class="onInvite" @click="onInvite">完成<span>{{`(${checkboxValue.length})` || ''}}</span></span>
<span class="onInvite" v-if="canInvite"> 添加中<span>{{`(${checkboxValue.length})` || ''}}</span></span>
<span class="onInvite" v-else @click="onInvite">完成<span>{{`(${checkboxValue.length})` || ''}}</span></span>
</view>
</block>
<view class="no-lists" v-else>
@@ -63,7 +64,8 @@
friends: [],
orignalFriends: [],
checkboxValue: [],
selectValue: []
selectValue: [],
canInvite:false
};
},
onLoad(e) {
@@ -123,7 +125,8 @@
},
onInvite() {
console.log(this.checkboxValue, 'userIds.....')
console.log(this.selectValue, 'userIds.....')
console.log(this.selectValue, 'userIds.....')
this.canInvite = true
let userIds = []
this.checkboxValue.filter(item => {
if (!utils.inArray(item, this.selectValue)) {
@@ -136,9 +139,11 @@
delta: 1,
animationType: 'pop-out',
animationDuration: 200
});
});
this.canInvite = false
uni.$emit('groupInvitedUser')
}).catch(err => {
}).catch(err => {
this.canInvite = false
uni.showToast({
icon: 'none',
title: err.message