diff --git a/pages/statistics/modules/ProblemList/ProblemList.js b/pages/statistics/modules/ProblemList/ProblemList.js index c7f67b7..1116a10 100644 --- a/pages/statistics/modules/ProblemList/ProblemList.js +++ b/pages/statistics/modules/ProblemList/ProblemList.js @@ -43,7 +43,6 @@ Component({ "queryDateEnd":formatTime(new Date(now.getFullYear(), now.getMonth() + 1, 0, 23, 59, 59)) } dwdEventReport(params).then(res => { - this.setData({ data: res.data }) diff --git a/pages/statistics/statistics.wxml b/pages/statistics/statistics.wxml index 4743b64..8574910 100644 --- a/pages/statistics/statistics.wxml +++ b/pages/statistics/statistics.wxml @@ -61,7 +61,7 @@ 攻坚事件 - + 更多 diff --git a/subpages/statistics/pages/problem/problem.js b/subpages/statistics/pages/problem/problem.js index 7737d6d..f315e7a 100644 --- a/subpages/statistics/pages/problem/problem.js +++ b/subpages/statistics/pages/problem/problem.js @@ -24,23 +24,26 @@ Page({ total: 0 }, onLoad(options) { + console.log(options,"sdkljfglksdf"); this.setData({ type: options.type, data: options.data ? JSON.parse(options.data) : '' }) + console.log(this.data.data,"dskljfl"); this.getList() }, getList() { let params = { pageNo: this.data.pageNo, - pageSize: 10 + pageSize: 10, + mobile:this.data.data.mobile } let detail = this.data.data if (this.data.type === 'addressEvent') { - params.secondIdList = [detail.categoryId]; + params.firstIdList = [detail.categoryId]; } if (this.data.type === 'addressEvent' || this.data.type === 'addressMobileEvents') { - params.content = detail.address; + params.eventContent = detail.address; } if (this.data.type === 'mobileEvent') { params.mobile = detail.mobile; @@ -48,15 +51,17 @@ Page({ dwdEventList(params).then(res => { this.setData({ - total: res.data.total, + total: res.data.total, list: this.data.list.concat(res.data.list) }) }) }, gotoPage({currentTarget: {dataset: {id}}}) { + console.log(id,"dlkjsklgfs"); + let token=wx.getStorageSync('token') wx.navigateTo({ - url: '/subpages/statistics/pages/event/detail/detail?id=' + id - }) + url: '/pages/webView/webView?worktoken='+token+'&iceventid='+id+'&AttackEvent='+'https://epmet-preview.elinkservice.cn/epmet-work-h5/#/HotlineDetail', + }) }, onReachBottom() { diff --git a/subpages/statistics/pages/problemList/problemList.js b/subpages/statistics/pages/problemList/problemList.js index b0625c0..24854e3 100644 --- a/subpages/statistics/pages/problemList/problemList.js +++ b/subpages/statistics/pages/problemList/problemList.js @@ -27,6 +27,7 @@ Page({ total: 0, }, onLoad(options) { + console.log(options,"wskljew"); this.setData({ type: options.type, data: options.data ? JSON.parse(options.data) : ''