Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 697e74ef
authored
Sep 25, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复,样式
1 parent
cfd2a873
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
80 additions
and
29 deletions
packagesList/packageOutput/pages/businessAnalysis/businessAnalysis.js
packagesList/packageOutput/pages/businessAnalysis/businessAnalysis.scss
packagesList/packageOutput/pages/businessAnalysis/businessAnalysis.wxml
packagesList/packageOutput/pages/businessAnalysis/constant/echartData.js
packagesList/packageOutput/pages/businessAnalysis/businessAnalysis.js
View file @
697e74e
...
@@ -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}'
}
}
}
}
],
],
...
...
packagesList/packageOutput/pages/businessAnalysis/businessAnalysis.scss
View file @
697e74e
...
@@ -9,14 +9,14 @@
...
@@ -9,14 +9,14 @@
.image_class
{
.image_class
{
background-color
:
#fff
;
background-color
:
#fff
;
width
:
100%
;
width
:
100%
;
height
:
2
4
4rpx
;
height
:
2
2
4rpx
;
}
}
}
}
.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
#b4bacc
52
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
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
:
2
5
rpx
0
;
padding
:
2
4
rpx
0
;
border-bottom
:
1rpx
solid
#E4E6EE
;
border-bottom
:
1rpx
solid
#E4E6EE
;
;
;
}
}
.rank-block
:first-child
{
.rank-block
:first-child
{
padding
:
0
0
2
5
rpx
;
padding
:
0
0
2
4
rpx
;
}
}
.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
packagesList/packageOutput/pages/businessAnalysis/businessAnalysis.wxml
View file @
697e74e
...
@@ -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 +
3
4}}px);">
<view class="bg_iamge" style="height: calc({{statusBarHeight + navigationBarHeight +
2
4}}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 +
3
4}}px);">
<scroll-view class="business-analysis" id="scroller" scroll-y enable-back-to-top refresher-enabled="{{false}}" style="margin-top:calc({{statusBarHeight + navigationBarHeight +
2
4}}px);">
<!-- 产值 -->
<!-- 产值 -->
<view class="box">
<view class="box">
<view class="title">
<view class="title">
...
@@ -28,14 +28,16 @@
...
@@ -28,14 +28,16 @@
</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="rank">
<view class="title"><text>门店引流排行<text class="people">(人/次)</text></text></view>
<glsx-image src="{{'output/bg-rank.png'}}" class="bg" />
<view class="rank">
<view wx:for="{{flowRankList}}" wx:key="index" class="rank-pos {{'rank-' + (index + 1)}}">
<glsx-image src="{{'output/bg-rank.png'}}" class="bg" />
<view class="num">{{item.flowCount || '-'}}</view>
<view wx:for="{{flowRankList}}" wx:key="index" class="rank-pos {{'rank-' + (index + 1)}}">
<view class="text-two-line txt">{{item.merchantName || '-'}}</view>
<view class="num">{{item.flowCount || '-'}}</view>
<view class="text-two-line txt">{{item.merchantName || '-'}}</view>
</view>
</view>
</view>
</view>
</view>
<view class="rank-list">
<view class="rank-list">
...
@@ -60,13 +62,15 @@
...
@@ -60,13 +62,15 @@
</view>
</view>
<!-- 引流分析 -->
<!-- 引流分析 -->
<view class="title">引流分析</view>
<view class="p-rl-24">
<view class="ec-canvas">
<view class="title">引流分析</view>
<!-- force-use-old-canvas="true" -->
<view class="ec-canvas">
<ec-canvas wx:if="{{isShowPie}}" class="echart-box" id="mychart-dom-pie" canvas-id="mychart-pie" ec="{{ ec }}"></ec-canvas>
<!-- force-use-old-canvas="true" -->
<view wx:else class="no-data">
<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>
<glsx-image src="{{'output/icon-empty.png'}}" class="icon-empty" />
<view wx:else class="no-data">
<view>暂无数据</view>
<glsx-image src="{{'output/icon-empty.png'}}" class="icon-empty" />
<view>暂无数据</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -74,11 +78,11 @@
...
@@ -74,11 +78,11 @@
<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">
...
...
packagesList/packageOutput/pages/businessAnalysis/constant/echartData.js
View file @
697e74e
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment