From 2f5c4aceee1e9a8beaa15baf52730840fea2b0ca Mon Sep 17 00:00:00 2001 From: donqi Date: Thu, 30 Jun 2022 16:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E9=93=BE=E6=8E=A5=E6=88=90?= =?UTF-8?q?=E4=B8=BA=E6=88=90=E5=91=98=E7=9A=84=E6=8E=A5=E5=8F=A3=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E6=A0=A1=E9=AA=8C=E6=98=AF=E5=90=A6=E5=B7=B2=E7=BB=8F?= =?UTF-8?q?=E5=8A=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/area-proxy/my-team.vue | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pages/area-proxy/my-team.vue b/pages/area-proxy/my-team.vue index 393d41f..82c5dc6 100644 --- a/pages/area-proxy/my-team.vue +++ b/pages/area-proxy/my-team.vue @@ -99,6 +99,7 @@ }, methods: { async beInvited2Team(inviteMasterObj) { + this.loadBasicData(); this.inviteMasterObj = inviteMasterObj; let curUserInfo = await this.login(); if (curUserInfo == null || curUserInfo.status !== 0) { @@ -118,12 +119,15 @@ uni.reLaunch({ 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 + }) } } },