| | |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | if (typeof this.getTabBar === 'function' && this.getTabBar()) { |
| | | this.getTabBar().setData({ |
| | | active: 1 |
| | | }) |
| | | } |
| | | }, |
| | | |
| | | /** |
| | |
| | | // 获取二级分类 |
| | | for (let index = 0; index < res.datas.length; index++) { |
| | | const item = res.datas[index]; |
| | | item.icon ? item.icon = getPublicImage(item.icon, 58, 72) : item.icon = item.icon |
| | | item.icon ? item.icon = getPublicImage(item.icon, 500) : item.icon = item.icon |
| | | item.children = await this.getSecondList(item); |
| | | } |
| | | console.log(res.datas); |
| | |
| | | } |
| | | ], |
| | | coverSize: { |
| | | width: 76 |
| | | width: 500 |
| | | }, |
| | | queryType: '\\', |
| | | searchList: [], |
| | |
| | | for (let index = 0; index < res.datas.length; index++) { |
| | | const element = res.datas[index]; |
| | | if (element.icon) |
| | | element.icon = getPublicImage(element.icon, 58, 72) |
| | | element.icon = getPublicImage(element.icon, 500) |
| | | |
| | | } |
| | | datas = res.datas; |