From f0018d29f71ab2738c4ea73f18de025ba2c39bc0 Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Thu, 19 Mar 2026 14:02:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E9=97=A8=E6=9C=8D=E5=8A=A1=E5=BF=85?= =?UTF-8?q?=E9=A1=BB=E8=A6=81=E9=80=89=E4=B8=AD=E8=8C=B6=E8=89=BA=E5=B8=88?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=E8=8C=B6=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bundle_b/pages/tea-specialist/reserve.vue | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/bundle_b/pages/tea-specialist/reserve.vue b/src/bundle_b/pages/tea-specialist/reserve.vue index 2ca68e5..a80fc06 100644 --- a/src/bundle_b/pages/tea-specialist/reserve.vue +++ b/src/bundle_b/pages/tea-specialist/reserve.vue @@ -648,6 +648,11 @@ dayHours.value = '' sevenDay.minimum_time = MINIMUMTIME sevenDay.time = [] + + // 选择了上门服务则必须要茶艺师提供茶具 + teaUsageValue.value = 1 + costParams.value.is_teacup = 1 + Reserve.handleCost() } teaHouse.value = {id: 0, name: ''} @@ -866,21 +871,22 @@ return false } + // 选择了上门服务则必须要茶艺师提供茶具 + if (serviceTypeValue.value === 2 && teaUsageValue.value === 0) { + teaUsageValue.value = 1 + costParams.value.is_teacup = 1 + await Reserve.handleCost() + + toast.info('上门服务须选择茶艺师提供茶具') + return false + } + if (selectedTea.value.length == 0) { toast.info('请选择茶叶') return false } - // if (teaUsageValue.value == -1) { - // toast.info('请选择茶具需求') - // showTeaServicePopup.value = true - // return false - // } - isSubmitting.value = true - // uni.showLoading({ - // title: '提交中...' - // }) toast.loading('提交中...') // 提交的订单数据