群重复邀请处理
This commit is contained in:
@@ -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特有相关 */
|
||||
|
||||
@@ -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) {
|
||||
@@ -124,6 +126,7 @@
|
||||
onInvite() {
|
||||
console.log(this.checkboxValue, 'userIds.....')
|
||||
console.log(this.selectValue, 'userIds.....')
|
||||
this.canInvite = true
|
||||
let userIds = []
|
||||
this.checkboxValue.filter(item => {
|
||||
if (!utils.inArray(item, this.selectValue)) {
|
||||
@@ -137,8 +140,10 @@
|
||||
animationType: 'pop-out',
|
||||
animationDuration: 200
|
||||
});
|
||||
this.canInvite = false
|
||||
uni.$emit('groupInvitedUser')
|
||||
}).catch(err => {
|
||||
this.canInvite = false
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: err.message
|
||||
|
||||
Reference in New Issue
Block a user