From 80c1a21db08fbe9a3b9cd69a32ad6e97102ab945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=BC=E8=B0=83main?= Date: Sat, 21 Mar 2026 21:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=8D=B7=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 + pages/detail/serviceDetail.vue | 363 ++++++------------------------- pages/profile/profile.vue | 12 + pages/profileSub/myCoupons.vue | 387 +++++++++++++++++++++++++++++++++ static/profile/my_icon.png | Bin 0 -> 1216 bytes 5 files changed, 467 insertions(+), 302 deletions(-) create mode 100644 pages/profileSub/myCoupons.vue create mode 100644 static/profile/my_icon.png diff --git a/pages.json b/pages.json index a14dafe..03ef47e 100644 --- a/pages.json +++ b/pages.json @@ -139,6 +139,13 @@ "navigationBarTitleText": "隐私政策", "navigationStyle": "custom" } + }, + { + "path": "myCoupons", + "style": { + "navigationBarTitleText": "我的优惠卷", + "navigationStyle": "custom" + } } ] } diff --git a/pages/detail/serviceDetail.vue b/pages/detail/serviceDetail.vue index b17beab..f6c4b13 100644 --- a/pages/detail/serviceDetail.vue +++ b/pages/detail/serviceDetail.vue @@ -101,29 +101,22 @@ - - - - - 合计: - ¥ - {{ totalAmount.toFixed(2) }} - - - - {{ memberLevelName }}优惠 - - - - {{ selectedCoupon ? '已优惠 ¥' + (calculateCouponDiscount(selectedCoupon) / 100).toFixed(2) : '选择优惠卷' }} - - + + 总金额¥ + {{ totalAmount.toFixed(2) }} + + + {{ memberLevelName }}优惠