Commit 7974abcb by 程默

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents b927a203 86be5c28
......@@ -57,21 +57,25 @@ Component({
res.data.data.category[0].children.forEach(item => {
if (item.categoryBigImg) {
item.categoryBigImg = app.DFSImg(item.categoryBigImg)
item.categoryBigImg = app.DFSImg(item.categoryBigImg,400,400)
}
if (item.categoryBigImg) {
item.categoryImgUrl = app.DFSImg(item.categoryImgUrl)
if (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({
categoryList: res.data.data.category[0].children
})
if (this.data.categoryList.length == 0) {
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