| | |
| | | bookList: [], |
| | | loading: false, |
| | | listLoding: false, |
| | | stairListLoading: false, |
| | | rowCol: [{ |
| | | width: '50%', |
| | | }, |
| | | { |
| | | width: '100%' |
| | | }, |
| | | { |
| | | width: '80%' |
| | | }, |
| | | { |
| | | width: '100%' |
| | | }, { |
| | | width: '100%' |
| | | }, |
| | | { |
| | | width: '100%' |
| | | }, |
| | | { |
| | | width: '50%' |
| | | }, |
| | | { |
| | | width: '100%' |
| | | }, |
| | | { |
| | | width: '80%' |
| | | }, |
| | | { |
| | | width: '100%' |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | /** |
| | |
| | | getAssortList() { |
| | | this.setData({ |
| | | loading: true, |
| | | listLoding: true, |
| | | }); |
| | | const query = { |
| | | path: "*", |
| | |
| | | // 获取一级分类 |
| | | getStairList(path) { |
| | | this.setData({ |
| | | listLoding: true, |
| | | stairListLoading: true, |
| | | startList: [] |
| | | }); |
| | | const query = { |
| | | path, |
| | |
| | | (item.icon = getPublicImage(item.icon, 500)) : |
| | | (item.icon = item.icon); |
| | | item.children = await this.getSecondList(item); |
| | | |
| | | } |
| | | // 一级分类赋值 |
| | | this.setData({ |
| | | startList: res.datas, |
| | | listLoding: false, |
| | | stairListLoading: false, |
| | | "startCheck.id": res.datas[0].id, |
| | | "startCheck..code": "", |
| | | }); |