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.

63 lines
1.6 KiB

const app = getApp();
Component({
data: {
imageUrl: getApp().globalData.imageUrl,
// ranking: [
// {
// volume: '12345',
// media: '媒体',
// },
// {
// volume: '12345',
// media: '媒测评',
// },
// {
// volume: '12345',
// media: '媒体测评',
// },
// {
// volume: '12345',
// media: '媒体探测测评',
// },
// {
// volume: '712345',
// media: '媒体测评',
// },
// {
// volume: '1234533',
// media: '媒体测评',
// }
// ],
ranking:[]
},
lifetimes: {
attached() {
app.globalData.request({action: 'getWebsiteHome0528', sType: 'Home', sTimeType: 34}).then(res => {
const arr = []
let a=res
// a.forEach(ele => {
// let obj = {
// title: key,
// num: this.data[key],
// }
// arr.push(obj)
// })
this.setData({
// countYear: data.count_year,
// count6month: data.count_6month,
// countAll: data.count_all,
ranking: a
})
})
},
},
methods: {
a(){
console.log('111',ranking)
},
}
})