Browse Source

灵山数据匹配问题

data-page
是小王呀\24601 7 months ago
parent
commit
076a912010
  1. 1
      pages/statistics/modules/ProblemList/ProblemList.js
  2. 2
      pages/statistics/statistics.wxml
  3. 17
      subpages/statistics/pages/problem/problem.js
  4. 1
      subpages/statistics/pages/problemList/problemList.js

1
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
})

2
pages/statistics/statistics.wxml

@ -61,7 +61,7 @@
<view class="card">
<view class="title">
<text>攻坚事件</text>
<view class="view" bind:tap="gotoAttack" data-url="/subpages/statistics/pages/problemList/problemList?type={{tabValue}}">
<view class="view" bind:tap="gotoAttack">
更多
<image mode="widthFix" src="../../images/right.png"></image>
</view>

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

1
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) : ''

Loading…
Cancel
Save