Authored by huangyi

渠道业务完成

@@ -262,16 +262,13 @@ Page(Object.assign({ @@ -262,16 +262,13 @@ Page(Object.assign({
262 this.setData({ 262 this.setData({
263 codeList: res.data, 263 codeList: res.data,
264 }) 264 })
265 - this.animation = animation  
266 setTimeout(function () { 265 setTimeout(function () {
267 - let query = wx.createSelectorQuery();  
268 - console.log(query.select('.code-list-item-container'))  
269 - query.select('.code-list-item-container').boundingClientRect((res) => {  
270 - animation.height(res.height - 65 * sys.screenWidth / 375).step(); 266 + wx.createSelectorQuery().select('.code-list-item-container').boundingClientRect().exec((r) => {
  267 + animation.height(r[0].height - 65 * sys.screenWidth / 375).step();
271 this.setData({ 268 this.setData({
272 animation: animation.export() 269 animation: animation.export()
273 }) 270 })
274 - }).exec() 271 + })
275 272
276 }.bind(this), 400); 273 }.bind(this), 400);
277 } 274 }