diff --git a/teamwork/pages/team/activity-detail.vue b/teamwork/pages/team/activity-detail.vue index 39a3fcd1100e7054b56c23e5b60ae279e8ea6351..6a6b7261f4fa26fd0e9ed61b30a2204420165035 100644 --- a/teamwork/pages/team/activity-detail.vue +++ b/teamwork/pages/team/activity-detail.vue @@ -117,16 +117,32 @@ })) await this.showTT1(); - } else if (opt == '报名已停止') {} + } else {} }, Refresh() { - // 刷新当前页面 - var pages = getCurrentPages(); //获取所有页面的数组对象 - var currPage = pages[pages.length - 1]; //当前页面 - uni.reLaunch({ - url: currPage.$page.fullPath - }) + uniCloud.callFunction({ + name: 'fe-team-activityDetail', + data: { + userId: this.userId, + activityId: this.activityId + } + }) + .then(res => { + console.log(res) + this.name = res.result.data.username + this.production = res.result.data.content + this.startDate = res.result.data.startDate + this.endDate = res.result.data.endDate + this.object = res.result.data.participants + this.alreadyObject = res.result.data.enrollment + this.place = res.result.data.place + this.contact = res.result.data.contact + this.icon = res.result.data.icon + this.signStatus = res.result.qualification + }).catch((err => { + console.log(err) + })) }, showTT1() { if (this.applyCode2 == 200) { diff --git a/teamwork/pages/team/add-team-activity.vue b/teamwork/pages/team/add-team-activity.vue index 0261a548151afbff2ac73ffa4d020f881e0effd7..487cdc73ff083fa880ecbe6c3661591d85f89e66 100644 --- a/teamwork/pages/team/add-team-activity.vue +++ b/teamwork/pages/team/add-team-activity.vue @@ -46,6 +46,7 @@