修改代码

This commit is contained in:
wangxiaowei
2026-02-02 02:36:40 +08:00
parent 6edd1b24d3
commit 079a66f287
14 changed files with 460 additions and 248 deletions

View File

@ -662,6 +662,11 @@
return
}
if (info.value.state === 2) {
toast.show('茶艺师已离线,暂不可预约')
return
}
if (serviceTypeValue.value === 1 && teaHouse.value.id === 0) {
// 到店服务必须要选择门店
toast.show('请先选择门店')
@ -789,6 +794,7 @@
uni.$off('chooseCoupon');
uni.$on('chooseCoupon', params => {
console.log("🚀 ~ params:", params)
uni.$off('chooseCoupon')
if (params.coupon) {
selectedCoupon.value = {id: params.coupon.id, name: params.coupon.name}
@ -807,7 +813,7 @@
})
// 获取预定了几个小时
router.navigateTo(`/bundle_b/pages/tea-specialist/coupon?couponId=${selectCouponId.value}`)
router.navigateTo(`/bundle_b/pages/tea-specialist/coupon?couponId=${selectCouponId.value}&price=${costBill.value.order_amount}`)
},
/**
@ -848,6 +854,11 @@
if (info.value.state === 1) {
toast.show('茶艺师工作中,暂不可预约')
return
}
if (info.value.state === 2) {
toast.show('茶艺师已离线,暂不可预约')
return
}
if (totalHour.value == 0) {