From 2176fc57573aaf891c873314137c3c530efb83f4 Mon Sep 17 00:00:00 2001 From: jiazhipeng Date: Tue, 14 Oct 2025 15:34:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=91=E6=8D=A2=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 ++ subPackages/user/rewardsCenter.vue | 92 ++++++++++++++---------------- 2 files changed, 50 insertions(+), 48 deletions(-) diff --git a/pages.json b/pages.json index 125fc31..fc7fa14 100644 --- a/pages.json +++ b/pages.json @@ -78,6 +78,12 @@ "navigationBarTitleText" : "视频" } }, + { + "path":"user/rewardsCenter", + "style" : { + "navigationBarTitleText" : "兑换中心" + } + }, { "path": "ticket/index", "style": { diff --git a/subPackages/user/rewardsCenter.vue b/subPackages/user/rewardsCenter.vue index e17fde4..cc4b75d 100644 --- a/subPackages/user/rewardsCenter.vue +++ b/subPackages/user/rewardsCenter.vue @@ -1,20 +1,14 @@ @@ -33,7 +27,6 @@ console.log('提交的兑换码',this.password); let that = this that.password = that.password.trim() - that.$refs.popup.close() if (that.password== '') { uni.showToast({ title: '请输入优惠券领取卡号', @@ -46,8 +39,6 @@ }, "/api/coupon/getCoupon").then((res) => { console.log(res.code); if (res.code == 200) { - that.coupon = [] - this.getList(this.navList[0]) uni.showToast({ title: '兑换成功', icon: 'none' @@ -67,57 +58,62 @@