From 007013409384c49221e61e4761e291cd38b851fc Mon Sep 17 00:00:00 2001 From: weiwei Date: Tue, 26 Aug 2025 19:36:02 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/brandDetail.vue | 6 +++-- src/pages/shop/detail.vue | 21 +++++++++------ src/pages/tabbar/coopMerchant.vue | 4 +-- src/pages/tabbar/individualOrder.vue | 5 +++- src/pages/tabbar/order.vue | 39 ++++++++++++++-------------- 5 files changed, 42 insertions(+), 33 deletions(-) diff --git a/src/pages/shop/brandDetail.vue b/src/pages/shop/brandDetail.vue index d4c37da..547fd78 100644 --- a/src/pages/shop/brandDetail.vue +++ b/src/pages/shop/brandDetail.vue @@ -96,13 +96,15 @@ const toDetail = async (v: any) => { {{ v.name }} - + {{ v.phone }} - {{ v.deptName.length > 5 ? v.deptName.substring(0, 5) + "..." : v.deptName }} + + {{ v.deptName.length > 5 ? v.deptName.substring(0, 5) + "..." : v.deptName }} + 营业时间: diff --git a/src/pages/shop/detail.vue b/src/pages/shop/detail.vue index 9402a96..c010460 100644 --- a/src/pages/shop/detail.vue +++ b/src/pages/shop/detail.vue @@ -24,19 +24,24 @@ {{ state.detail.name }} - - + + - {{ state.detail.phone?.slice(0, 11) }} + {{ item.trim() }} 联系商家 - + {{ state.detail.deptName?.length > 5 ? state.detail.deptName.substring(0, 5) + "..." : state.detail.deptName }} @@ -331,13 +336,13 @@ const submitPay = async () => { } // 联系商家 -const doPhone = () => { - if (isEmpty(state.detail.phone)) { +const doPhone = (item: string) => { + if (isEmpty(item)) { uni.showToast({ title: "该商户没有预留电话", icon: "none" }) return } ;(window as any).dd - .callPhone({ phoneNum: state.detail.phone.slice(0, 11) }) + .callPhone({ phoneNum: item.trim() }) .then((res) => {}) .catch((err) => {}) } diff --git a/src/pages/tabbar/coopMerchant.vue b/src/pages/tabbar/coopMerchant.vue index 92d498f..c63513f 100644 --- a/src/pages/tabbar/coopMerchant.vue +++ b/src/pages/tabbar/coopMerchant.vue @@ -113,13 +113,13 @@ const toDetail = async (v: any) => { - + {{ v.phone }} - {{ v.deptName.length > 5 ? v.deptName.substring(0, 5) + "..." : v.deptName }} + {{ v.deptName.length > 5 ? v.deptName.substring(0, 5) + "..." : v.deptName }} 营业时间: diff --git a/src/pages/tabbar/individualOrder.vue b/src/pages/tabbar/individualOrder.vue index b042d56..e959f35 100644 --- a/src/pages/tabbar/individualOrder.vue +++ b/src/pages/tabbar/individualOrder.vue @@ -27,7 +27,10 @@ :quickDate="[]" drawerSize="900" > - 筛选 + + + 筛选 + diff --git a/src/pages/tabbar/order.vue b/src/pages/tabbar/order.vue index 3783b45..b16371b 100644 --- a/src/pages/tabbar/order.vue +++ b/src/pages/tabbar/order.vue @@ -93,38 +93,35 @@ const doRefund = (v: any) => { @scroll="pageHook.scroll" > - + - - - + + + - - {{ v.merchantName }} - - + {{ v.merchantName }} + 未支付 已支付 售后 已核销 已取消(智能柜) - + 下单时间 {{ hooks.useTime(v.createTime, "{y}-{m}-{d} {h}:{i}:{s}") }} {{ hooks.useEnum("hardwareRefundStatusEnum", v.refundStatus) }} - - + + ¥ {{ hooks.useMoney(v.totalPrice) }} @@ -132,22 +129,24 @@ const doRefund = (v: any) => { - - - - - {{ pV.productName }} + + + + + + {{ pV.productName }} 共 {{ v.carList.length }} 件 + 核销码 From 88e5660b293e28ef67eac07fc47b56e40d14cdbe Mon Sep 17 00:00:00 2001 From: weiwei Date: Tue, 26 Aug 2025 20:12:22 +0800 Subject: [PATCH 2/3] =?UTF-8?q?chore:=E6=8F=90=E5=8F=96=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 +++-- src/pages/shop/detail.vue | 22 ++++++++++++++-------- src/pages/tabbar/index.vue | 5 +++-- src/pages/tabbar/my.vue | 7 ++++--- src/sheep/constant/app-env.ts | 7 +++++++ src/sheep/constant/index.ts | 2 ++ src/sheep/utils/app.ts | 7 +++++-- src/sheep/utils/request.ts | 5 +++-- 8 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 src/sheep/constant/app-env.ts diff --git a/src/App.vue b/src/App.vue index c688604..37c5930 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@ diff --git a/src/pages/tabbar/index.vue b/src/pages/tabbar/index.vue index 03b5ea3..9326f03 100644 --- a/src/pages/tabbar/index.vue +++ b/src/pages/tabbar/index.vue @@ -1,4 +1,5 @@ \ No newline at end of file +