1.优化首页样式

yj-dev
杨杰 3 years ago
parent 0fe07ea1a0
commit e177f23299
  1. 13
      pages/tabBar/home/home.vue

@ -56,7 +56,7 @@
<view class="swiper-item" @tap="tapList" :data-id="pro.id">
<image class="img" :src="imageUrl+pro.couponImg" mode="aspectFit">
</image>
<view class="fotct fcor333 font14 text1 mart10">{{pro.couponName}}</view>
<view class="fotct fcor333 font14 text1 mart10">{{pro.couponName}}</view>
<view class="subject fotct mart5">{{pro.discountPrice}}</view>
</view>
</swiper-item>
@ -86,7 +86,7 @@
<view class="swiper-item" @tap="tapList" :data-id="pro.id">
<image class="img" :src="imageUrl+pro.couponImg" mode="aspectFit">
</image>
<view class="fotct fcor333 font14 text1 mart10">{{pro.couponName}}</view>
<view class="fotct fcor333 font14 text1 mart10">{{pro.couponName}}</view>
<view class="subject fotct mart5">{{pro.discountPrice}}</view>
</view>
</swiper-item>
@ -419,6 +419,10 @@
getCouponList(params).then(res => {
if (res.return_code == '000000') {
this.productList = res.return_data.list;
if (res.return_data.total > 4) {
this.productListleg = 4;
return;
}
this.productListleg = res.return_data.total;
}
})
@ -435,6 +439,11 @@
if (res.return_code == '000000') {
this.goldproductList = res.return_data.list;
this.goldproductListleg = res.return_data.total;
if (res.return_data.total > 4) {
this.goldproductListleg = 4;
return;
}
this.goldproductListleg = res.return_data.total;
}
})
},

Loading…
Cancel
Save