From 4611cb984e6c82dd92c3629c0c2238b876477b2a Mon Sep 17 00:00:00 2001 From: zhangdongxue Date: Tue, 23 Nov 2021 09:10:23 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E4=BA=A4?= =?UTF-8?q?=E6=98=93=E6=95=B0=E9=87=8F/=E9=A2=86=E5=8F=96=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E7=8A=B6=E6=80=81/=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E4=BA=A4=E6=98=93=E6=AC=A1=E6=95=B0=EF=BC=8C=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E6=B0=B4=E6=99=B6=E8=B4=A1=E7=8C=AE=E5=80=BC?= =?UTF-8?q?/=E6=94=B9=E5=95=86=E5=93=81=E8=AE=A4=E8=AF=81]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + pages/goods/attestation.vue | 2 +- pages/goods/details.vue | 13 +++++++------ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 6bd52d2..d60f8bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ unpackage unpackage/* node_modules +unpackage/*/** \ No newline at end of file diff --git a/pages/goods/attestation.vue b/pages/goods/attestation.vue index 1b36687..3d40352 100644 --- a/pages/goods/attestation.vue +++ b/pages/goods/attestation.vue @@ -6,7 +6,7 @@ 权证认证 - {{info.goods.type ===1?'权证名称':'项目名称'}}: + {{info.goods.type ===1 ? '权证名称':'项目名称'}}: {{info.goods.name || '暂无数据'}} diff --git a/pages/goods/details.vue b/pages/goods/details.vue index aa9c06a..77b633c 100644 --- a/pages/goods/details.vue +++ b/pages/goods/details.vue @@ -15,7 +15,10 @@ {{goodsObj.price.show}} - 累计交易{{goodsObj.sales}}次 + + + 贡献值:{{goodsObj.price.pv}} + @@ -32,9 +35,6 @@ {{goodsObj.specal_tags.is_self}} {{goodsObj.name}} - - 贡献值:{{goodsObj.price.pv}} - @@ -60,7 +60,7 @@ - 权证认证 + 商品认证 @@ -255,7 +255,7 @@ }, // 领取优惠券 - drawCoupons(id) { + drawCoupons(id,index) { let token = this.$store.getters.getToken if (token == '') { let userLogin = new userAuth() @@ -268,6 +268,7 @@ type: 'primary', duration: 3000 }) + this.coupons[index].can = res.can }).catch(err => { uni.showToast({ icon: 'none',