Browse Source

灵山

data-page-lingshan
是小王呀\24601 7 months ago
parent
commit
45ee4b0a6b
  1. 2
      pages/statistics/modules/HotlineRates/HotlineRates.wxml
  2. 1
      pages/statistics/modules/ProblemList/ProblemList.js
  3. 17
      subpages/statistics/pages/problem/problem.js
  4. 4
      utils/config.js

2
pages/statistics/modules/HotlineRates/HotlineRates.wxml

@ -42,7 +42,7 @@
<view class="lab">收件数</view>
<view class="val">{{item.total}}</view>
</view>
<!-- <view class="child">
<view class="child">
<view class="lab">未回复</view>
<view class="val">0</view>
</view>

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

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

4
utils/config.js

@ -13,8 +13,8 @@ module.exports = {
};
function BASEURL() {
// return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
return 'http://192.168.1.144/api/' //测试环境
return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
// return 'http://192.168.1.144/api/' //测试环境
// return 'http://219.146.91.110:30801/api/'
// return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境
// return 'http://192.168.1.144/api/' //测试环境

Loading…
Cancel
Save