Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zc-qiyewx-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨勇飞
zc-qiyewx-app
Commits
1cb744ba
Commit
1cb744ba
authored
Feb 12, 2025
by
杨勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V1
parent
60f8bf21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
33 deletions
+60
-33
index.vue
pages/index/index.vue
+60
-33
No files found.
pages/index/index.vue
View file @
1cb744ba
...
...
@@ -14,7 +14,7 @@
<!-- 左侧环状进度 -->
<view
class=
"progress-circle"
>
<view
class=
"circle-wrapper"
:style=
"
{
background: `conic-gradient(#FF4
B4B
0% ${currentData.overview.submitRate}%, #F5F5F5 ${currentData.overview.submitRate}% 100%)`
background: `conic-gradient(#FF4
D4F
0% ${currentData.overview.submitRate}%, #F5F5F5 ${currentData.overview.submitRate}% 100%)`
}">
<view
class=
"circle-text"
>
<text
class=
"percentage"
>
{{
currentData
.
overview
.
submitRate
}}
</text>
...
...
@@ -28,22 +28,30 @@
<view
class=
"statistics"
>
<view
class=
"stat-row"
>
<view
class=
"stat-item"
>
<view
class=
"stat-block light-green"
>
<text
class=
"number"
>
{{
currentData
.
overview
.
stats
.
projectCount
}}
</text>
<text
class=
"rate"
>
项目
</text>
</view>
</view>
<view
class=
"stat-item"
>
<view
class=
"stat-block light-orange"
>
<text
class=
"number"
>
{{
currentData
.
overview
.
stats
.
orderCount
}}
</text>
<text
class=
"rate"
>
单量
</text>
</view>
</view>
</view>
<view
class=
"stat-row"
>
<view
class=
"stat-item"
>
<view
class=
"stat-block green"
>
<text
class=
"number"
>
{{
currentData
.
overview
.
stats
.
volumeCount
}}
</text>
<text
class=
"rate"
>
方量
</text>
<text
class=
"rate"
>
方量m³
</text>
</view>
</view>
<view
class=
"stat-item"
>
<view
class=
"stat-block orange"
>
<text
class=
"number"
>
{{
currentData
.
overview
.
stats
.
weightCount
}}
</text>
<text
class=
"rate"
>
重量
</text>
<text
class=
"rate"
>
重量t
</text>
</view>
</view>
</view>
</view>
...
...
@@ -79,14 +87,15 @@
</view>
</view>
<view
class=
"progress-bar"
>
<view
class=
"progress-bar"
style=
"position: relative; height: 4px;
background: #f0f0f0
; border-radius: 2px; overflow: hidden;"
>
<view
class=
"progress-bar"
style=
"position: relative; height: 4px;
width: 100%; background: #52C41A
; border-radius: 2px; overflow: hidden;"
>
<view
class=
"progress"
:style=
"
{
backgroundColor: '#52C41A',
width: currentData.finance.receivable.profitRate + '%',
backgroundColor: '#FF4D4F',
opacity:0.9,
width: 100-currentData.finance.receivable.profitRate + '%',
position: 'absolute',
height: '100%',
left: 0,
top:
0
top:
'1px'
}">
</view>
</view>
</view>
...
...
@@ -321,13 +330,13 @@ import { uniIcons } from '@dcloudio/uni-ui'
finance
:
{
receivable
:
{
total
:
488950
,
profit
:
5
57580
,
profitRate
:
87.69
profit
:
5
8674
,
profitRate
:
12.2
},
payable
:
{
total
:
4
710
,
cash
:
2305
,
monthly
:
2405
total
:
4
30276
,
cash
:
130276
,
monthly
:
300000
}
},
chart
:
{
...
...
@@ -554,7 +563,6 @@ import { uniIcons } from '@dcloudio/uni-ui'
width
:
100%
;
box-sizing
:
border-box
;
padding
:
15px
;
background-color
:
#F5F7FA
;
min-height
:
100vh
;
...
...
@@ -616,6 +624,7 @@ import { uniIcons } from '@dcloudio/uni-ui'
.overview-content
{
display
:
flex
;
width
:
100%
;
align-items
:
center
;
padding
:
0
;
...
...
@@ -636,10 +645,10 @@ import { uniIcons } from '@dcloudio/uni-ui'
&
:
:
after
{
content
:
''
;
position
:
absolute
;
top
:
8
px
;
left
:
8
px
;
right
:
8
px
;
bottom
:
8
px
;
top
:
10
px
;
left
:
10
px
;
right
:
10
px
;
bottom
:
10
px
;
background
:
#fff
;
border-radius
:
50%
;
z-index
:
1
;
...
...
@@ -647,13 +656,17 @@ import { uniIcons } from '@dcloudio/uni-ui'
}
.circle-text
{
display
:
flex
;
flex-direction
:
column
;
position
:
relative
;
z-index
:
2
;
text-align
:
center
;
align-items
:
center
;
.percentage
{
font-size
:
28px
;
color
:
#333
;
line-height
:
1
;
margin-bottom
:
4px
;
&
:
:
after
{
content
:
'%'
;
...
...
@@ -664,10 +677,12 @@ import { uniIcons } from '@dcloudio/uni-ui'
.label
{
color
:
#666
;
margin-bottom
:
4px
;
font-size
:
12px
;
margin
:
4px
0
;
}
.count
{
font-size
:
12px
;
color
:
#666
;
}
}
...
...
@@ -678,22 +693,31 @@ import { uniIcons } from '@dcloudio/uni-ui'
.stat-row
{
display
:
flex
;
justify-content
:
space-around
;
margin-bottom
:
20
px
;
gap
:
12px
;
margin-bottom
:
15
px
;
.stat-item
{
flex
:
1
;
.stat-block
{
background-color
:
#f6ffed
;
border-radius
:
4px
;
padding
:
8px
12px
;
display
:
block
;
text-align
:
center
;
&
.light-green
{
background-color
:
rgba
(
82
,
196
,
26
,
0
.1
);
}
&
.light-orange
{
background-color
:
rgba
(
255
,
169
,
64
,
0
.1
);
}
&
.green
{
background-color
:
rgba
(
0
,
200
,
180
,
0
.1
);
}
&
.orange
{
background-color
:
rgba
(
255
,
148
,
64
,
0
.1
);
}
}
.number
{
display
:
block
;
font-size
:
2
4
px
;
font-size
:
2
0
px
;
font-weight
:
bold
;
color
:
#
19c1b4
!
important
;
color
:
#
333
;
margin-bottom
:
4px
;
&
:nth-child
(
2n
)
{
color
:
#19c1b4
!
important
;
}
}
.rate
{
...
...
@@ -771,8 +795,11 @@ import { uniIcons } from '@dcloudio/uni-ui'
}
.extra-info
{
display
:
flex
;
flex-direction
:
column
;
text-align
:
right
;
.info-row
{
margin-bottom
:
4px
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment