uni h5 GoodsCon优惠券数量过长

This commit is contained in:
Gao xiaosong
2020-12-19 13:48:53 +08:00
parent bc02f4d844
commit 5f404bdd3b
4 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View File

@ -12,3 +12,5 @@ yarn-error.log*
*.sln
*.keystore
unpackage/
assets/css/style.css
assets/css/style.css.map

View File

@ -2566,7 +2566,8 @@ page {
}
.product-con .wrapper .coupon .hide {
width: 5.4*100rpx;
text-overflow: clip;
flex:1;
height: 0.8*100rpx;
line-height: 0.8*100rpx;
}

View File

@ -82,7 +82,6 @@ export default {
},
watch: {
attr(nextAttr) {
console.log(nextAttr);
},
},
methods: {
@ -116,7 +115,6 @@ export default {
getCheckedValue: function () {
let productAttr = this.attr.productAttr;
let value = [];
console.log(productAttr);
for (let i = 0; i < productAttr.length; i++) {
for (let j = 0; j < productAttr[i].attrValueArr.length; j++) {
if (productAttr[i].index === j) {

View File

@ -22,7 +22,7 @@
<text>销量:{{ storeInfo.sales }}{{ storeInfo.unitName }}</text>
</view>
<view class="coupon acea-row row-between-wrapper" @click="couponTap" v-if="couponList.length">
<text class="hide line1 acea-row">
<text class="hide line1">
<text>优惠券:</text>
<text class="activity" v-for="(item, couponListEq) in couponList"
:key="couponListEq">满{{ item.useMinPrice }}减{{ item.couponPrice }}</text>