点击链接成为成员的接口需要校验是否已经加入
This commit is contained in:
parent
9cf341a11c
commit
2f5c4aceee
|
|
@ -99,6 +99,7 @@
|
|||
},
|
||||
methods: {
|
||||
async beInvited2Team(inviteMasterObj) {
|
||||
this.loadBasicData();
|
||||
this.inviteMasterObj = inviteMasterObj;
|
||||
let curUserInfo = await this.login();
|
||||
if (curUserInfo == null || curUserInfo.status !== 0) {
|
||||
|
|
@ -119,11 +120,14 @@
|
|||
url: '/pages/index/index'
|
||||
})
|
||||
},
|
||||
loadBasicData() {
|
||||
this.pageSize = this.$globalData.initPageSize;
|
||||
this.curUserInfo = this.$request.getCurUserInfo();
|
||||
},
|
||||
async loadData() {
|
||||
// this.myTeamInfo = await this.$api.data('myTeamInfo');
|
||||
// this.members = this.myTeamInfo.members;
|
||||
this.pageSize = this.$globalData.initPageSize;
|
||||
this.curUserInfo = this.$request.getCurUserInfo();
|
||||
this.loadBasicData();
|
||||
this.loadTeamPage();
|
||||
},
|
||||
async reloadData() {
|
||||
|
|
@ -204,11 +208,17 @@
|
|||
let res = await this.$request.addTeam(params);
|
||||
if (res.code === 0) {
|
||||
uni.showToast({
|
||||
title: '邀请成功',
|
||||
title: '加入成功',
|
||||
icon: 'success',
|
||||
mask: true
|
||||
})
|
||||
this.reloadData();
|
||||
} else if (res.code === 301) {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
mask: true
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue