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
}
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
//
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}`
// })
// }
// }
}