|
|
|
@ -14,6 +14,8 @@ Component({
|
|
|
|
|
wyDataList: [],
|
|
|
|
|
//热门词云
|
|
|
|
|
wordCloudActive: 0,
|
|
|
|
|
wlvl: 36,
|
|
|
|
|
wShow: false,
|
|
|
|
|
wordCloudData: [],
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -87,7 +89,7 @@ Component({
|
|
|
|
|
iPageIndex: 1,
|
|
|
|
|
iPageSize: 10
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.setData({wyDataList: res})
|
|
|
|
|
this.setData({wyDataList: res, })
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
getWordCloud() {
|
|
|
|
@ -105,7 +107,7 @@ Component({
|
|
|
|
|
let o = [key, res[key]]
|
|
|
|
|
arr1.push(o)
|
|
|
|
|
});
|
|
|
|
|
this.setData({wordCloudData: arr1})
|
|
|
|
|
this.setData({wordCloudData: arr1, wShow: true})
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
toEventDetail(value) {
|
|
|
|
@ -121,7 +123,8 @@ Component({
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
changeWordCloud(event) {
|
|
|
|
|
this.setData({wordCloudActive: event.detail.index});
|
|
|
|
|
let sy = event.detail.index ? 27 : 36;
|
|
|
|
|
this.setData({wordCloudActive: event.detail.index, wlvl: sy, wShow: false});
|
|
|
|
|
this.getWordCloud()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|