Commit 3e37659b by 李嘉林

测试

parent e91ef76c
...@@ -123,11 +123,11 @@ Component({ ...@@ -123,11 +123,11 @@ Component({
let b = countWidth / (res.windowWidth - getPaddingListLeft - getPaddingListRight) let b = countWidth / (res.windowWidth - getPaddingListLeft - getPaddingListRight)
console.log(b,'nnnnn') console.log(b,'nnnnn')
this.data.imgArr.forEach((it,ii) => { this.data.imgArr.forEach((it,ii) => {
console.log(it.width / b,Math.ceil(it.width / b),'---Math.ceil(it.width / b)')
this.setData({ this.setData({
['imgArr[' + ii + '].width']: Math.ceil(it.width / b) , ['imgArr[' + ii + '].width']: it.width / b ,
['imgArr[' + ii + '].height']: Math.ceil(it.height /b) ['imgArr[' + ii + '].height']: it.height /b
}) })
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment