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 *.sln
*.keystore *.keystore
unpackage/ 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 { .product-con .wrapper .coupon .hide {
width: 5.4*100rpx; text-overflow: clip;
flex:1;
height: 0.8*100rpx; height: 0.8*100rpx;
line-height: 0.8*100rpx; line-height: 0.8*100rpx;
} }

2
components/ProductWindow.vue

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

2
pages/shop/GoodsCon/index.vue

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

Loading…
Cancel
Save