Commit 86be5c28 by 程智春

fix

parent c4cf31d2
...@@ -57,21 +57,25 @@ Component({ ...@@ -57,21 +57,25 @@ Component({
res.data.data.category[0].children.forEach(item => { res.data.data.category[0].children.forEach(item => {
if (item.categoryBigImg) { if (item.categoryBigImg) {
item.categoryBigImg = app.DFSImg(item.categoryBigImg) item.categoryBigImg = app.DFSImg(item.categoryBigImg,400,400)
} }
if (item.categoryBigImg) { if (item.categoryImgUrl) {
item.categoryImgUrl = app.DFSImg(item.categoryImgUrl) item.categoryImgUrl = app.DFSImg(item.categoryImgUrl,400,400)
} }
})
console.log(res.data.data.category[0].children, 'res.data.data.category[0].children')
this.setData({ this.setData({
categoryList: res.data.data.category[0].children categoryList: res.data.data.category[0].children
}) })
if (this.data.categoryList.length == 0) { if (this.data.categoryList.length == 0) {
this.setData({ this.setData({
targetShow : false targetShow: false
}) })
} }
})
} }
}) })
......
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