Commit 61785b4203e6a6b86e33bb53c70f4cbb667eab74

Authored by yvan.ni
1 parent 02e677ec

广告滚动的图片显示被截取了一段

components/diy_advertising/diy_advertising.js
@@ -33,9 +33,8 @@ Component({ @@ -33,9 +33,8 @@ Component({
33 //宽高比 33 //宽高比
34 var ratio = imgwidth / imgheight; 34 var ratio = imgwidth / imgheight;
35 //计算的高度值 35 //计算的高度值
36 - var viewHeight = 715 / ratio; 36 + var viewHeight = 750 / ratio;
37 var hei=this.data.max_sw_height; 37 var hei=this.data.max_sw_height;
38 -  
39 if (hei< viewHeight) { 38 if (hei< viewHeight) {
40 this.setData({ max_sw_height: viewHeight }); 39 this.setData({ max_sw_height: viewHeight });
41 } 40 }