...
|
...
|
@@ -262,16 +262,13 @@ Page(Object.assign({ |
|
|
this.setData({
|
|
|
codeList: res.data,
|
|
|
})
|
|
|
this.animation = animation
|
|
|
setTimeout(function () {
|
|
|
let query = wx.createSelectorQuery();
|
|
|
console.log(query.select('.code-list-item-container'))
|
|
|
query.select('.code-list-item-container').boundingClientRect((res) => {
|
|
|
animation.height(res.height - 65 * sys.screenWidth / 375).step();
|
|
|
wx.createSelectorQuery().select('.code-list-item-container').boundingClientRect().exec((r) => {
|
|
|
animation.height(r[0].height - 65 * sys.screenWidth / 375).step();
|
|
|
this.setData({
|
|
|
animation: animation.export()
|
|
|
})
|
|
|
}).exec()
|
|
|
})
|
|
|
|
|
|
}.bind(this), 400);
|
|
|
}
|
...
|
...
|
|