Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-scene
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 ad05c6aa
authored
Jan 29, 2024
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
4524fdf5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
67 deletions
src/assets/images/avatar.png
src/views/lifeSceneDataPage/components/ActivityRate.vue
src/views/lifeSceneDataPage/components/BarChartOptions.js
src/views/lifeSceneDataPage/components/Maintenance.vue
src/views/lifeSceneDataPage/const/index.js
src/assets/images/avatar.png
0 → 100644
View file @
ad05c6a
2.02 KB
src/views/lifeSceneDataPage/components/ActivityRate.vue
View file @
ad05c6a
...
...
@@ -32,7 +32,7 @@ export default {
},
{
name
:
'num'
,
width
:
'
1.88
vw'
,
width
:
'
2.25
vw'
,
unitIcon
:
'场'
}
]
...
...
src/views/lifeSceneDataPage/components/BarChartOptions.js
View file @
ad05c6a
...
...
@@ -16,14 +16,14 @@ function getBarOptions(obj) {
// formatter: tooltipFormatter || '',
// confine: true
// },
barWidth
:
14
,
xAxis
:
{
data
:
[]
},
yAxis
:
{
name
:
''
,
type
:
'value'
,
// min: 0,
// max: 100,
interval
:
250
,
splitLine
:
{
lineStyle
:
{
color
:
'#1d2a38'
...
...
@@ -53,15 +53,15 @@ function getBarOptions(obj) {
return
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[{
// 代表渐变色从正上方开始
offset
:
0
,
// offset范围是0~1,用于表示位置,0是指0%处的颜色
color
:
'#
22D
8FF'
color
:
'#
00C
8FF'
},
// 柱图渐变色
{
offset
:
0.5
,
// 指100%处的颜色
color
:
'#223FA9'
},
//
{
//
offset: 0.5, // 指100%处的颜色
//
color: '#223FA9'
//
},
{
offset
:
1
,
// 指100%处的颜色
color
:
'#0
6142
2'
color
:
'#0
069F
2'
}]
)
}
...
...
src/views/lifeSceneDataPage/components/Maintenance.vue
View file @
ad05c6a
...
...
@@ -6,7 +6,9 @@
<div
class=
"dialogue-content-item"
>
<div
class=
"dialogue-content-item-top"
>
<div
class=
"dialogue-content-item-top-left"
>
<div></div>
<div
class=
"dialogue-content-item-top-img"
>
<img
src=
"../../../assets/images/avatar.png"
alt=
""
>
</div>
<div>
<div>
{{
item
.
name
}}
</div>
<div>
{{
item
.
phone
}}
</div>
...
...
@@ -33,8 +35,9 @@
</div>
</Phone>
<Phone
class=
"enterprise-box"
:imgName=
"'customer-detail'"
>
<div
class=
"video-content"
slot=
"content"
@
click=
"openVideo"
>
<video
id=
"videos"
muted=
"muted"
controls
autoplay
loop
>
<div
class=
"video-content"
slot=
"content"
>
<div
class=
"video-click-content"
@
click=
"openVideo"
></div>
<video
ref=
"videoRef"
id=
"videos"
muted=
"muted"
controls
autoplay
loop
>
<!--
<source
src=
"/media/cc0-videos/flower.webm"
type=
"video/webm"
/>
-->
<source
src=
"../../../assets/images/video(1).mp4"
type=
"video/mp4"
/>
</video>
...
...
@@ -63,12 +66,23 @@ export default {
dialogShow
:
false
}
},
mounted
()
{
this
.
$refs
.
videoRef
.
addEventListener
(
'ended'
,
this
.
replayVideo
);
},
beforeDestroy
()
{
this
.
$refs
.
videoRef
.
removeEventListener
(
'ended'
,
this
.
replayVideo
);
},
methods
:
{
openVideo
()
{
this
.
dialogShow
=
true
},
closeDialog
()
{
this
.
dialogShow
=
false
},
replayVideo
()
{
const
video
=
this
.
$refs
.
videoRef
;
video
.
currentTime
=
0
;
video
.
play
();
}
}
}
...
...
@@ -90,7 +104,7 @@ export default {
position
:
absolute
;
top
:
7.78vh
;
left
:
0.31vw
;
max-height
:
2
4
.3vh
;
max-height
:
2
1
.3vh
;
overflow-y
:
scroll
;
&-item
{
width
:
7.28vw
;
...
...
@@ -110,6 +124,11 @@ export default {
&-left
{
display
:
flex
;
}
&
-img
{
width
:
0.89vw
;
height
:
0.89vw
;
margin-right
:
0.2vw
;
}
.call
{
width
:
1.35vw
;
height
:
1.57vh
;
...
...
@@ -135,6 +154,14 @@ export default {
.enterprise-box
{
margin-left
:
0.42vw
;
position
:
relative
;
.video-click-content
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
8.28vw
;
height
:
3.97vh
;
z-index
:
9999
;
}
.video-content
{
position
:
absolute
;
top
:
5.28vh
;
...
...
src/views/lifeSceneDataPage/const/index.js
View file @
ad05c6a
const
AIBarLineData
=
[
{
statMonth
:
'
2023-10
'
,
outputvalue
:
3
5
2
,
perCusTrans
:
158
statMonth
:
'
8月
'
,
outputvalue
:
3
1
2
,
perCusTrans
:
297
},
{
statMonth
:
'
2023-11
'
,
outputvalue
:
189
,
perCusTrans
:
2
55
statMonth
:
'
9月
'
,
outputvalue
:
416
,
perCusTrans
:
3
55
},
{
statMonth
:
'
2023-12
'
,
outputvalue
:
580
,
perCusTrans
:
28
6
statMonth
:
'
10月
'
,
outputvalue
:
827
,
perCusTrans
:
44
6
},
{
statMonth
:
'
2024-01
'
,
outputvalue
:
68
5
,
perCusTrans
:
311
statMonth
:
'
11月
'
,
outputvalue
:
85
5
,
perCusTrans
:
452
},
{
statMonth
:
'
2024-02
'
,
outputvalue
:
185
,
perCusTrans
:
258
statMonth
:
'
12月
'
,
outputvalue
:
901
,
perCusTrans
:
587
},
{
statMonth
:
'
2024-03
'
,
outputvalue
:
1
77
,
perCusTrans
:
457
statMonth
:
'
01月
'
,
outputvalue
:
9
77
,
perCusTrans
:
701
}
]
...
...
@@ -97,86 +97,102 @@ const marketingStatisData = [
const
nearThreadDataList
=
[
{
statMonth
:
'23.
11
'
,
val
:
10
statMonth
:
'23.
02
'
,
val
:
899
},
{
statMonth
:
'23.
12
'
,
val
:
9
statMonth
:
'23.
03
'
,
val
:
757
},
{
statMonth
:
'23.
13
'
,
val
:
50
statMonth
:
'23.
04
'
,
val
:
997
},
{
statMonth
:
'23.
14
'
,
val
:
30
statMonth
:
'23.
05
'
,
val
:
876
},
{
statMonth
:
'23.
15
'
,
val
:
10
statMonth
:
'23.
06
'
,
val
:
878
},
{
statMonth
:
'23.
15
'
,
val
:
1
0
statMonth
:
'23.
07
'
,
val
:
1
219
},
{
statMonth
:
'23.
15
'
,
val
:
10
statMonth
:
'23.
08
'
,
val
:
861
},
{
statMonth
:
'23.
15
'
,
val
:
10
statMonth
:
'23.
09
'
,
val
:
911
},
{
statMonth
:
'23.15'
,
val
:
10
statMonth
:
'23.10'
,
val
:
983
},
{
statMonth
:
'23.11'
,
val
:
864
},
{
statMonth
:
'23.12'
,
val
:
903
},
{
statMonth
:
'23.01'
,
val
:
1001
}
]
const
activityListData
=
[
{
isused
:
"精品升级"
,
num
:
36
0
,
rate
:
3
6
num
:
240
0
,
rate
:
3
5.3
},
{
isused
:
"权益升级"
,
num
:
28
0
,
rate
:
2
8
num
:
185
0
,
rate
:
2
7.22
},
{
isused
:
"售后团购"
,
num
:
240
,
rate
:
2
4
num
:
1599
,
rate
:
2
3.52
},
{
isused
:
"节假日关怀"
,
num
:
12
0
,
rate
:
1
2
num
:
95
0
,
rate
:
1
3.96
}
]
const
bigModuleChartDataList
=
[
{
statMonth
:
'
23.11
'
,
val
:
10
statMonth
:
'
8月
'
,
val
:
248
},
{
statMonth
:
'
23.12
'
,
val
:
9
statMonth
:
'
9月
'
,
val
:
375
},
{
statMonth
:
'
23.13
'
,
val
:
50
statMonth
:
'
10月
'
,
val
:
623
},
{
statMonth
:
'
23.14
'
,
val
:
30
statMonth
:
'
11月
'
,
val
:
746
},
{
statMonth
:
'23.15'
,
val
:
10
statMonth
:
'12月'
,
val
:
921
},
{
statMonth
:
'01月'
,
val
:
1107
},
]
...
...
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