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.

35 lines
980 B

3 years ago
const app = getApp();
Component({
3 years ago
data: {
3 years ago
imageUrl: getApp().globalData.imageUrl,
bgImage: "background-image: url("+ getApp().globalData.imageUrl + "/sj_beijin.png)",
3 years ago
questes: []
3 years ago
},
3 years ago
methods: {
toEventDetail(value) {
let id = value.currentTarget.dataset.id;
3 years ago
wx.setStorageSync('sRele', id);
wx.navigateTo({
url: "/pages/insight/pages/eventInsight/index"
})
3 years ago
}
},
lifetimes: {
attached() {
//页面数据
app.globalData.request({
action: 'getHotEventsList0528',
sType: 'HotEvent',
token: 't%2BrswgjvzGM=',
sTimeType: '34',
iPageIndex: 1,
iPageSize: 10,
iTimeType: 0,
}).then(res => {
this.setData({
questes: res
})
});
},
3 years ago
},
})