This commit is contained in:
Leo_Ding 2025-09-09 09:34:18 +08:00
parent d81d1e316c
commit 83d5a99629

View File

@ -659,7 +659,7 @@
applyType:2 applyType:2
} }
await this.validateObject(userApplyInfo, this.applyRules) await this.validateObject(userApplyInfo, this.applyRules)
this.applyInfo = Object.assign(bookingInfo, userApplyInfo) app.globalData.applyInfo = Object.assign(bookingInfo, userApplyInfo)
this.readShow=true this.readShow=true
} }
} catch (error) { } catch (error) {
@ -672,24 +672,27 @@
}, },
async postApply(){ async postApply(){
this.readShow=false this.readShow=false
uni.navigateTo({
url: `/pages/sign/sign?isSelfStudy=${this.isSelfStudy}`
})
// //
if(this.applyType===2){ // if(this.applyType===2){
uni.navigateTo({ // uni.navigateTo({
url: `/pages/sign/sign?isSelfStudy=${this.isSelfStudy}` // url: `/pages/sign/sign?isSelfStudy=${this.isSelfStudy}`
}) // })
}else{ // }else{
// API // // API
const res = await post('/api/v1/app_auth/metting-room/order/register', this.applyInfo) // const res = await post('/api/v1/app_auth/metting-room/order/register', this.applyInfo)
if (!res || !res.success) { // if (!res || !res.success) {
throw new Error('会议室预定失败'); // throw new Error('');
} // }
if (res.success == true) { // if (res.success == true) {
uni.redirectTo({ // uni.redirectTo({
url: `/pages/docList/index?files=${JSON.stringify(res.data)}&&isSelfStudy=${this.isSelfStudy}` // url: `/pages/docList/index?files=${JSON.stringify(res.data)}&&isSelfStudy=${this.isSelfStudy}`
}) // })
} // }
} // }
} }