| | |
| | | }, |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.showTag(1) |
| | | this.token = uni.getStorageSync('token'); |
| | | this.showMat(1) |
| | | }, |
| | | methods: { |
| | | search() { |
| | |
| | | }, |
| | | success(result) { |
| | | that.tagList = null |
| | | that.matList = [] |
| | | that.matList = [] |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | if (res.data != null && res.data.length > 0) { |
| | | that.tagList = res.data |
| | | if (res.records != null && res.records.length > 0) { |
| | | that.tagList = res.data.records |
| | | } else { |
| | | that.tagList = [] |
| | | that.showMat(parentId) |
| | |
| | | }, |
| | | success(result) { |
| | | that.tagList = null |
| | | var res = result.data |
| | | var res = result.data |
| | | if (res.code === 200) { |
| | | if (res.data != null && res.data.length > 0) { |
| | | let list = res.data |
| | | if (res.data.records != null && res.data.records.length > 0) { |
| | | let list = res.data.records |
| | | that.matList = that.reload ? list : that.matList.concat(list); |
| | | that.curr = that.curr + 1 |
| | | } |
| | | if (res.data.length == 0) { |
| | | if (res.data.records.length == 0) { |
| | | that.status = 'noMore' |
| | | } |
| | | that.baColor = "background-color: #1cbbb4;" |