| | |
| | | tabList: [], |
| | | selectedIndex: 0, |
| | | digitalTextbooksData: [], |
| | | path: "jsek_dTHigherEducation", |
| | | // path: "jsek_dTHigherEducation", |
| | | path: "*", |
| | | loading: true, |
| | | sorter: { |
| | | value: "*", |
| | |
| | | newData.forEach((item) => { |
| | | item.titleIcon = getPublicImage(item.icon, '', '160') |
| | | }) |
| | | |
| | | newData.unshift({ |
| | | name: '全部', |
| | | refCode: '*' |
| | | }) |
| | | this.setData({ |
| | | tabList: newData |
| | | }) |
| | | console.log(this.data.tabList); |
| | | console.log(1, this.data.tabList); |
| | | |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | |
| | | selectTab(e) { |
| | | console.log(e); |
| | | let index = e.detail.value |
| | | console.log(index); |
| | | this.setData({ |
| | | selectedIndex: index |
| | | }) |
| | | |
| | | if (index == 0) { |
| | | this.setData({ |
| | | path: this.data.tabList[0].refCode |
| | | }) |
| | | |
| | | } else if (index == 1) { |
| | | this.setData({ |
| | | path: this.data.tabList[1].refCode |
| | | }) |
| | | |
| | | } else if (index == 2) { |
| | | this.setData({ |
| | | path: this.data.tabList[2].refCode |
| | | }) |
| | | |
| | | } else if (index == 3) { |
| | | this.setData({ |
| | | path: this.data.tabList[3].refCode |
| | | }) |
| | | |
| | | } |
| | | this.setData({ |
| | | path: this.data.tabList[index].refCode |
| | | }) |
| | | this.bookExhibitionGet() |
| | | |
| | | }, |