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