Commit 644ebbec6350c102fcbebfdc1114e984df84bb9f

Authored by 后端研发-苏明海
2 parents db356b9a 797af59c

Merge branch 'qa' into 'master'

Qa

See merge request !289
Showing 1 changed file with 2 additions and 1 deletions
pages/user/index/index.js
... ... @@ -66,7 +66,8 @@ Page({
66 66 }).then(res => {
67 67 if(res.data.code==0 && res.data.data){
68 68 var item=res.data.data[0];
69   - th.setData({ad_img:item.ad_code})
  69 + if (item && item.ad_code)
  70 + th.setData({ad_img:item.ad_code})
70 71 }
71 72 })
72 73 },
... ...