| | |
| | | //标签的切换 |
| | | onTabsChange(event) { |
| | | const value = event.detail.value |
| | | // if (this.data.bookData <= 0 || this.data.courseData <= 0 || this.data.digitalTextbooksData <= 0 || this.data.seminarData <= 0 || this.data.biblioClassificationData <= 0 || this.data.bookFairData <= 0) { |
| | | // this.setData({ |
| | | // isMore: true |
| | | // }) |
| | | // } |
| | | if (value === '0') { |
| | | this.setData({ |
| | | tabValue: value, |
| | | isMore: false |
| | | }) |
| | | |
| | | } else if (value === '1') { |
| | | console.log(value, 'tab'); |
| | | this.setData({ |
| | |
| | | method: 'post', |
| | | data: body |
| | | }).then((resp) => { |
| | | // console.log(resp); |
| | | console.log(resp, 'resp'); |
| | | |
| | | //图书 0 |
| | | const data1 = resp[0] |
| | |
| | | |
| | | }) |
| | | wx.stopPullDownRefresh() |
| | | |
| | | |
| | | |
| | | }, |
| | | bibliographyGet() { |
| | | let bibliographyObj = {} |