From 378a31782b8c69c3498f98d40638287a3c97f242 Mon Sep 17 00:00:00 2001 From: wangzimeng <3297159934@qq.com> Date: Tue, 29 Jul 2025 18:15:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=EF=BC=9A=E6=95=B0=E6=8D=AE=E7=9A=84=E5=AF=B9=E6=8E=A5=E5=92=8C?= =?UTF-8?q?=E5=8E=BB=E4=BD=BF=E7=94=A8=E7=9A=84=E5=8A=9F=E8=83=BD=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 4 +- pages/app/score-shop.vue | 5 +- pages/coupon/list.vue | 168 +++++++++++++++++++++++++++++++++------ sheep/api/coupon.js | 6 ++ 4 files changed, 155 insertions(+), 28 deletions(-) diff --git a/pages.json b/pages.json index 9c08051..f4136e4 100644 --- a/pages.json +++ b/pages.json @@ -645,11 +645,11 @@ "pages": [{ "path": "list", "style": { - "navigationBarTitleText": "领券中心" + "navigationBarTitleText": "我的优惠券" }, "meta": { "sync": true, - "title": "领券中心", + "title": "我的优惠券", "group": "优惠券" } }, diff --git a/pages/app/score-shop.vue b/pages/app/score-shop.vue index 3fedbf5..6421b4b 100644 --- a/pages/app/score-shop.vue +++ b/pages/app/score-shop.vue @@ -205,10 +205,13 @@ }); if (res.code === 1) { uni.showToast({ - title: res.msg, + title: '兑换成功', icon: 'success' }) showCouponPro.value = false; + listQuery.value.page = 1; + couponList.value = [] + getCouponList(); } else { uni.showToast({ title: res.msg, diff --git a/pages/coupon/list.vue b/pages/coupon/list.vue index b1c5192..aa0e34e 100644 --- a/pages/coupon/list.vue +++ b/pages/coupon/list.vue @@ -1,6 +1,6 @@