|
|
|
@ -158,17 +158,20 @@
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async goBook(){
|
|
|
|
async goBook(){
|
|
|
|
await this.$u.api.user().then(res => {
|
|
|
|
uni.navigateTo({
|
|
|
|
if (res.user.appointment_total - res.user.pass_appointments > 0) {
|
|
|
|
url: '/packages/booksubmit/appointment'
|
|
|
|
this.can_appointment = true
|
|
|
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
|
|
|
url: '/packages/booksubmit/appointment'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.can_appointment = false
|
|
|
|
|
|
|
|
this.base.toast("您当前没有可预约次数")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
// await this.$u.api.user().then(res => {
|
|
|
|
|
|
|
|
// if (res.user.appointment_total - res.user.pass_appointments > 0) {
|
|
|
|
|
|
|
|
// this.can_appointment = true
|
|
|
|
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
|
|
|
// url: '/packages/booksubmit/appointment'
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// this.can_appointment = false
|
|
|
|
|
|
|
|
// this.base.toast("您当前没有可预约次数")
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|