From 488f859afc8884daa8720a129c5645d3535b58dc Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Thu, 29 Sep 2022 14:25:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=88=91=E7=9A=84=E5=88=B8)=EF=BC=9A?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=95=86=E5=93=81=E4=BD=BF=E7=94=A8=E8=8C=83?= =?UTF-8?q?=E5=9B=B4=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v1_5_0_C/myCoupon.html | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/v1_5_0_C/myCoupon.html b/v1_5_0_C/myCoupon.html index a5da660..4d0560f 100644 --- a/v1_5_0_C/myCoupon.html +++ b/v1_5_0_C/myCoupon.html @@ -56,8 +56,7 @@

- 商品使用范围:
- {{item.productArray.map(item=>item.name).join('、')}} + 商品使用范围:{{item.productArray.map(item=>item.name).join('、')}}

@@ -75,13 +74,23 @@ el: "#app", data () { return { - tabList: [ - { id: 1, text: "待使用" }, - { id: 2, text: "已使用" }, - { id: 3, text: "已失效" } + tabList: [{ + id: 1, + text: "待使用" + }, + { + id: 2, + text: "已使用" + }, + { + id: 3, + text: "已失效" + } ], - tabActive: 1, /* tab 选中下标 */ - more: false, /* 是否展示更多 状态 */ + tabActive: 1, + /* tab 选中下标 */ + more: false, + /* 是否展示更多 状态 */ couponList: [] } }, @@ -117,7 +126,9 @@ }, /* tab点击 */ - tabHandle ({ id }) { + tabHandle ({ + id + }) { this.tabActive = id this.getCouponList() }, @@ -125,7 +136,13 @@ /* 请求数据 */ getCouponList () { const key = sessionStorage.getItem('key') - req.axiosGet('/key/coupon/list', { key, status: this.tabActive }).then(({ data, code }) => { + req.axiosGet('/key/coupon/list', { + key, + status: this.tabActive + }).then(({ + data, + code + }) => { if (code === 200) { const productArray = [] data.map(item => {