Authored by bevishuang

优化均分楼层

... ... @@ -34,7 +34,6 @@ Component({
if (this.data.width && this.data.height) {
this.data.src = this.formatImageUrl(this.data.src, this.data.width, this.data.height, this.data.mode);
}
this.setData({
src: this.data.src,
style: `width: ${width}`
... ...
... ... @@ -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({
... ...