|
@ -43,7 +43,7 @@ Page({ |
|
|
// 获取事件详情
|
|
|
// 获取事件详情
|
|
|
getEventDetail() { |
|
|
getEventDetail() { |
|
|
api.getEventDetail(this.data.issueId).then((res) => { |
|
|
api.getEventDetail(this.data.issueId).then((res) => { |
|
|
console.log(res.data) |
|
|
console.log(res.data.userId) |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
detailData: { |
|
|
detailData: { |
|
|
id: res.data.id, |
|
|
id: res.data.id, |
|
@ -56,7 +56,8 @@ Page({ |
|
|
mobile: res.data.mobile, |
|
|
mobile: res.data.mobile, |
|
|
address: res.data.address, |
|
|
address: res.data.address, |
|
|
advice: res.data.advice, |
|
|
advice: res.data.advice, |
|
|
handleResidentImages: res.data.handleResidentImages |
|
|
handleResidentImages: res.data.handleResidentImages, |
|
|
|
|
|
userId: res.data.userId, |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
@ -64,7 +65,7 @@ Page({ |
|
|
// 获取议题详情
|
|
|
// 获取议题详情
|
|
|
getIssueDetail() { |
|
|
getIssueDetail() { |
|
|
api.getIssueDetail(this.data.issueId).then((res) => { |
|
|
api.getIssueDetail(this.data.issueId).then((res) => { |
|
|
console.log(res.data) |
|
|
console.log(res.data.userId) |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
detailData: { |
|
|
detailData: { |
|
|
id: res.data.id, |
|
|
id: res.data.id, |
|
@ -81,7 +82,8 @@ Page({ |
|
|
approveNum: res.data.approveNum, |
|
|
approveNum: res.data.approveNum, |
|
|
opposeNum: res.data.opposeNum, |
|
|
opposeNum: res.data.opposeNum, |
|
|
commentNum: res.data.commentNum, |
|
|
commentNum: res.data.commentNum, |
|
|
browseNum: res.data.browseNum |
|
|
browseNum: res.data.browseNum, |
|
|
|
|
|
userId: res.data.userId, |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
@ -167,10 +169,16 @@ Page({ |
|
|
categoryId: this.data.handleSubmitData.categoryId, |
|
|
categoryId: this.data.handleSubmitData.categoryId, |
|
|
eventState: this.data.handleSubmitData.eventState, |
|
|
eventState: this.data.handleSubmitData.eventState, |
|
|
advice: this.data.handleSubmitData.advice, |
|
|
advice: this.data.handleSubmitData.advice, |
|
|
images: this.data.handleSubmitData.images |
|
|
images: this.data.handleSubmitData.images, |
|
|
|
|
|
userId: this.data.detailData.userId, |
|
|
} |
|
|
} |
|
|
api.postEventHandleSubmit(params).then((res) => { |
|
|
wx.showLoading({ |
|
|
|
|
|
title: '正在提交,请稍后', |
|
|
|
|
|
}) |
|
|
|
|
|
if (this.data.handleSubmitData.eventState == 2) { //事件状态(2-驳回,4-审核通过)
|
|
|
|
|
|
api.reviewNopass(params).then((res) => { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
|
|
|
wx.hideLoading() |
|
|
if (res.code === 0) { |
|
|
if (res.code === 0) { |
|
|
// 显示提醒
|
|
|
// 显示提醒
|
|
|
this.setData({ |
|
|
this.setData({ |
|
@ -178,6 +186,27 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
} else if (this.data.handleSubmitData.eventState == 4) { |
|
|
|
|
|
api.reviewPass(params).then((res) => { |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
if (res.code === 0) { |
|
|
|
|
|
// 显示提醒
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
visible: true |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
// api.postEventHandleSubmit(params).then((res) => {
|
|
|
|
|
|
// console.log(res)
|
|
|
|
|
|
// if (res.code === 0) {
|
|
|
|
|
|
// // 显示提醒
|
|
|
|
|
|
// this.setData({
|
|
|
|
|
|
// visible: true
|
|
|
|
|
|
// })
|
|
|
|
|
|
// }
|
|
|
|
|
|
// })
|
|
|
} else if (this.data.issueState == "1") { // 待处理
|
|
|
} else if (this.data.issueState == "1") { // 待处理
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -206,10 +235,27 @@ Page({ |
|
|
id: this.data.detailData.id, |
|
|
id: this.data.detailData.id, |
|
|
advice: this.data.handleSubmitData.advice, |
|
|
advice: this.data.handleSubmitData.advice, |
|
|
state: this.data.handleSubmitData.state, |
|
|
state: this.data.handleSubmitData.state, |
|
|
images: this.data.handleSubmitData.images |
|
|
images: this.data.handleSubmitData.images, |
|
|
|
|
|
userId: this.data.detailData.userId, |
|
|
|
|
|
} |
|
|
|
|
|
wx.showLoading({ |
|
|
|
|
|
title: '正在提交,请稍后', |
|
|
|
|
|
}) |
|
|
|
|
|
if (this.data.handleSubmitData.state == 1) { //状态 1 回应,2 关闭,4 转项目
|
|
|
|
|
|
api.response(params).then((res) => { |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
if (res.code === 0) { |
|
|
|
|
|
// 显示提醒
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
visible: true |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
api.postIssueHandleSubmit(params).then((res) => { |
|
|
}) |
|
|
|
|
|
} else if (this.data.handleSubmitData.state == 2) { |
|
|
|
|
|
api.close(params).then((res) => { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
|
|
|
wx.hideLoading() |
|
|
if (res.code === 0) { |
|
|
if (res.code === 0) { |
|
|
// 显示提醒
|
|
|
// 显示提醒
|
|
|
this.setData({ |
|
|
this.setData({ |
|
@ -217,6 +263,27 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
} else if (this.data.handleSubmitData.state == 4) { |
|
|
|
|
|
api.toItem(params).then((res) => { |
|
|
|
|
|
console.log(res) |
|
|
|
|
|
wx.hideLoading() |
|
|
|
|
|
if (res.code === 0) { |
|
|
|
|
|
// 显示提醒
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
visible: true |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
// api.postIssueHandleSubmit(params).then((res) => {
|
|
|
|
|
|
// console.log(res)
|
|
|
|
|
|
// if (res.code === 0) {
|
|
|
|
|
|
// // 显示提醒
|
|
|
|
|
|
// this.setData({
|
|
|
|
|
|
// visible: true
|
|
|
|
|
|
// })
|
|
|
|
|
|
// }
|
|
|
|
|
|
// })
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|