update coupon height #73

Merged
hansu merged 1 commits from zhy into master 2020-07-20 09:29:08 +00:00

View File

@ -74,7 +74,10 @@ export default {
}, },
setViewHeight() { setViewHeight() {
// 97px, 10px // 97px, 10px
const num = this.couponList.length; let num = 0;
num = this.couponList.length
? this.couponList.length > 4 ? 4 : this.couponList.length
: 1
this.swiperHeight = (97 + 10) * num - 10 + 'px'; this.swiperHeight = (97 + 10) * num - 10 + 'px';
}, },
toCouponPage() { toCouponPage() {