Authored by 李奇

排除异常脚本报错

@@ -267,12 +267,13 @@ Page(Object.assign({ @@ -267,12 +267,13 @@ Page(Object.assign({
267 }) 267 })
268 setTimeout(function () { 268 setTimeout(function () {
269 wx.createSelectorQuery().select('.code-list-item-container').boundingClientRect().exec((r) => { 269 wx.createSelectorQuery().select('.code-list-item-container').boundingClientRect().exec((r) => {
  270 + if (r && r[0] && r[0].height) {
270 animation.height(r[0].height - 65 * sys.screenWidth / 375).step(); 271 animation.height(r[0].height - 65 * sys.screenWidth / 375).step();
271 this.setData({ 272 this.setData({
272 animation: animation.export() 273 animation: animation.export()
  274 + });
  275 + }
273 }) 276 })
274 - })  
275 -  
276 }.bind(this), 800); 277 }.bind(this), 800);
277 } 278 }
278 }); 279 });
@@ -22,7 +22,6 @@ function jumpFn(name, qs) { @@ -22,7 +22,6 @@ function jumpFn(name, qs) {
22 url: `${path}?${stringify(qs)}` 22 url: `${path}?${stringify(qs)}`
23 }; 23 };
24 24
25 - console.log(`page => ${params.url}`);  
26 wx.navigateTo(params); 25 wx.navigateTo(params);
27 } 26 }
28 27