Commit 697e74ef by chenwq

bug修复,样式

1 parent cfd2a873
...@@ -154,7 +154,11 @@ Page({ ...@@ -154,7 +154,11 @@ Page({
right: '15%' right: '15%'
}, },
tooltip: { tooltip: {
trigger: 'axis' trigger: 'axis',
formatter: function (params) {
var html = params[0].seriesName + ':' + params[0].value
return html
}
}, },
// 滚动设置 // 滚动设置
dataZoom: [ dataZoom: [
...@@ -200,7 +204,7 @@ Page({ ...@@ -200,7 +204,7 @@ Page({
alignTicks: true, alignTicks: true,
offset: -10, offset: -10,
axisLabel: { axisLabel: {
formatter: '{value} 元' formatter: '{value}'
} }
} }
], ],
......
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
.image_class { .image_class {
background-color: #fff; background-color: #fff;
width: 100%; width: 100%;
height: 244rpx; height: 224rpx;
} }
} }
.top-tip { .top-tip {
position: absolute; position: absolute;
left: 0; left: 0;
bottom: 20rpx; bottom: 0;
width: 100%; width: 100%;
height: 48rpx; height: 48rpx;
line-height: 48rpx; line-height: 48rpx;
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
.box { .box {
background: #FFFFFF; background: #FFFFFF;
padding: 20rpx 24rpx; padding: 20rpx 24rpx 32rpx;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52; box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
border-radius: 16rpx; border-radius: 16rpx;
margin-bottom: 24rpx; margin-bottom: 24rpx;
...@@ -66,6 +66,19 @@ ...@@ -66,6 +66,19 @@
.txt-red { .txt-red {
color: #F24724; color: #F24724;
} }
.people {
font-size: 24rpx;
color: #333333;
}
}
}
.box.drainage {
padding: 20rpx 0;
.p-rl-24 {
padding: 0 24rpx;
} }
} }
...@@ -75,6 +88,12 @@ ...@@ -75,6 +88,12 @@
.cur-block { .cur-block {
width: 50%; width: 50%;
.label {
height: 40rpx;
line-height: 40rpx;
color: #8A8C90;
}
} }
.money-symbol { .money-symbol {
...@@ -113,6 +132,7 @@ ...@@ -113,6 +132,7 @@
font-size: 24rpx; font-size: 24rpx;
margin-top: 32rpx; margin-top: 32rpx;
word-break: break-all; word-break: break-all;
font-weight: 600;
} }
.rank-1 { .rank-1 {
...@@ -142,6 +162,8 @@ ...@@ -142,6 +162,8 @@
} }
.rank-list { .rank-list {
margin-top: 40rpx;
.list-title { .list-title {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -152,11 +174,11 @@ ...@@ -152,11 +174,11 @@
.rank-num { .rank-num {
width: 92rpx; width: 92rpx;
flex-shrink: 0; flex-shrink: 0;
text-align: center;
.rank-icon { .rank-icon {
width: 68rpx; width: 68rpx;
height: 68rpx; height: 68rpx;
margin-left: 8rpx;
} }
.rank-txt { .rank-txt {
...@@ -168,6 +190,7 @@ ...@@ -168,6 +190,7 @@
font-size: 20rpx; font-size: 20rpx;
color: #FFFFFF; color: #FFFFFF;
text-align: center; text-align: center;
margin-left: 32rpx;
} }
} }
} }
...@@ -204,13 +227,13 @@ ...@@ -204,13 +227,13 @@
.rank-list.purchase { .rank-list.purchase {
.rank-block { .rank-block {
padding: 25rpx 0; padding: 24rpx 0;
border-bottom: 1rpx solid #E4E6EE; border-bottom: 1rpx solid #E4E6EE;
; ;
} }
.rank-block:first-child { .rank-block:first-child {
padding: 0 0 25rpx; padding: 0 0 24rpx;
} }
.list-title { .list-title {
...@@ -227,6 +250,10 @@ ...@@ -227,6 +250,10 @@
.rank-num { .rank-num {
width: 52rpx; width: 52rpx;
.rank-txt {
margin-left: 12rpx;
}
.rank-txt.txt0 { .rank-txt.txt0 {
color: #A86921; color: #A86921;
background-image: linear-gradient(180deg, #FFD767 0%, #F7C33F 100%); background-image: linear-gradient(180deg, #FFD767 0%, #F7C33F 100%);
...@@ -261,6 +288,12 @@ ...@@ -261,6 +288,12 @@
} }
} }
} }
.merchant-name {
margin-left: 54rpx;
font-size: 24rpx;
color: #666666;
}
} }
.img-center { .img-center {
...@@ -271,6 +304,7 @@ ...@@ -271,6 +304,7 @@
.more { .more {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
margin-top: 19rpx;
} }
.ec-canvas { .ec-canvas {
...@@ -293,6 +327,7 @@ ...@@ -293,6 +327,7 @@
.ec-canvas.bar { .ec-canvas.bar {
width: 670rpx; width: 670rpx;
height: 538rpx; height: 538rpx;
margin-bottom: 60rpx;
} }
.content-empty { .content-empty {
...@@ -305,4 +340,5 @@ ...@@ -305,4 +340,5 @@
width: 512rpx; width: 512rpx;
height: 512rpx; height: 512rpx;
} }
}}
\ No newline at end of file \ No newline at end of file
}
}
\ No newline at end of file \ No newline at end of file
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady" showBack="{{true}}" bindnavbarReady="navbarReady" navTitleStyle="{{navTitleStyle}}"> <navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady" showBack="{{true}}" bindnavbarReady="navbarReady" navTitleStyle="{{navTitleStyle}}">
经营分析 经营分析
</navigation-bar> </navigation-bar>
<view class="bg_iamge" style="height: calc({{statusBarHeight + navigationBarHeight + 34}}px);"> <view class="bg_iamge" style="height: calc({{statusBarHeight + navigationBarHeight + 24}}px);">
<glsx-image src="{{'output/background.png'}}" class="image_class" /> <glsx-image src="{{'output/background.png'}}" class="image_class" />
<view class="top-tip">本页面仅统计太阳膜业务经营数据</view> <view class="top-tip">本页面仅统计太阳膜业务经营数据</view>
</view> </view>
<scroll-view class="business-analysis" id="scroller" scroll-y enable-back-to-top refresher-enabled="{{false}}" style="margin-top:calc({{statusBarHeight + navigationBarHeight + 34}}px);"> <scroll-view class="business-analysis" id="scroller" scroll-y enable-back-to-top refresher-enabled="{{false}}" style="margin-top:calc({{statusBarHeight + navigationBarHeight + 24}}px);">
<!-- 产值 --> <!-- 产值 -->
<view class="box"> <view class="box">
<view class="title"> <view class="title">
...@@ -28,9 +28,10 @@ ...@@ -28,9 +28,10 @@
</view> </view>
</view> </view>
<!-- 门店引流 --> <!-- 门店引流 -->
<view class="box" wx:if="{{rankList.length}}"> <view class="box drainage" wx:if="{{rankList.length}}">
<!-- 门店引流排行 --> <!-- 门店引流排行 -->
<view class="title">门店引流排行</view> <view class="p-rl-24">
<view class="title"><text>门店引流排行<text class="people">(人/次)</text></text></view>
<view class="rank"> <view class="rank">
<glsx-image src="{{'output/bg-rank.png'}}" class="bg" /> <glsx-image src="{{'output/bg-rank.png'}}" class="bg" />
<view wx:for="{{flowRankList}}" wx:key="index" class="rank-pos {{'rank-' + (index + 1)}}"> <view wx:for="{{flowRankList}}" wx:key="index" class="rank-pos {{'rank-' + (index + 1)}}">
...@@ -38,6 +39,7 @@ ...@@ -38,6 +39,7 @@
<view class="text-two-line txt">{{item.merchantName || '-'}}</view> <view class="text-two-line txt">{{item.merchantName || '-'}}</view>
</view> </view>
</view> </view>
</view>
<view class="rank-list"> <view class="rank-list">
<view wx:for="{{rankList}}" wx:key="index"> <view wx:for="{{rankList}}" wx:key="index">
<view class="list-title {{'list' + index}}"> <view class="list-title {{'list' + index}}">
...@@ -60,25 +62,27 @@ ...@@ -60,25 +62,27 @@
</view> </view>
<!-- 引流分析 --> <!-- 引流分析 -->
<view class="p-rl-24">
<view class="title">引流分析</view> <view class="title">引流分析</view>
<view class="ec-canvas"> <view class="ec-canvas">
<!-- force-use-old-canvas="true" --> <!-- force-use-old-canvas="true" -->
<ec-canvas wx:if="{{isShowPie}}" class="echart-box" id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas> <ec-canvas wx:if="{{isShowPie}}" force-use-old-canvas="true" class="echart-box" id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
<view wx:else class="no-data"> <view wx:else class="no-data">
<glsx-image src="{{'output/icon-empty.png'}}" class="icon-empty" /> <glsx-image src="{{'output/icon-empty.png'}}" class="icon-empty" />
<view>暂无数据</view> <view>暂无数据</view>
</view> </view>
</view> </view>
</view> </view>
</view>
<!-- 采购金额 --> <!-- 采购金额 -->
<view class="box" wx:if="{{purList.length}}"> <view class="box" wx:if="{{purList.length}}">
<!-- 采购金额走势 --> <!-- 采购金额走势 -->
<view class="title">采购金额走势 <view class="title">采购金额走势
<view class="title-tips no-bold">总采购金额<text class="txt-red">¥{{purObj.purchaseMoney}}</text></view> <view class="title-tips no-bold">总采购价<text class="txt-red">¥{{filter.money_three_for_two_thousands(purObj.purchaseMoney || 0)}}</text></view>
</view> </view>
<view class="ec-canvas bar"> <view class="ec-canvas bar">
<!-- force-use-old-canvas="true" --> <!-- force-use-old-canvas="true" -->
<ec-canvas class="echart-box" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas> <ec-canvas class="echart-box" force-use-old-canvas="true" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>
</view> </view>
<!-- 采购数量 --> <!-- 采购数量 -->
<view class="title">采购数量 <view class="title">采购数量
...@@ -96,7 +100,7 @@ ...@@ -96,7 +100,7 @@
</view> </view>
<view class="purchase-num"><text class="num">{{item.goodsNumber}}</text>卷</view> <view class="purchase-num"><text class="num">{{item.goodsNumber}}</text>卷</view>
</view> </view>
<view class="">{{item.merchantName}}</view> <view class="merchant-name">{{item.merchantName}}</view>
</view> </view>
</view> </view>
<view class="img-center"> <view class="img-center">
......
...@@ -21,7 +21,14 @@ const pieOptions = { ...@@ -21,7 +21,14 @@ const pieOptions = {
}, },
color: ['#35C376', '#655FED', '#F24724', '#3582EE', '#FF9D0A'], color: ['#35C376', '#655FED', '#F24724', '#3582EE', '#FF9D0A'],
tooltip: { tooltip: {
trigger: 'item' trigger: 'item',
formatter: function (params) {
let txt = params.data.name + ':' + params.data.value
let list = txt.match(new RegExp(`.{1,6}`, 'g'))
var html = list.join('\n')
return html
}
}, },
label: { label: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!