dev
liuyongli 3 years ago
parent 8f2c68f12f
commit 5509216cf1

162
app.js

@ -3,11 +3,11 @@ function splitQueryParams(params, key) {
let strParams = '';
if (Object.keys(params).length <= 0) return strParams;
for (let i in params) {
if(params[i] instanceof Object) {
if (params[i] instanceof Object) {
let k = key ? `${key}.${i}` : i;
strParams += splitQueryParams(params[i], k);
} else if(params[i] instanceof Array) {
for(let j = 0; j < params[i].length; j++) {
} else if (params[i] instanceof Array) {
for (let j = 0; j < params[i].length; j++) {
let k = key ? `${key}[${j}].${i}` : i;
strParams += splitQueryParams(params[i][j], k);
}
@ -23,33 +23,33 @@ function splitQueryParams(params, key) {
//获取页面配置并进行页面分享配置
var PageTmp = Page
Page = function (pageConfig) {
//1. 获取当前页面路由
let routerUrl = ""
wx.onAppRoute(function (res) {
//app.js中需要在隐式路由中才能用getCurrentPages获取到页面路由
let pages = getCurrentPages(),
view = pages[pages.length - 1];
routerUrl = view.route
})
//2. 全局开启分享配置
pageConfig = Object.assign({
onShareAppMessage: function () {
//根据不同路由设置不同分享内容(微信小程序分享自带参数,如非特例,不需配置分享路径)
let shareInfo={}
let noGlobalSharePages=["index/index"]
//全局分享配置,如部分页面需要页面默认分享或自定义分享可以单独判断处理
if (!routerUrl.includes(noGlobalSharePages)){
shareInfo = {
title: "硕为思汽车智能洞察",
// imageUrl: wx.getStorageSync("shareUrl")
//1. 获取当前页面路由
let routerUrl = ""
wx.onAppRoute(function (res) {
//app.js中需要在隐式路由中才能用getCurrentPages获取到页面路由
let pages = getCurrentPages(),
view = pages[pages.length - 1];
routerUrl = view.route
})
//2. 全局开启分享配置
pageConfig = Object.assign({
onShareAppMessage: function () {
//根据不同路由设置不同分享内容(微信小程序分享自带参数,如非特例,不需配置分享路径)
let shareInfo = {}
let noGlobalSharePages = ["index/index"]
//全局分享配置,如部分页面需要页面默认分享或自定义分享可以单独判断处理
if (!routerUrl.includes(noGlobalSharePages)) {
shareInfo = {
title: "硕为思汽车智能洞察",
// imageUrl: wx.getStorageSync("shareUrl")
}
}
return shareInfo
}
}
return shareInfo
}
}, pageConfig);
// 配置页面模板
PageTmp(pageConfig);
}, pageConfig);
// 配置页面模板
PageTmp(pageConfig);
}
}();
App({
@ -102,8 +102,11 @@ App({
})
})
},
requestImg: function(data) {
let obj = {version: '1', data};
requestImg: function (data) {
let obj = {
version: '1',
data
};
return new Promise((resolve, reject) => {
wx.request({
url: 'https://saas.kaidalai.cn/word_cloud/wordCloud/getWordCloud',
@ -120,40 +123,77 @@ App({
}
},
// 版本更新
autoUpdate: function () {
if (wx.canIUse('getUpdateManager')) {
const updateManager = wx.getUpdateManager()
updateManager.onCheckForUpdate(function (res) {
// 请求完新版本信息的回调
if (res.hasUpdate) {
updateManager.onUpdateReady(function () {
wx.showModal({
title: '更新提示',
content: '新版本已经准备好,是否重启应用?',
success: function (res) {
if (res.confirm) {
// 新的版本已经下载好调用applyUpdate应用新版本并重启
updateManager.applyUpdate();
autoUpdate: function () {
var self = this // 获取小程序更新机制兼容
if (wx.canIUse('getUpdateManager')) {
const updateManager = wx.getUpdateManager()
updateManager.onCheckForUpdate(function (res) {
// 请求完新版本信息的回调
if (res.hasUpdate) {
updateManager.onUpdateReady(function () {
wx.showModal({
title: '更新提示',
content: '新版本已经准备好,是否重启应用?',
success: function (res) {
if (res.confirm) {
// 新的版本已经下载好调用applyUpdate应用新版本并重启
updateManager.applyUpdate();
} else if (res.cancel) {
wx.showModal({
title: '温馨提示~',
content: '本次版本更新涉及到新的功能添加,旧版本无法正常访问的哦~',
showCancel: false, //隐藏取消按钮
confirmText: "确定更新", //只保留确定更新按钮
success: function (res) {
if (res.confirm) {
//下载新版本,并重新应用
self.downLoadAndUpdate(updateManager)
}
}
})
}
}
})
})
updateManager.onUpdateFailed(function () {
// 新的版本下载失败
wx.showModal({
title: '已经有新版本了哟~',
content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~'
})
})
}
}
})
})
updateManager.onUpdateFailed(function () {
// 新的版本下载失败
} else {
// 此时微信版本太低(一般而言版本都是支持的)
wx.showModal({
title: '已经有新版本了哟~',
content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~'
title: '溫馨提示',
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
})
})
}
})
} else {
// 此时微信版本太低(一般而言版本都是支持的)
wx.showModal({
title: '溫馨提示',
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
})
},
/**
* 下载小程序新版本并重启应用
*/
downLoadAndUpdate: function (updateManager) {
var self = this
wx.showLoading();
//静默下载更新小程序新版本
updateManager.onUpdateReady(function () {
wx.hideLoading()
//新的版本已经下载好,调用 applyUpdate 应用新版本并重启
updateManager.applyUpdate()
})
updateManager.onUpdateFailed(function () {
// 新的版本下载失败
wx.showModal({
title: '已经有新版本了哟~',
content: '新版本已经上线啦~,请您删除当前小程序,重新搜索打开哟~',
})
})
},
onShow() {
this.autoUpdate()
}
}
})

@ -50,7 +50,6 @@ Component({
sStartTime: wx.getStorageSync('newTime') || '',
sEndTime: wx.getStorageSync('newTime') || ''
}).then(res => {
console.log(res)
const carName = []
const carCount = []
res.forEach(e => {
@ -75,7 +74,6 @@ Component({
sStartTime: wx.getStorageSync('newTime') || "",
sEndTime: wx.getStorageSync('newTime') || ""
}).then(res => {
console.log(res)
const carName = []
const carCount = []
res.forEach(e => {

@ -57,7 +57,7 @@ Page({
onChange1({
detail
}) {
let Statu = detail ? 0 : 2; //开启0 停止1
let Statu = detail ? 0 : 1; //开启0 停止1
this.setData({
checked: detail
});
@ -96,10 +96,11 @@ Page({
token: wx.getStorageSync('token') || 't%2BrswgjvzGM=',
data: JSON.stringify({
Id: this.data.Id,
WeiXinID: wx.getStorageSync('openid'),
Es: {
Brands: this.data.brand,
Crisis: this.data.result.toString(),
SeriesNames: this.data.sSeriesName
SeriesNames: this.data.sSeriesName,
}
})
}

@ -3,403 +3,410 @@ const app = getApp()
import brokenLine from "../../../components/option/singleLineOption"
import histogram from "../../../components/option/columnarOption"
import {
times
times
} from "../../../components/option/text"
import moment from "moment"
let iPageIndex = 1 // 当前第几页,0代表第一页
let iPageSize = 20 //每页显示多少数据
Page({
data: {
active: 0,
end: moment().format("YYYY-MM"),
showChart: true,
// select: false,
grade_value1: "",
grade_value2: "",
grade_value3: "",
grade_value4: 0,
grades4: [{
text: '列表展示',
value: 0
},
{
text: '图表展示',
value: 1
}
],
num: 0,
num1: false,
//弹出框
show: false,
duration: 300,
position: 'bottom',
// round: true,
overlay: true,
showChart: true,
//图表
// positiveOption:brokenLine(dName,dValue,dColor,data),
imageUrl: getApp().globalData.imageUrl,
date: wx.getStorageSync('newTime'),
accountIndex: 0,
ranking: [],
accountIndex: 0,
sSpec: '',
sPriceType: '',
sEnergyType: '',
imageUrl: getApp().globalData.imageUrl,
mockData: [],
show1:false,
data: {
active: 0,
end: moment().format("YYYY-MM"),
showChart: true,
// select: false,
grade_value1: "",
grade_value2: "",
grade_value3: "",
grade_value4: 0,
grades4: [{
text: '列表展示',
value: 0
},
{
text: '图表展示',
value: 1
}
],
num: 0,
num1: false,
//弹出框
show: false,
duration: 300,
position: 'bottom',
// round: true,
overlay: true,
showChart: true,
//图表
// positiveOption:brokenLine(dName,dValue,dColor,data),
imageUrl: getApp().globalData.imageUrl,
date: wx.getStorageSync('newTime'),
accountIndex: 0,
ranking: [],
accountIndex: 0,
sSpec: '',
sPriceType: '',
sEnergyType: '',
imageUrl: getApp().globalData.imageUrl,
mockData: [],
show1: false,
//
ec: {
lazyLoad: true // 设置图表懒加载
}
},
// 标签切换点击事件
onChange(val) {
let n = val.detail.index;
this.setData({
active: n
})
// wx.showToast({
// // title: `切换到标签 ${event.detail.name}`,
// icon: 'none',
// });
},
getData() {
wx.showToast({
title: '加载中',
icon: 'loading',
duration: 3000
})
// 下拉列表
this.getAmount();
// 车型
this.getTrend();
// 品牌
app.globalData.request({
action: 'getUserBrand',
token: 't%2BrswgjvzGM=',
}).then(res => {
let arr = []
for (let i = 65; i <= 90; i++) {
arr.push({
name: String.fromCharCode(i),
data: []
});
}
for (let i of res) {
for (let j of arr) {
if (i.firstword == j.name) {
j.data.push(i)
}
//
ec: {
lazyLoad: true // 设置图表懒加载
}
}
this.setData({
mockData: arr
})
setTimeout(() => {
wx.hideToast();
}, 2000)
})
setTimeout(() => {
wx.hideToast();
}, 500)
},
// 排行榜数据
getTrend() {
wx.showToast({
title: '加载中',
icon: 'loading',
duration: 300000
})
let obj = {
action: 'getCheZhuCarSeriesRankingHome',
sType: 'Marketing',
sStartTime: this.data.date,
sEndTime: this.data.date,
iPageIndex: iPageIndex,
iPageSize: iPageSize,
sSpec: this.data.sSpec,
sPriceType: this.data.sPriceType,
sEnergyType: this.data.sEnergyType
}
//第一次加载数据
if (iPageIndex == 1) {
this.setData({
loadMore: true, //把"上拉加载"的变量设为true显示
loadAll: false //把“没有数据”设为false隐藏
})
}
app.globalData.request(obj, (database) => {}).then(res => {
const carName = []
const carValue = []
// console.log("这是数据",res)
if (res && res.length > 0) {
iPageIndex++;
//把新请求到的数据添加到列表里
let list = this.data.ranking.concat(res);
list.forEach(e => {
carName.push(e.seriesname)
carValue.push(e.salescount)
})
// length=(carName.length/carName.length)*100
// console.log(carName.length)
},
// 标签切换点击事件
onChange(val) {
let n = val.detail.index;
this.setData({
ranking: list, //获取数据数组
loadMore: false, //把"上拉加载"的变量设为false显示
brandOption: histogram(carName, carValue, '#0084FF', false, (20 / list.length) * 100)
});
if (res.length < iPageSize) {
this.setData({
loadMore: false, //隐藏加载中。。
loadAll: true //所有数据都加载完了
});
active: n
})
// wx.showToast({
// // title: `切换到标签 ${event.detail.name}`,
// icon: 'none',
// });
},
getData() {
wx.showToast({
title: '加载中',
icon: 'loading',
duration: 3000
})
// 下拉列表
this.getAmount();
// 车型
this.getTrend();
// 品牌
app.globalData.request({
action: 'getUserBrand',
token: 't%2BrswgjvzGM=',
}).then(res => {
let arr = []
for (let i = 65; i <= 90; i++) {
arr.push({
name: String.fromCharCode(i),
data: []
});
}
for (let i of res) {
for (let j of arr) {
if (i.firstword == j.name) {
j.data.push(i)
}
}
}
this.setData({
mockData: arr
})
setTimeout(() => {
wx.hideToast();
}, 2000)
})
setTimeout(() => {
wx.hideToast();
}, 500)
},
// 排行榜数据
getTrend() {
wx.showToast({
title: '加载中',
icon: 'loading',
duration: 300000
})
let obj = {
action: 'getCheZhuCarSeriesRankingHome',
sType: 'Marketing',
sStartTime: this.data.date,
sEndTime: this.data.date,
iPageIndex: iPageIndex,
iPageSize: iPageSize,
sSpec: this.data.sSpec,
sPriceType: this.data.sPriceType,
sEnergyType: this.data.sEnergyType
}
} else {
this.setData({
loadAll: true, //把“没有数据”设为true显示
loadMore: false //把"上拉加载"的变量设为false隐藏
//第一次加载数据
if (iPageIndex == 1) {
this.setData({
loadMore: true, //把"上拉加载"的变量设为true显示
loadAll: false //把“没有数据”设为false隐藏
})
}
app.globalData.request(obj, (database) => {}).then(res => {
const carName = []
const carValue = []
// console.log("这是数据",res)
if (res && res.length > 0) {
iPageIndex++;
//把新请求到的数据添加到列表里
let list = this.data.ranking.concat(res);
list.forEach(e => {
carName.push(e.seriesname)
carValue.push(e.salescount)
})
// length=(carName.length/carName.length)*100
// console.log(carName.length)
this.setData({
ranking: list, //获取数据数组
loadMore: false, //把"上拉加载"的变量设为false显示
brandOption: histogram(carName, carValue, '#0084FF', false, (20 / list.length) * 100)
});
if (res.length < iPageSize) {
this.setData({
loadMore: false, //隐藏加载中。。
loadAll: true //所有数据都加载完了
});
}
} else {
this.setData({
loadAll: true, //把“没有数据”设为true显示
loadMore: false //把"上拉加载"的变量设为false隐藏
});
}
setTimeout(() => {
wx.hideToast();
}, 500)
})
},
//页面上拉触底事件的处理函数
onReachBottom: function () {
// console.log("上拉触底事件")
// console.log(iPageIndex)
let that = this
if (!that.data.loadMore) {
that.setData({
loadMore: true, //加载中
loadAll: false //是否加载完所有数据
});
//加载更多,这里做下延时加载
that.getTrend();
}
},
// 筛选列表
getAmount() {
//能源
app.globalData.request({
action: 'getEnergyJson2',
}).then(res => {
let arr = []
res.forEach(ele => {
let obj = {
text: ele.value,
value: ele.key,
});
}
setTimeout(() => {
wx.hideToast();
}, 500)
})
},
//页面上拉触底事件的处理函数
onReachBottom: function () {
// console.log("上拉触底事件")
// console.log(iPageIndex)
let that = this
if (!that.data.loadMore) {
that.setData({
loadMore: true, //加载中
loadAll: false //是否加载完所有数据
});
//加载更多,这里做下延时加载
that.getTrend();
}
arr.push(obj)
})
this.setData({
grades3: arr,
})
})
//价格
app.globalData.request({
action: 'getPriceRangeS',
}).then(res => {
let arr = []
res.forEach(ele => {
let obj = {
text: ele.value,
value: ele.key
},
// 筛选列表
getAmount() {
//能源
app.globalData.request({
action: 'getEnergyJson2',
}).then(res => {
let arr = []
res.forEach(ele => {
let data = ele.data
if (data) {
let obj = {
text: ele.value,
value: ele.key,
}
arr.push(obj)
data.forEach(e => {
let ol = {
text: e.value,
value: e.key
}
arr.push(ol)
})
} else {
let obj = {
text: ele.value,
value: ele.key,
}
arr.push(obj)
}
})
this.setData({
grades3: arr
})
})
//价格
app.globalData.request({
action: 'getPriceRangeS',
}).then(res => {
let arr = []
res.forEach(ele => {
let obj = {
text: ele.value,
value: ele.key
}
arr.push(obj)
})
this.setData({
grades2: arr
})
})
//级别
app.globalData.request({
action: 'getSpecName1',
}).then(res => {
let arr = []
res.forEach(ele => {
let data = ele.data
if (data) {
let obj = {
text: ele.value,
value: ele.key,
}
arr.push(obj)
data.forEach(e => {
let ol = {
text: e.value,
value: e.key
}
arr.push(ol)
})
} else {
let obj = {
text: ele.value,
value: ele.key,
}
arr.push(obj)
}
})
this.setData({
grades1: arr,
})
})
},
bindValue(e) {
let type = e.detail.type
if (type == 0) {
this.data.roomLevel = e.detail.val
} else {
this.data.builds = e.detail.val
}
arr.push(obj)
})
this.setData({
grades2: arr
})
})
//级别
app.globalData.request({
action: 'getSpecName1',
}).then(res => {
console.log('de', res)
// const data = res;
// let arr = []
// res.forEach(ele => {
// let obj = {
// text: ele.value,
// value: ele.key
// }
// arr.push(obj)
// })
this.setData({
grades1:res ,
})
})
},
// 按级别
mySelect1(e){
console.log('cs', e.currentTarget.dataset.index.data)
let data = e.currentTarget.dataset.index.data
iPageIndex = 1
iPageSize = 20
if(data!= undefined){
},
// 按级别
mySelect1(e) {
iPageIndex = 1
iPageSize = 20
this.setData({
show1:true,
ranking: [],
sSpec: e.detail,
})
}else{
this.getTrend()
},
// 按价格
mySelect2(e) {
iPageIndex = 1
iPageSize = 20
this.setData({
show1:false,
ranking: [],
data:[],
sSpec: e.detail,
sPriceType: e.detail,
})
}
this.getTrend()
},
bindValue(e) {
let type = e.detail.type
if (type == 0) {
this.data.roomLevel = e.detail.val
} else {
this.data.builds = e.detail.val
}
},
// 按级别
// mySelect1(e) {
// iPageIndex = 1
// iPageSize = 20
// this.setData({
// ranking: [],
// sSpec: e.detail,
// })
// this.getTrend()
// },
// 按价格
mySelect2(e) {
iPageIndex = 1
iPageSize = 20
this.setData({
ranking: [],
sPriceType: e.detail,
})
this.getTrend()
},
// 按能源
mySelect3(e) {
iPageIndex = 1
iPageSize = 20
this.setData({
ranking: [],
sEnergyType: e.detail,
})
this.getTrend()
},
// 列表展示
mySelect4(e) {
iPageIndex = 1
iPageSize = 20
this.setData({
ranking: [],
a: e.detail != 0
})
this.getTrend()
},
// 全部
all() {
iPageIndex = 1
iPageSize = 20
this.data.num++
let dj = this.data.num % 2 == 0
this.setData({
ranking: [],
grade_value1: "",
grade_value2: "",
grade_value3: "",
sSpec: '',
sPriceType: '',
sEnergyType: '',
boxSize: dj ? 'noall' : 'all1'
})
this.getTrend()
},
bindDateChange: function (e) {
this.data.num1 = true
iPageIndex = 1
iPageSize = 20
this.setData({
date: e.detail.value,
ranking: [],
boxSize1: !this.data.num1 ? 'noall' : 'all1'
})
this.getTrend()
},
priceSel(e) {
this.setData({
intervalSel: e.currentTarget.dataset.index
})
},
//弹出框
popup(e) {
let duration = this.data.duration
let models = e.currentTarget.dataset.car
app.globalData.request({
action: "getCheZhuCarSeriesListHome",
sType: "Marketing",
sSeriesName: models,
sStartTime: times(this.data.date),
sEndTime: this.data.date,
}).then(res => {
// console.log(res)
const dataTime = []
const dataCar = []
res.forEach(e => {
if ((e.sourcetime).substring(5, 6) == "0") {
dataTime.push((e.sourcetime).substring((e.sourcetime).length - 1, (e.sourcetime).length) + '月')
} else {
dataTime.push((e.sourcetime).substring((e.sourcetime).length - 2, (e.sourcetime).length) + "月")
}
dataCar.push(e.salescount)
});
this.setData({
show: true,
duration,
positiveOption: brokenLine(dataCar, dataTime),
models
})
})
},
exit() {
this.setData({
show: false
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {},
this.getTrend()
},
// 按能源
mySelect3(e) {
iPageIndex = 1
iPageSize = 20
this.setData({
ranking: [],
sEnergyType: e.detail,
})
this.getTrend()
},
// 列表展示
mySelect4(e) {
iPageIndex = 1
iPageSize = 20
this.setData({
ranking: [],
a: e.detail != 0
})
this.getTrend()
},
// 全部
all() {
iPageIndex = 1
iPageSize = 20
this.data.num++
let dj = this.data.num % 2 == 0
this.setData({
ranking: [],
grade_value1: "",
grade_value2: "",
grade_value3: "",
sSpec: '',
sPriceType: '',
sEnergyType: '',
boxSize: dj ? 'noall' : 'all1'
})
this.getTrend()
},
bindDateChange: function (e) {
this.data.num1 = true
iPageIndex = 1
iPageSize = 20
this.setData({
date: e.detail.value,
ranking: [],
boxSize1: !this.data.num1 ? 'noall' : 'all1'
})
this.getTrend()
},
priceSel(e) {
this.setData({
intervalSel: e.currentTarget.dataset.index
})
},
//弹出框
popup(e) {
let duration = this.data.duration
let models = e.currentTarget.dataset.car
app.globalData.request({
action: "getCheZhuCarSeriesListHome",
sType: "Marketing",
sSeriesName: models,
sStartTime: times(this.data.date),
sEndTime: this.data.date,
}).then(res => {
// console.log(res)
const dataTime = []
const dataCar = []
res.forEach(e => {
if ((e.sourcetime).substring(5, 6) == "0") {
dataTime.push((e.sourcetime).substring((e.sourcetime).length - 1, (e.sourcetime).length) + '月')
} else {
dataTime.push((e.sourcetime).substring((e.sourcetime).length - 2, (e.sourcetime).length) + "月")
}
dataCar.push(e.salescount)
});
this.setData({
show: true,
duration,
positiveOption: brokenLine(dataCar, dataTime),
models
})
})
},
exit() {
this.setData({
show: false
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
iPageIndex = 1;
// this.getTabBar().init();
this.getData()
},
changeTab(val) {
let n = val.detail.index;
// console.log(n)
this.setData({
active: n
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
iPageIndex = 1;
// this.getTabBar().init();
this.getData()
},
changeTab(val) {
let n = val.detail.index;
// console.log(n)
this.setData({
active: n
})
},
})

@ -24,35 +24,19 @@
</scroll-view>
<view style="height: 60rpx;margin-top: 10px;">
<van-dropdown-menu custom-class="dropdown-menu" active-color="#027AFF;">
<!-- <van-dropdown-item value="{{ grade_value1 }}" options="{{ grades1 }}" bind:change="mySelect1" title="全部级别" >
</van-dropdown-item> -->
<van-dropdown-item title="全部级别">
<view style="display: flex;">
<view style="width: 40%;">
<view wx:for="{{grades1}}" wx:for-item="item" wx:key="index" style="height: 40px;line-height: 40px;margin: 0 20rpx;">
<view bindtap="mySelect1" data-index='{{item}}'>{{item.value}}</view>
</view>
</view>
<view style="width: 60%;" wx:if="{{show1}}">
<view wx:for="{{grades1}}" wx:for-item="item" wx:key="index" class="jb-item">
<view bindtap="datalist" wx:for="{{item.data}}" wx:key="index" wx:for-item="it" data-index='{{it}}'>{{it.value}}</view>
</view>
</view>
</view>
<van-dropdown-item value="{{ grade_value1 }}" options="{{ grades1 }}" bind:change="mySelect1" title="全部级别">
</van-dropdown-item>
<van-dropdown-item value="{{ grade_value2 }}" options="{{ grades2 }}" bind:change="mySelect2" title="全部价格" />
<van-dropdown-item value="{{ grade_value3 }}" options="{{ grades3}}" bind:change="mySelect3" title="全部能源" />
<van-dropdown-item value="{{ grade_value3 }}" options="{{ grades3}}" bind:change="mySelect3" title="全部能源"></van-dropdown-item>
<van-dropdown-item value="{{ grade_value4 }}" options="{{ grades4 }}" bind:change="mySelect4" />
</van-dropdown-menu>
</view>
<view class="list">
<view class="list_event" wx:if="{{a}}">
<view class="text">销量排行榜</view>
<view style=" height: 1000rpx;">
<c-echars showChart="{{showChart}}" canvasId="chart-canvas" chartId="chartbar" chartOption="{{brandOption}}" height="100%"></c-echars>
</view>
</view>
<view class="list_event" wx:else>
<view class="text">销量排行榜</view>

@ -72,8 +72,6 @@ Page({
this.setData({
content: _source
});
console.log('9999', )
// console.log('9999',arr)
});
setTimeout(() => {
wx.hideToast();

@ -271,7 +271,7 @@ Page({
success: function (r) {
if (r.confirm) {
that.setData({
fileName: "主题数据" + date,
fileName: "事件数据" + date,
reportShow: true
})
} else {
@ -281,7 +281,7 @@ Page({
})
} else {
that.setData({
fileName: "主题数据" + date,
fileName: "事件数据" + date,
reportShow: true
})
}

@ -270,7 +270,7 @@ Component({
success: function (r) {
if (r.confirm) {
that.setData({
fileName: "主题数据" + date,
fileName: "事件数据" + date,
reportShow: true
})
} else {
@ -280,7 +280,7 @@ Component({
})
} else {
that.setData({
fileName: "主题数据" + date,
fileName: "事件数据" + date,
reportShow: true
})
}

@ -270,7 +270,7 @@ Page({
success: function (r) {
if (r.confirm) {
that.setData({
fileName: "主题数据" + date,
fileName: "事件数据" + date,
reportShow: true
})
} else {
@ -280,7 +280,7 @@ Page({
})
} else {
that.setData({
fileName: "主题数据" + date,
fileName: "事件数据" + date,
reportShow: true
})
}

@ -370,7 +370,7 @@ Page({
success: function (r) {
if (r.confirm) {
that.setData({
fileName: "主题数据" + date,
fileName: "事件数据" + date,
reportShow: true
})
} else {
@ -380,7 +380,7 @@ Page({
})
} else {
that.setData({
fileName: "主题数据" + date,
fileName: "事件数据" + date,
reportShow: true
})
}
@ -427,7 +427,7 @@ Page({
sType: 'ZhuTiFenXiBl',
sGuid: this.data.Guid,
sField: JSON.stringify(sField), //导出字段
sFileName: "主题数据" + date, //文件名称
sFileName: "事件数据" + date, //文件名称
sCheckedIds: this.data.result.join(',') || '', //数据id
iNum: this.data.result.length == 0 ? this.data.total : this.data.result.length, //导出条数
iTimeType: this.data.iTimeType, //0发布时间 1入库时间

Loading…
Cancel
Save