榆山数据端小程序
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.
 
 

39 lines
699 B

import { getItemDetail } from '../../../../api/reality'
Page({
/**
* 页面的初始数据
*/
data: {
eventId: '',
hotRemarkEventId: '',
detailData: {},
issueState: "1",
detailType: 'event',
loadType: 'none',
loadVisible: false
},
onReachBottom () {
this.setData({
loadVisible: true
})
},
onLoad: function (options) {
console.log(options.id)
this.setData({
eventId: options.id,
hotRemarkEventId: options.eventId
})
this.getItemDetail(options.id)
},
// 获取议题详情
getItemDetail(eventId: any) {
let that = this
getItemDetail(eventId).then((res: any) => {
that.setData({
detailData: res.data
})
})
}
})