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.

46 lines
1.3 KiB

const app = getApp();
Component({
data: {
imageUrl: getApp().globalData.imageUrl,
bgImage: "background-image: url("+ getApp().globalData.imageUrl + "/sj_beijin.png)",
questes:[],
// content:[]
},
lifetimes: {
attached() {
wx.showToast({
title: '加载中',
icon: 'loading',
duration: 300000
})
app.globalData.request({action: 'getEventsListH', sType: 'Home', sTimeType: 3}).then(res => {
const arr = []
res.forEach(ele => {
let obj = {
title: ele.events_title,
influence: ele.events_influence,
brand:ele.events_brand,
text:ele.summary,
time:ele.minSourcetime,
count:ele.events_count,
}
arr.push(obj)
})
this.setData({
questes: arr,
})
setTimeout(() =>{
wx.hideToast();
},500)
})
},
},
methods: {
priceSel(e){
this.setData({
intervalSel: e.currentTarget.dataset.index
})
},
}
})