Commit 07528fc2a235e03efacc55903066cdf1c0a3bc8b

Authored by yvan.ni
1 parent b2b1f8ec

自定义模板 图片的高度要优化

components/diy_advertising/diy_advertising.js
... ... @@ -50,7 +50,7 @@ Component({
50 50 //宽高比
51 51 var ratio = imgwidth / imgheight;
52 52 //计算的高度值
53   - var viewHeight = 715 / ratio;
  53 + var viewHeight = 750 / ratio;
54 54 var hei=this.data.max_sw_height;
55 55  
56 56 if (hei< viewHeight) {
... ...