Merge pull request 'update coupon height' (#73) from zhy into master
Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/73
This commit is contained in:
		
						commit
						864f43e200
					
				@ -74,7 +74,10 @@ export default {
 | 
			
		||||
		},
 | 
			
		||||
		setViewHeight() {
 | 
			
		||||
			// 一个优惠券的高度 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';
 | 
			
		||||
		},
 | 
			
		||||
		toCouponPage() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user