dev
liuyongli 3 years ago
parent 02c184f8e7
commit fb77164476

@ -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({

@ -1,6 +1,6 @@
<view>
<!-- 时间组件 -->
<time-component></time-component>
<time-component bindchange="changeTime"></time-component>
<view class="brand">
<view class="text">品牌传播声量</view>
<view class="brand_tu">

Loading…
Cancel
Save