|
|
|
@ -31,6 +31,7 @@ Component({
|
|
|
|
|
icon: 'loading',
|
|
|
|
|
duration: 300000
|
|
|
|
|
})
|
|
|
|
|
//品牌
|
|
|
|
|
app.globalData.request( {
|
|
|
|
|
action: 'getWeiYiCountHome0528',
|
|
|
|
|
sType: 'Home',
|
|
|
|
@ -45,7 +46,6 @@ Component({
|
|
|
|
|
arr.push(ele.key);
|
|
|
|
|
arr1.push(ele.value)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.setData({
|
|
|
|
|
brandOption: histogram(arr,arr1,"#0084FF")
|
|
|
|
|
})
|
|
|
|
@ -55,6 +55,30 @@ Component({
|
|
|
|
|
console.log('333',arr)
|
|
|
|
|
console.log('333',arr1)
|
|
|
|
|
})
|
|
|
|
|
//车型
|
|
|
|
|
app.globalData.request( {
|
|
|
|
|
action: 'getWeiYiCountHome0528',
|
|
|
|
|
sType: 'Home',
|
|
|
|
|
sQueryType:2,
|
|
|
|
|
sTimeType: sTimeType,
|
|
|
|
|
sStartTime: sStartTime,
|
|
|
|
|
sEndTime: sEndTime,
|
|
|
|
|
}).then(res => {
|
|
|
|
|
const arr = []
|
|
|
|
|
const arr1=[]
|
|
|
|
|
res.forEach(ele => {
|
|
|
|
|
arr.push(ele.key);
|
|
|
|
|
arr1.push(ele.value)
|
|
|
|
|
})
|
|
|
|
|
this.setData({
|
|
|
|
|
modelOption: histogram(arr,arr1,"#20CC62")
|
|
|
|
|
})
|
|
|
|
|
setTimeout(() =>{
|
|
|
|
|
wx.hideToast();
|
|
|
|
|
},500)
|
|
|
|
|
console.log('333',arr)
|
|
|
|
|
console.log('333',arr1)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
priceSel(e){
|
|
|
|
|
this.setData({
|
|
|
|
|