From bde22e136959ce66b122f5d46cc24a0727e3d922 Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期日, 28 九月 2025 10:26:12 +0800 Subject: [PATCH] 订单显示客服热线和微信 --- pages/order/myOrder.vue | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue index c55c741..179a8da 100644 --- a/pages/order/myOrder.vue +++ b/pages/order/myOrder.vue @@ -161,7 +161,7 @@ shape="circle" class="cancel-btn" size="mini" - v-if="order.orderStatus === 'COMPLETED'" + v-if="order.orderStatus === 'COMPLETED'&& order.orderType !=='VIRTUAL'" @click="buyBack(order)" > 鍐嶆潵涓�鍗� @@ -175,6 +175,14 @@ </u-button> --> </view> </view> + <view style="display: flex;justify-content: space-around;"> + <view class="" @click="callPhone"> + 瀹㈡湇鐑嚎: 028-84472936 + </view> + <view class="" @click="copyToClipboard"> + 瀹㈡湇寰俊: meiyikuang + </view> + </view> </view> </view> <uni-load-more :status="tabItem.loadStatus"></uni-load-more> @@ -386,6 +394,29 @@ }, }, methods: { + copyToClipboard(){ + uni.setClipboardData({ + data:'meiyikuang', + success() { + uni.showToast({ + title: '澶嶅埗鎴愬姛', + icon: 'none' + }) + } + }) + }, + callPhone(){ + uni.showModal({ + title:'纭鑱旂郴瀹㈡湇鍚�?', + success(e) { + if(e.confirm){ + uni.makePhoneCall({ + phoneNumber:'028-84472936' + }) + } + } + }) + }, openCouponPackage(order){ console.log(order) uni.navigateTo({ -- Gitblit v1.8.0