Commit 697e74ef by chenwq

bug修复,样式

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