From d7a9ca1ee7c0d9bc0ff07fa1c651ea6c0650dc60 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Wed, 28 Sep 2022 17:39:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AE=A2=E5=8D=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v1_5_0_C/myCoupon.html | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/v1_5_0_C/myCoupon.html b/v1_5_0_C/myCoupon.html index 2247b76..a5da660 100644 --- a/v1_5_0_C/myCoupon.html +++ b/v1_5_0_C/myCoupon.html @@ -30,14 +30,14 @@
-
+

{{item.reduce}}

满{{item.full}}元可用

- {{item.status===0?'去使用':item.status===1?'已使用':"已失效"}} + {{item.status===1?'去使用':item.status===2?'已使用':"已失效"}}

@@ -51,8 +51,8 @@

- - + +

@@ -76,11 +76,11 @@ data () { return { tabList: [ - { id: 0, text: "待使用" }, - { id: 1, text: "已使用" }, - { id: 2, text: "已失效" } + { id: 1, text: "待使用" }, + { id: 2, text: "已使用" }, + { id: 3, text: "已失效" } ], - tabActive: 0, /* tab 选中下标 */ + tabActive: 1, /* tab 选中下标 */ more: false, /* 是否展示更多 状态 */ couponList: [] } @@ -111,8 +111,9 @@ /* 去使用 */ goUse (item) { - if (item.status) return; - window.location.replace('./couponCollection.html'); + if (item.status === 1) { + window.location.replace('./couponCollection.html'); + }; }, /* tab点击 */