Browse Source

uni h5 GoodsCon优惠券数量过长

zyh
Gao xiaosong 4 years ago
parent
commit
5f404bdd3b
  1. 2
      .gitignore
  2. 3
      assets/css/style.less
  3. 2
      components/ProductWindow.vue
  4. 2
      pages/shop/GoodsCon/index.vue

2
.gitignore vendored

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

3
assets/css/style.less

@ -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;
}

2
components/ProductWindow.vue

@ -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) {

2
pages/shop/GoodsCon/index.vue

@ -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>

Loading…
Cancel
Save