master
lion 1 year ago
parent d2728cf5d8
commit b0feaf322f

@ -158,17 +158,20 @@
})
},
async goBook(){
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("您当前没有可预约次数")
}
})
// 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("")
// }
// })
}
}

Loading…
Cancel
Save