You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.5 KiB
59 lines
1.5 KiB
// epdc-shibei-analysis-mp/miniprogram/pages/detail/topicDetail/topicDetail.js
|
|
import { getTopicDetail } from '../../../../../api/issue'
|
|
|
|
Page({
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
id:'',
|
|
detailData: {},
|
|
issueState: "",
|
|
detailType:'topic',
|
|
// processList: [],
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function (options) {
|
|
wx.showLoading({
|
|
title: '加载中',
|
|
})
|
|
this.setData({
|
|
id: options.Id
|
|
})
|
|
this.getTopicDetail()
|
|
},
|
|
|
|
// 获取话题详情
|
|
getTopicDetail() {
|
|
let that = this
|
|
getTopicDetail(that.data.id).then((res: any) => {
|
|
that.setData({
|
|
detailData: {
|
|
id: res.data.id,
|
|
eventId: res.data.id,
|
|
avatar: res.data.userAvatar,
|
|
nickname: res.data.nickname,
|
|
distributeTime: res.data.createdTime,
|
|
images: res.data.images,
|
|
content: res.data.topicContent,
|
|
mobile: res.data.mobile,
|
|
address: res.data.address,
|
|
categoryName: res.data.categoryName,
|
|
statementNum: res.data.statementNum,
|
|
approveNum: res.data.approveNum,
|
|
opposeNum: res.data.opposeNum,
|
|
commentNum: res.data.commentNum,
|
|
browseNum: res.data.browseNum,
|
|
allDeptNames: res.data.allDeptNames,
|
|
groupName: res.data.groupName,
|
|
allDeptNames: res.data.allDeptNames,
|
|
pageName:'topicDetail'
|
|
}
|
|
})
|
|
wx.hideLoading()
|
|
})
|
|
}
|
|
})
|