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