Commit 07528fc2a235e03efacc55903066cdf1c0a3bc8b
1 parent
b2b1f8ec
自定义模板 图片的高度要优化
Showing
1 changed file
with
1 additions
and
1 deletions
components/diy_advertising/diy_advertising.js
@@ -50,7 +50,7 @@ Component({ | @@ -50,7 +50,7 @@ Component({ | ||
50 | //宽高比 | 50 | //宽高比 |
51 | var ratio = imgwidth / imgheight; | 51 | var ratio = imgwidth / imgheight; |
52 | //计算的高度值 | 52 | //计算的高度值 |
53 | - var viewHeight = 715 / ratio; | 53 | + var viewHeight = 750 / ratio; |
54 | var hei=this.data.max_sw_height; | 54 | var hei=this.data.max_sw_height; |
55 | 55 | ||
56 | if (hei< viewHeight) { | 56 | if (hei< viewHeight) { |