...
|
...
|
@@ -23,7 +23,7 @@ Component({ |
|
|
wx.getSystemInfo({
|
|
|
success: function(res) {
|
|
|
let windowWidth = res.screenWidth;
|
|
|
windowWidth = floorData.is_extend == 1 ? windowWidth : windowWidth - 30;
|
|
|
windowWidth = floorData.is_extend === 1 ? windowWidth : windowWidth - 30;
|
|
|
let realHeight = Math.ceil(windowWidth * height / width);
|
|
|
let style = `margin: 0 ${floorData.is_extend == 1 ? 0 : 15}px; height:${realHeight}px`;
|
|
|
that.setData({
|
...
|
...
|
|