|
|
@ -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() { |
|
|
|