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