From 7ced6a085027e1218f2845d366d9225faa5e1c60 Mon Sep 17 00:00:00 2001 From: zoujing Date: Tue, 7 Apr 2026 18:10:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E6=9C=AC=E6=8D=A2=E8=A1=8C?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-configs.json | 2 +- src/pages-booking/index.vue | 15 ++++++++------- src/static/scss/index.scss | 1 + src/static/scss/word-break.scss | 3 +++ 4 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 src/static/scss/word-break.scss diff --git a/client-configs.json b/client-configs.json index 2b155b9..5a3c3ca 100644 --- a/client-configs.json +++ b/client-configs.json @@ -50,7 +50,7 @@ } }, "tianmu": { - "clientId": "9", + "clientId": "4", "appId": "wx0be424e1d22065a9", "name": "沐沐", "placeholder": "快告诉沐沐您在想什么~", diff --git a/src/pages-booking/index.vue b/src/pages-booking/index.vue index 896fd20..1b4ab7b 100644 --- a/src/pages-booking/index.vue +++ b/src/pages-booking/index.vue @@ -29,7 +29,9 @@ - + {{ orderData.commodityDescription }} @@ -142,7 +144,7 @@ watch( if (newQuantity > currentLength) { // 数量增加,添加新的表单项 const newForms = Array.from({ length: newQuantity - currentLength }, () => - createEmptyUserForm() + createEmptyUserForm(), ); userFormList.value.push(...newForms); } else if (newQuantity < currentLength) { @@ -153,7 +155,7 @@ watch( // 等待DOM更新完成 await nextTick(); }, - { immediate: false } + { immediate: false }, ); onLoad((options) => { @@ -179,7 +181,7 @@ const getGoodsDetail = async (commodityId) => { // 取commodityFacilityList前3个 orderData.value.commodityFacilityList = res.data.commodityFacilityList.slice( 0, - 3 + 3, ); }; @@ -206,7 +208,6 @@ const validateUserForms = () => { // 处理支付点击事件 const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => { - try { console.log("处理支付点击事件", userFormList.value); // 校验用户姓名 @@ -236,12 +237,12 @@ const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => { purchaseAmount, payWay, paySource, - consumerInfoEntityList + consumerInfoEntityList, }; // 预约日期,酒店类型不需要 if (orderData.value.orderType != 0) { - params.reservationDate = selectedReservationDate.value; + params.reservationDate = selectedReservationDate.value; } //酒店类型添加入住时间、离店时间 diff --git a/src/static/scss/index.scss b/src/static/scss/index.scss index d15a5cc..27f7b09 100644 --- a/src/static/scss/index.scss +++ b/src/static/scss/index.scss @@ -20,3 +20,4 @@ @import "./z-index.scss"; @import "./white-space.scss"; @import "./box-sizing.scss"; +@import "./word-break.scss"; diff --git a/src/static/scss/word-break.scss b/src/static/scss/word-break.scss new file mode 100644 index 0000000..09ad1ee --- /dev/null +++ b/src/static/scss/word-break.scss @@ -0,0 +1,3 @@ +.break-all { + word-break: break-all; +}