wylyl22 3 years ago
parent b097285cd2
commit fc0a14a11a

@ -7,7 +7,6 @@ Component({
showChart: true,
},
lifetimes:{
attached(){
this.getData()
@ -21,9 +20,10 @@ Component({
duration: 300000
})
app.globalData.request({action: 'getCheZhuLatestTimeHome',sType:'Marketing'}).then(res => {
wx.setStorageSync('newTime', res)
// wx.setStorageSync('newTime', res)
const newTime=res
this.setData({
newTime:wx.getStorageSync('newTime')
newTime
})
})
app.globalData.request({action: 'getCheZhuCarBrandRankingHome',sType:'Marketing',
@ -59,8 +59,9 @@ Component({
},
//品牌排行
ranking(){
wx.navigateTo({
url: "/pages/index/Salesranking/Salesranking"
url: "/pages/index/Salesranking/Salesranking?a="+this.newTime
})
},
//车型排行

@ -13,10 +13,17 @@ export default function histogram(dx = [], ds = [], color1 = '', direction = tru
dataZoom: direction?[{ //添加X轴滚动条
type: 'inside',
show: false,
start: 50,
end: 10,
handleSize: 10
}]:[],
start: 10,
end: 40,
handleSize: 5
}]:[{
type:"inside",
show:false,
yAxisIndex:[0],
left:"93%",
start:0,
end:36,
}],
// legend: {
// x:'15',
// icon: 'rectangle',//data图标样式

@ -10,7 +10,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(options)
},
/**

@ -32,7 +32,6 @@ Component({
},
lifetimes: {
attached() {
let sTimeType = wx.getStorageSync("sTimeType") || 34;
let sStartTime = wx.getStorageSync("sStartTime") || '';
let sEndTime = wx.getStorageSync("sEndTime") || '';
@ -138,7 +137,6 @@ Component({
},
bindShowMsg(e){
var id=e.currentTarget.id
console.log(id)
if(id==1){
this.setData({
select1:!this.data.select1,
@ -187,7 +185,6 @@ Component({
wx.hideToast();
},500
)
},
mySelect2(e){
wx.showToast({
@ -198,7 +195,6 @@ Component({
var name=e.currentTarget.dataset.name.name
var value=e.currentTarget.dataset.name.value
wx.setStorageSync('sPriceType',value)
this.setData({
grade_name2:name,
select2:false
@ -214,7 +210,6 @@ Component({
icon: 'loading',
duration: 300000
})
console.log(e)
var name=e.currentTarget.dataset.name.name
var value=e.currentTarget.dataset.name.value
wx.setStorageSync('sEnergyType',value)
@ -245,7 +240,7 @@ Component({
)
},
bindDateChange: function(e) {
console.log('picker发送选择改变携带值为', e.detail.value)
// console.log('picker发送选择改变携带值为', e.detail.value)
this.setData({
date: e.detail.value
})
@ -265,7 +260,6 @@ Component({
popup(e) {
let duration = this.data.duration
this.setData({
show: true,
duration
})

@ -106,26 +106,25 @@
<view class="volume">{{item.volume}}</view>
<view class="trend" bindtap="popup" data-position="bottom">
<van-icon size="16px" name="arrow" />
<view>销量趋势</view>
</view>
<view>销量趋势</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<page-container show="{{show}}" duration="{{duration}}" position="{{position}}" close-on-slide-down="{{false}}" custom-style="height:50%">
<view class="detail-page">
<view style="display: flex;">
<view class="qushi">销量趋势</view>
<view class="tubiao" bindtap="exit">
<van-icon name="cross" />
<van-icon name="cross"/>
</view>
</view>
<view class="pinlai">宏光MINIEV销量趋势</view>
<view class="brand_tu">
<c-echars flocShow="{{true}}" showChart="{{showChart}}" canvasId="tonalitybar-canvas" chartId="tonalitybar" chartOption="{{positiveOption}}" width="200rpx"height='500rpx' ></c-echars>
<c-echars force-use-old-canvas="true" showChart="{{showChart}}" canvasId="tonalitybar-canvas" chartId="tonalitybar" chartOption="{{positiveOption}}" width="200rpx"height='500rpx' ></c-echars>
</view>
</view>
</page-container>

Loading…
Cancel
Save