wylyl22 3 years ago
parent c9fbf7c49a
commit 214d0e395b

@ -1,11 +1,14 @@
// const { default: brandOption } = require("../../option/brandOption");
const app = getApp();
import histogram from "../../option/columnarOption"
const data1=['大众速腾', '激励帝豪', '吉利星越', '奥迪A4', '奥迪Q5']
const data2=[1400, 2000, 1500, 1800, 1490, 900, 310]
// const data1=['大众速腾', '激励帝豪', '吉利星越', '奥迪A4', '奥迪Q5']
// const data2=[1400, 2000, 1500, 1800, 1490, 900, 310]
const data3=['尾翼互动量']
Component({
data: {
showChart: true,
data1:[],
data2:[],
brandOption: histogram(data1,data2,data3,'#0084FF'),
modelOption: histogram(data1,data2,data3,'#20CC62'),
},
@ -13,8 +16,25 @@ Component({
onShow() {
this.getTabBar().init();
},
a(){
console.log('132')
lifetimes: {
attached() {
app.globalData.request({action: 'getEventsListH', sType: 'Home', sTimeType: 3}).then(res => {
const brand = []
const value=[]
res.forEach(ele => {
brand.push(ele.key)
value.push(ele.value)
})
this.setData({
// countYear: data.count_year,
// count6month: data.count_6month,
// countAll: data.count_all,
data1:brand,
data2:value
})
})
},
},
methods: {
priceSel(e){

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

Loading…
Cancel
Save