| | |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | query: '', |
| | | sortType: 'NORMAL', |
| | | sortType: '', |
| | | catalogCode: 'real_case' |
| | | }, |
| | | attached() { |
| | |
| | | total: res.data.total, |
| | | }) |
| | | }) |
| | | }, |
| | | scrolltoupper() { |
| | | this.setData({ pageNum: 1,datalist: [],total: 0}) |
| | | this.getList() |
| | | }, |
| | | scrolltolower() { |
| | | console.log('触底事件'); |
| | |
| | | if(item.openType == 'link'){ |
| | | wx.navigateTo({ |
| | | url: '/pages/webView/index?link=' + item.openContent, |
| | | success: function(res) { |
| | | // 通过eventChannel向被打开页面传送数据 |
| | | res.eventChannel.emit('acceptDataFromOpenerPage', { link: item.openContent}) |
| | | } |
| | | }) |
| | | } |
| | | if(item.openType == 'page'){ |
| | |
| | | const { cateList } = this.data |
| | | cateList.forEach(item => { |
| | | item.paramIndex = -1 |
| | | item.paramName = '' |
| | | item.paramName = item.paramName || '' |
| | | }) |
| | | this.setData({ tagCodes: [],activeParam: [],cateList,activeIndex: -1 }) |
| | | }, |
| | | bindblur() { |
| | | this.setData({ pageNum: 1,dataList: [],total: 0}) |
| | | this.getList() |
| | | }, |
| | | subParam() { |
| | | this.setData({ activeParam: [] }) |
| | | this.setData({ pageNum: 1,dataList: [],total: 0}) |
| | | this.setData({ pageNum: 1,activeIndex: -1,dataList: [],total: 0}) |
| | | this.getList() |
| | | }, |
| | | changeShowParams(e){ |