From c31c2304c25c9db06c79d71565203eca418583c6 Mon Sep 17 00:00:00 2001 From: weiwei Date: Fri, 20 Jun 2025 10:19:25 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 16 +++++++-------- src/pages/shop/detail.vue | 8 ++++---- src/pages/tabbar/onlineShop.vue | 20 ++++++++++++------- src/sheep/stores/cart.ts | 28 +++++++++------------------ src/static/page/address-blue.svg | 1 + src/static/page/arrow-down-s-fill.svg | 1 + 6 files changed, 36 insertions(+), 38 deletions(-) create mode 100644 src/static/page/address-blue.svg create mode 100644 src/static/page/arrow-down-s-fill.svg diff --git a/src/App.vue b/src/App.vue index 6e9eb31..e7179f0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,14 +28,6 @@ const tabbar: TabbarItem[] = [ launchParam: ["selfMerchant"], auth: ["user"], }, - { - pagePath: "pages/tabbar/onlineShop", - text: "在线商城", - iconPath: "/static/tabbar/online-shop.png", - selectedIconPath: "/static/tabbar/online-shop-select.png", - launchParam: ["onlineShop"], - auth: ["user"], - }, { pagePath: "pages/tabbar/coopMerchant", text: "合作商家", @@ -44,6 +36,14 @@ const tabbar: TabbarItem[] = [ launchParam: ["coopMerchant"], auth: ["user"], }, + { + pagePath: "pages/tabbar/onlineShop", + text: "在线商城", + iconPath: "/static/tabbar/online-shop.png", + selectedIconPath: "/static/tabbar/online-shop-select.png", + launchParam: ["onlineShop"], + auth: ["user"], + }, { pagePath: "pages/tabbar/cabinet", text: "智能柜", diff --git a/src/pages/shop/detail.vue b/src/pages/shop/detail.vue index eaae7fb..66bf25f 100644 --- a/src/pages/shop/detail.vue +++ b/src/pages/shop/detail.vue @@ -27,7 +27,7 @@ - {{ state.detail.phone }} + {{ state.detail.phone?.slice(0, 11) }} - + @@ -337,7 +337,7 @@ const doPhone = () => { return } ;(window as any).dd - .callPhone({ phoneNum: state.detail.phone }) + .callPhone({ phoneNum: state.detail.phone.slice(0, 11) }) .then((res) => {}) .catch((err) => {}) } diff --git a/src/pages/tabbar/onlineShop.vue b/src/pages/tabbar/onlineShop.vue index 619f187..e2d2d69 100644 --- a/src/pages/tabbar/onlineShop.vue +++ b/src/pages/tabbar/onlineShop.vue @@ -18,14 +18,15 @@ @@ -480,5 +489,37 @@ onMounted(() => { color: #999; font-size: 26rpx; } + + .tabbar { + position: fixed; + left: 0; + right: 0; + bottom: 0; + height: 100rpx; + background: #fff; + display: flex; + border-top: 1px solid #eee; + z-index: 999; + } + + .tabbar-item { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + color: #888; + font-size: 24rpx; + } + + .tabbar-icon { + width: 48rpx; + height: 48rpx; + margin-bottom: 4rpx; + } + + .tabbar-item.active { + color: #1777FF; + } }