diff --git a/pages/meetingDetail/index.vue b/pages/meetingDetail/index.vue index 40f8129..6d37c9e 100644 --- a/pages/meetingDetail/index.vue +++ b/pages/meetingDetail/index.vue @@ -659,7 +659,7 @@ applyType:2 } await this.validateObject(userApplyInfo, this.applyRules) - this.applyInfo = Object.assign(bookingInfo, userApplyInfo) + app.globalData.applyInfo = Object.assign(bookingInfo, userApplyInfo) this.readShow=true } } catch (error) { @@ -672,24 +672,27 @@ }, async postApply(){ this.readShow=false + uni.navigateTo({ + url: `/pages/sign/sign?isSelfStudy=${this.isSelfStudy}` + }) //单位申请 - if(this.applyType===2){ - uni.navigateTo({ - url: `/pages/sign/sign?isSelfStudy=${this.isSelfStudy}` - }) - }else{ - // 这里可以添加实际的API调用 - const res = await post('/api/v1/app_auth/metting-room/order/register', this.applyInfo) - if (!res || !res.success) { - throw new Error('会议室预定失败'); - } + // if(this.applyType===2){ + // uni.navigateTo({ + // url: `/pages/sign/sign?isSelfStudy=${this.isSelfStudy}` + // }) + // }else{ + // // 这里可以添加实际的API调用 + // const res = await post('/api/v1/app_auth/metting-room/order/register', this.applyInfo) + // if (!res || !res.success) { + // throw new Error('会议室预定失败'); + // } - if (res.success == true) { - uni.redirectTo({ - url: `/pages/docList/index?files=${JSON.stringify(res.data)}&&isSelfStudy=${this.isSelfStudy}` - }) - } - } + // if (res.success == true) { + // uni.redirectTo({ + // url: `/pages/docList/index?files=${JSON.stringify(res.data)}&&isSelfStudy=${this.isSelfStudy}` + // }) + // } + // } }