import { getGuideInfo} from '../../utils/api' Page({ data: { partyGroupId: '', todayTopic: {}, guideInfoData: [] }, onLoad: function (options) { this.data.partyGroupId = options.partyGroupId getGuideInfo(this.data.partyGroupId).then(res => { if (res.data.length > 0) { this.todayTopic = {...res.data[0]} res.data.shift() this.setData({ todayTopic: this.todayTopic, guideInfoData: res.data }) } }) } })