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.
21 lines
528 B
21 lines
528 B
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
|
|
})
|
|
}
|
|
})
|
|
}
|
|
})
|
|
|