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',