|
|
|
@ -5,10 +5,8 @@ const app = getApp();
|
|
|
|
|
Component({
|
|
|
|
|
data: {
|
|
|
|
|
showChart: true,
|
|
|
|
|
hotEventPoint: pointOption([],[]),
|
|
|
|
|
hotEventData: [],
|
|
|
|
|
bgImage: "background-image: url("+ getApp().globalData.imageUrl + "/sj_beijin.png)",
|
|
|
|
|
topModalData: multiColumnsOption([],[],[]),
|
|
|
|
|
topHotEventData: multiColumnsOption([],[],[]),
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -21,54 +19,18 @@ Component({
|
|
|
|
|
sBrand: wx.getStorageSync('sBrand') || '',
|
|
|
|
|
iPageIndex: 1,
|
|
|
|
|
iPageSize: 10,
|
|
|
|
|
iTimeType: 0
|
|
|
|
|
iTimeType: 0,
|
|
|
|
|
sSeriesName: wx.getStorageSync('sSeriesName') || '',
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.setData({ hotEventData: res})
|
|
|
|
|
});
|
|
|
|
|
app.globalData.request({
|
|
|
|
|
action: 'getHotEventsType', //热点事件点阵分布
|
|
|
|
|
token: 't%2BrswgjvzGM=',
|
|
|
|
|
sType: 'HotEvent',
|
|
|
|
|
sTimeType: wx.getStorageSync('sTimeType') || 34,
|
|
|
|
|
sBrand: wx.getStorageSync('sBrand') || '',
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let arr = [[],[]]; let dName = ['新车上市','车展']
|
|
|
|
|
res.Data.forEach(ele => {
|
|
|
|
|
if(ele.events_type == '新车上市') {
|
|
|
|
|
let a = [ele.minSourcetime, ele.events_influence, ele.events_title];
|
|
|
|
|
arr[0].push(a)
|
|
|
|
|
} else if(ele.events_type == '车展') {
|
|
|
|
|
let b = [ele.minSourcetime, ele.events_influence, ele.events_title];
|
|
|
|
|
arr[1].push(b)
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.setData({ hotEventPoint: pointOption(arr,dName)})
|
|
|
|
|
});
|
|
|
|
|
app.globalData.request({
|
|
|
|
|
action: 'getHotEventSseries', //热点事件top车型分布
|
|
|
|
|
token: 't%2BrswgjvzGM=',
|
|
|
|
|
sType: 'HotEvent0528',
|
|
|
|
|
sTimeType: wx.getStorageSync('sTimeType') || 34,
|
|
|
|
|
sBrand: wx.getStorageSync('sBrand') || '',
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let dx = []; let dName = []; let dValue = [[],[],[],[],[],[],[],[]];
|
|
|
|
|
res.forEach(ele => {
|
|
|
|
|
dx.push(ele.key)
|
|
|
|
|
for(let i=0;i<ele.data.length;i++) {
|
|
|
|
|
dValue[i].push(ele.data[i].value*1);
|
|
|
|
|
if(dName.indexOf(ele.data[i].key) == -1) {
|
|
|
|
|
dName.push(ele.data[i].key)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
this.setData({topModalData: multiColumnsOption(dx,dValue,dName)})
|
|
|
|
|
});
|
|
|
|
|
app.globalData.request({
|
|
|
|
|
action: 'getEventsSourceTypeByEventsType0528', //热点事件渠道分布
|
|
|
|
|
token: 't%2BrswgjvzGM=',
|
|
|
|
|
sType: 'HotEvent0528',
|
|
|
|
|
sTimeType: wx.getStorageSync('sTimeType') || 34,
|
|
|
|
|
sBrand: wx.getStorageSync('sBrand') || '',
|
|
|
|
|
sSeriesName: wx.getStorageSync('sSeriesName') || '',
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let dx = []; let dName = []; let dValue = [[],[],[],[],[],[],[],[]];
|
|
|
|
|
res.forEach(ele => {
|
|
|
|
|