修改图表位置

This commit is contained in:
老叶
2021-09-17 15:59:03 +08:00
parent 47df56e683
commit a59f50a49c
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const env = "d";
const env = "p";
const version = 1,
+2
View File
@@ -120,6 +120,7 @@ Page({
_.apiQuery.getAppStatisticsCust(params).then(res => {
barChartData = res.data.stat_data
barChartData.grid.top = '0'
this.setData({
custSeasonKey:this.data.custSeasonKey?this.data.custSeasonKey:res.data.season,
custSeason:this.data.custSeason?this.data.custSeason:res.data.season_data,
@@ -144,6 +145,7 @@ Page({
_.apiQuery.getAppStatisticsOrders(params).then(res => {
lineChartData = res.data.stat_data
barChartData.grid.top = '0'
this.setData({
orderSeasonKey:this.data.orderSeasonKey?this.data.orderSeasonKey:res.data.season,
orderSeason:this.data.orderSeason?this.data.orderSeason:res.data.season_data,
+4 -4
View File
@@ -30,7 +30,7 @@
</view>
<!-- 数据分析·客户 -->
<view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="relative">
<view class="relative z-index-1">
<view class="font-36">数据分析·客户</view>
<picker class="absolute right-0 box-middle" bindchange="changeCust" value="{{custSeasonKey}}" range="{{custSeason}}">
<view class="pt10 pb10 pl20 pr20 bg-f6 ulib-r10 font-22">
@@ -39,7 +39,7 @@
</view>
</picker>
</view>
<view class="relative height-600 z-index-0">
<view class="mt50 relative height-600 z-index-0">
<view class="absolute wp100 height-600" wx:if="{{showBarChart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecBar }}"></ec-canvas>
</view>
@@ -47,7 +47,7 @@
</view>
<!-- 数据分析·订单 -->
<view class="mt40 inner30 pt40 bg-fff box-shadow-000-10-10 ulib-r10">
<view class="relative">
<view class="relative z-index-1">
<view class="font-36">数据分析·订单</view>
<picker class="absolute right-0 box-middle" bindchange="changeOrder" value="{{orderSeasonKey}}" range="{{orderSeason}}">
<view class="pt10 pb10 pl20 pr20 bg-f6 ulib-r10 font-22">
@@ -56,7 +56,7 @@
</view>
</picker>
</view>
<view class="relative height-600 z-index-0">
<view class="mt40 relative height-600 z-index-0">
<view class="absolute wp100 height-600" wx:if="{{showLineChart}}">
<ec-canvas class="absolute top-0 bottom-0 left-0 right-0" ec="{{ ecLine }}"></ec-canvas>
</view>