1
This commit is contained in:
parent
d81d1e316c
commit
83d5a99629
@ -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}`
|
||||
// })
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user