Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
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 b3d15bb3
authored
Oct 14, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
3c597426
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
230 additions
and
656 deletions
package.json
src/assets/styles/activited.scss
src/assets/styles/activiting.scss
src/assets/styles/activity.scss
src/views/crowdfunding/activited.vue
package.json
View file @
b3d15bb
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
},
},
"dependencies"
:
{
"dependencies"
:
{
"axios"
:
"^0.27.2"
,
"axios"
:
"^0.27.2"
,
"echarts"
:
"^5.4.0"
,
"js-sha1"
:
"^0.6.0"
,
"js-sha1"
:
"^0.6.0"
,
"lib-flexible"
:
"^0.3.2"
,
"lib-flexible"
:
"^0.3.2"
,
"md5"
:
"^2.3.0"
,
"md5"
:
"^2.3.0"
,
...
...
src/assets/styles/activited.scss
0 → 100644
View file @
b3d15bb
// 已结束
.box-report
{
display
:
flex
;
flex-wrap
:
wrap
;
font-size
:
22px
;
text-align
:
center
;
background
:
linear-gradient
(
0deg
,
#FFE1C8
0%
,
#FFF2E0
100%
);
border-radius
:
10px
;
padding
:
10px
;
margin-top
:
30px
;
.p-t-10
{
padding-top
:
10px
;
}
.report-item
{
width
:
calc
((
100%
-
4px
)
/
3
);
.icon
{
display
:
inline-block
;
width
:
50px
;
height
:
50px
;
}
.icon-1
{
background
:
url("@/assets/images/activityReport/1.png")
no-repeat
;
background-size
:
50px
;
}
.icon-2
{
background
:
url("@/assets/images/activityReport/2.png")
no-repeat
;
background-size
:
50px
;
}
.icon-3
{
background
:
url("@/assets/images/activityReport/3.png")
no-repeat
;
background-size
:
50px
;
}
.icon-4
{
background
:
url("@/assets/images/activityReport/4.png")
no-repeat
;
background-size
:
50px
;
}
.icon-5
{
background
:
url("@/assets/images/activityReport/5.png")
no-repeat
;
background-size
:
50px
;
}
.icon-6
{
background
:
url("@/assets/images/activityReport/6.png")
no-repeat
;
background-size
:
50px
;
}
.report-name
{
margin-bottom
:
5px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
32px
;
}
.report-value
{
display
:
inline-flex
;
color
:
#FF333A
;
align-items
:
flex-end
;
margin-bottom
:
10px
;
.report-number
{
font-size
:
36px
;
font-weight
:
600
;
margin-right
:
8px
;
line-height
:
40px
;
}
.report-unit
{
display
:
inline-block
;
line-height
:
36px
;
}
}
}
.border-right
{
border-right
:
1px
solid
rgba
(
255
,
208
,
171
,
0
.8
);
}
.border-bottom
{
border-bottom
:
1px
solid
rgba
(
255
,
208
,
171
,
0
.8
);
}
}
.finish-activty
{
margin-top
:
50px
;
text-align
:
center
;
height
:
85px
;
.activty-text
{
display
:
inline-block
;
background
:
linear-gradient
(
0deg
,
#FFD7B7
0%
,
#FFEBDB
100%
);
border-radius
:
8px
;
padding
:
13px
21px
;
font-size
:
24px
;
font-weight
:
500
;
color
:
#262525
;
line-height
:
32px
;
.activty-flag
{
color
:
#FF363B
;
font-size
:
32px
;
font-weight
:
500
;
}
}
}
.icon-horn
{
position
:
absolute
;
bottom
:
20px
;
left
:
0
;
width
:
157px
;
height
:
131px
;
}
.icon-fireworks
{
position
:
absolute
;
bottom
:
35px
;
right
:
4px
;
width
:
275px
;
height
:
205px
;
}
.vs-bg
{
position
:
absolute
;
top
:
44px
;
width
:
687px
;
height
:
356px
;
z-index
:
0
;
}
.vs-box
{
display
:
flex
;
position
:
relative
;
width
:
687px
;
.vs-item
{
width
:
50%
;
text-align
:
center
;
.vs-title
{
font-size
:
28px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
32px
;
}
.vs-content
{
margin-top
:
16px
;
padding
:
24px
30px
;
.content-item
{
display
:
flex
;
font-size
:
22px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
22px
;
margin-bottom
:
15px
;
.content-label
{
margin-right
:
30px
;
}
.content-value
{
color
:
#FF333A
;
font-size
:
22px
;
.content-number
{
display
:
inline-block
;
width
:
100px
;
text-align
:
left
;
font-size
:
36px
;
font-weight
:
600
;
font-style
:
italic
;
}
}
}
.left-content
{
background
:
linear-gradient
(
90deg
,
rgba
(
255
,
211
,
177
,
0
.7
)
0%
,
rgba
(
255
,
226
,
205
,
0
)
100%
);
// opacity: 0.7;
border-radius
:
22px
;
padding
:
14px
20px
8px
;
}
.right-content
{
background
:
linear-gradient
(
270deg
,
rgba
(
255
,
167
,
152
,
0
.6
)
0%
,
rgba
(
254
,
177
,
164
,
0
)
100%
);
// opacity: 0.6;
border-radius
:
22px
;
padding
:
14px
20px
8px
;
display
:
flex
;
justify-content
:
flex-end
;
}
}
}
}
.summary
{
font-size
:
30px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
30px
;
text-align
:
center
;
width
:
100%
;
margin-top
:
40px
;
margin-bottom
:
10px
;
}
.vs-tip
{
display
:
flex
;
justify-content
:
center
;
font-size
:
22px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
34px
;
margin-bottom
:
-1px
;
}
\ No newline at end of file
\ No newline at end of file
src/assets/styles/activiting.scss
deleted
100644 → 0
View file @
3c59742
.wrapper-header
{
position
:
relative
;
.img-title
{
width
:
100%
;
}
.img-product
{
bottom
:
0px
;
width
:
438px
;
height
:
191px
;
}
.img-cloud
{
width
:
100%
;
bottom
:
-11px
;
}
.img-gold
{
width
:
623px
;
bottom
:
90px
;
}
.store-name
{
top
:
242px
;
font-size
:
32px
;
font-weight
:
600
;
color
:
#ffffff
;
line-height
:
32px
;
text-shadow
:
6px
0px
8px
#db4427
;
letter-spacing
:
10px
;
}
.activty-status
{
display
:
inline-block
;
padding
:
10px
35px
;
font-size
:
26px
;
font-weight
:
500
;
color
:
#ffefea
;
line-height
:
32px
;
letter-spacing
:
2px
;
background-image
:
linear-gradient
(
0deg
,
#ff2028
,
#ff694b
);
border-radius
:
8px
;
top
:
292px
;
}
}
.wrapper-output
{
margin-top
:
46px
;
font-size
:
0
;
.box-header
{
position
:
relative
;
&
-bg
{
width
:
100%
;
}
&
-text
{
top
:
17px
;
display
:
flex
;
align-items
:
center
;
img
{
width
:
40px
;
height
:
16px
;
}
}
&
-title
{
font-size
:
36px
;
font-weight
:
500
;
color
:
#ffffff
;
line-height
:
63px
;
margin
:
0
15px
;
}
}
.box-body
{
background-image
:
url("@/assets/images/warReport/box-bg.png")
;
background-repeat
:
repeat-y
;
background-size
:
100%
;
// height: 1000px;
margin-top
:
-1px
;
padding
:
0
35px
;
.ratio-box
{
display
:
flex
;
position
:
relative
;
width
:
100%
;
.ratio-left
,
.ratio-right
{
display
:
flex
;
align-items
:
center
;
width
:
50%
;
height
:
50px
;
font-size
:
22px
;
font-weight
:
400
;
color
:
#262525
;
line-height
:
32px
;
justify-content
:
center
;
}
.ratio-left
{
border-radius
:
10px
0px
0px
10px
;
background-image
:
linear-gradient
(
0deg
,
#ffd7b7
0%
,
#ffebdb
100%
);
}
.ratio-right
{
border-radius
:
0
10px
10px
0
;
background-image
:
linear-gradient
(
0deg
,
#feaea5
0%
,
#ffe2db
99%
);
}
.ratio-vs
{
position
:
absolute
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
width
:
72px
;
height
:
50px
;
}
.ratio-number
{
color
:
#ff333a
;
font-size
:
26px
;
font-weight
:
600
;
}
}
.box-funnel
{
position
:
relative
;
text-align
:
center
;
margin-top
:
40px
;
.img-funnel
{
width
:
517px
;
height
:
324px
;
}
.funnel-content
{
top
:
0
;
width
:
517px
;
height
:
324px
;
font-size
:
24px
;
font-weight
:
400
;
color
:
#444444
;
line-height
:
32px
;
.funnel-item
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
height
:
76px
;
margin-bottom
:
8px
;
.funnel-value
{
color
:
#ff3339
;
font-weight
:
600
;
font-size
:
28px
;
}
}
}
}
.box-percentage
{
margin-top
:
50px
;
.percentage-bar
{
position
:
relative
;
height
:
75px
;
}
.bar
{
position
:
absolute
;
background
:
linear-gradient
(
360deg
,
#ffaa48
0%
,
#fff454
100%
);
display
:
inline-flex
;
align-items
:
flex-end
;
justify-content
:
center
;
box-shadow
:
inset
0px
-1px
3px
0px
#fe9d24
,
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
)
,
inset
0px
1px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
);
padding
:
14px
15px
;
margin-bottom
:
20px
;
border-radius
:
5px
;
box-shadow
:
inset
0px
-1px
3px
0px
#fe9d24
,
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
)
,
inset
0px
1px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
);
transform
:
translateX
(
-50%
);
.icon-flash
{
display
:
inline-block
;
width
:
17px
;
height
:
24px
;
background
:
url("@/assets/images/warReport/icon-flash.png")
no-repeat
;
background-size
:
17px
24px
;
margin-right
:
10px
;
}
.number
{
font-size
:
26px
;
font-weight
:
600
;
color
:
#ff343a
;
line-height
:
20px
;
}
.arrow
{
position
:
absolute
;
border-top
:
14px
solid
#ffaa48
;
border-left
:
14
.5px
solid
transparent
;
border-right
:
14
.5px
solid
transparent
;
border-bottom
:
14px
solid
transparent
;
bottom
:
-27px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
.right
{
left
:
80%
;
}
}
.progress-box
{
width
:
100%
;
height
:
38px
;
border-radius
:
30px
;
background-image
:
linear-gradient
(
0deg
,
#ff4444
,
#fd6c6c
);
.progress-line
{
position
:
relative
;
font-size
:
0
;
width
:
50%
;
height
:
100%
;
border-radius
:
30px
;
background-image
:
linear-gradient
(
0deg
,
#ffaa48
,
#fff454
);
box-shadow
:
0px
0px
10px
0px
#ffc158
;
overflow-x
:
hidden
;
&
:
:
after
{
content
:
""
;
display
:
inline-block
;
width
:
100%
;
height
:
100%
;
background-image
:
url("@/assets/images/warReport/icon-line.png")
;
background-repeat
:
repeat-x
;
background-size
:
56px
40px
;
}
}
}
}
.box-activty
{
margin-top
:
15px
;
width
:
100%
;
text-align
:
center
;
.activty-text
{
font-size
:
24px
;
font-weight
:
500
;
color
:
#262525
;
line-height
:
32px
;
.activty-flag
{
color
:
#ff363b
;
font-size
:
32px
;
font-size
:
600
;
}
}
.activty-tip
{
font-size
:
20px
;
font-weight
:
400
;
color
:
#666666
;
line-height
:
21px
;
margin-top
:
11px
;
}
}
// 排行榜
.ranking-title
{
display
:
inline-flex
;
align-items
:
center
;
background
:
linear-gradient
(
90deg
,
#ffcebf
0%
,
#fff6ea
100%
);
border-radius
:
20px
;
font-size
:
22px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
22px
;
padding
:
9px
21px
;
margin-top
:
10px
;
img
{
width
:
30px
;
height
:
17px
;
margin-right
:
10px
;
}
}
.box-ranking
{
display
:
flex
;
padding
:
20px
16px
10px
;
.ranking-item
{
display
:
flex
;
position
:
relative
;
width
:
calc
((
100%
-
271px
)
/
2
);
height
:
284px
;
margin-right
:
26px
;
text-align
:
center
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
flex-end
;
&
:last-child
{
margin-right
:
0
;
}
.icon-second
{
width
:
82px
;
height
:
102px
;
bottom
:
126px
;
}
.second-bg
{
width
:
191px
;
height
:
141px
;
}
.icon-first
{
width
:
100px
;
height
:
127px
;
top
:
0
;
}
.department
{
width
:
120px
;
height
:
32px
;
background
:
url("@/assets/images/warReport/bg-department.png")
no-repeat
;
background-size
:
120px
32px
;
font-size
:
22px
;
font-weight
:
400
;
color
:
#ffffff
;
line-height
:
32px
;
}
.second-department
{
bottom
:
92px
;
}
.first-department
{
bottom
:
126px
;
}
.first-box-order
{
padding-bottom
:
54px
;
}
.first-bg
{
width
:
219px
;
height
:
161px
;
padding-bottom
:
20px
;
img
{
width
:
100%
;
}
}
}
.first-item
{
width
:
219px
;
}
}
.ranking-employee
{
display
:
flex
;
align-items
:
center
;
font-size
:
20px
;
text-align
:
center
;
height
:
274px
;
padding-top
:
20px
;
box-sizing
:
border-box
;
.employee-item
{
position
:
relative
;
width
:
calc
((
100%
-
20px
)
/
3
);
margin-right
:
10px
;
&
:last-child
{
margin-right
:
0
;
}
.first-bg
{
display
:
flex
;
align-items
:
flex-end
;
width
:
100%
;
height
:
192px
;
background
:
linear-gradient
(
0deg
,
#ffe1c8
0%
,
#fff2e0
100%
);
border-radius
:
10px
;
}
.second-bg
{
display
:
flex
;
align-items
:
flex-end
;
width
:
100%
;
height
:
172px
;
background
:
linear-gradient
(
0deg
,
#ffe1c8
0%
,
#fff2e0
100%
);
border-radius
:
10px
;
}
.avatar-bg
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.first-avatar-bg
{
top
:
-33px
;
width
:
140px
;
height
:
140px
;
background
:
url("@/assets/images/warReport/first-avatar-bg.png")
no-repeat
;
background-size
:
140px
;
}
.second-avatar-bg
{
top
:
-32px
;
width
:
120px
;
height
:
120px
;
background
:
url("@/assets/images/warReport/second-avatar-bg.png")
no-repeat
;
background-size
:
120px
;
}
.third-avatar-bg
{
top
:
-32px
;
width
:
120px
;
height
:
120px
;
background
:
url("@/assets/images/warReport/third-avatar-bg.png")
no-repeat
;
background-size
:
120px
;
}
.avatar
{
width
:
90px
;
height
:
90px
;
border-radius
:
50%
;
}
.first-avatar
{
width
:
110px
;
height
:
110px
;
border-radius
:
50%
;
}
.icon-diamond
{
position
:
absolute
;
right
:
0
;
top
:
0
;
width
:
53px
;
height
:
48px
;
}
.first-diamond
{
width
:
60px
;
height
:
53px
;
}
}
}
.box-order
{
width
:
100%
;
padding-bottom
:
24px
;
.order
{
font-size
:
20px
;
font-weight
:
400
;
color
:
#444444
;
line-height
:
20px
;
&
:first-child
{
margin-bottom
:
11px
;
}
.order-value
{
color
:
#ff333a
;
font-size
:
22px
;
}
}
}
}
.box-footer
{
margin-top
:
0
;
img
{
width
:
100%
;
}
}
}
.wrapper-code
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
margin-top
:
40px
;
.code-bg
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
240px
;
height
:
240px
;
background
:
linear-gradient
(
180deg
,
#ffcb8d
0%
,
#ff8d60
100%
);
border-radius
:
8px
;
img
{
width
:
220px
;
height
:
220px
;
}
}
.code-tip
{
font-size
:
24px
;
font-weight
:
400
;
color
:
#ffffff
;
line-height
:
32px
;
margin-top
:
20px
;
}
.wrapper-footer
{
width
:
100%
;
height
:
224px
;
margin-top
:
-85px
;
z-index
:
-1
;
}
}
\ No newline at end of file
\ No newline at end of file
src/assets/styles/activity.scss
View file @
b3d15bb
...
@@ -466,194 +466,3 @@
...
@@ -466,194 +466,3 @@
}
}
}
}
// 已结束
.box-report
{
display
:
flex
;
flex-wrap
:
wrap
;
font-size
:
22px
;
text-align
:
center
;
background
:
linear-gradient
(
0deg
,
#FFE1C8
0%
,
#FFF2E0
100%
);
border-radius
:
10px
;
padding
:
10px
;
margin-top
:
30px
;
.p-t-10
{
padding-top
:
10px
;
}
.report-item
{
width
:
calc
((
100%
-
4px
)
/
3
);
.icon
{
display
:
inline-block
;
width
:
50px
;
height
:
50px
;
}
.icon-1
{
background
:
url("@/assets/images/activityReport/1.png")
no-repeat
;
background-size
:
50px
;
}
.icon-2
{
background
:
url("@/assets/images/activityReport/2.png")
no-repeat
;
background-size
:
50px
;
}
.icon-3
{
background
:
url("@/assets/images/activityReport/3.png")
no-repeat
;
background-size
:
50px
;
}
.icon-4
{
background
:
url("@/assets/images/activityReport/4.png")
no-repeat
;
background-size
:
50px
;
}
.icon-5
{
background
:
url("@/assets/images/activityReport/5.png")
no-repeat
;
background-size
:
50px
;
}
.icon-6
{
background
:
url("@/assets/images/activityReport/6.png")
no-repeat
;
background-size
:
50px
;
}
.report-name
{
margin-bottom
:
5px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
32px
;
}
.report-value
{
display
:
inline-flex
;
color
:
#FF333A
;
align-items
:
flex-end
;
margin-bottom
:
10px
;
.report-number
{
font-size
:
36px
;
font-weight
:
600
;
margin-right
:
8px
;
line-height
:
40px
;
}
.report-unit
{
display
:
inline-block
;
line-height
:
36px
;
}
}
}
.border-right
{
border-right
:
1px
solid
rgba
(
255
,
208
,
171
,
0
.8
);
}
.border-bottom
{
border-bottom
:
1px
solid
rgba
(
255
,
208
,
171
,
0
.8
);
}
}
.finish-activty
{
margin-top
:
50px
;
text-align
:
center
;
height
:
85px
;
.activty-text
{
display
:
inline-block
;
background
:
linear-gradient
(
0deg
,
#FFD7B7
0%
,
#FFEBDB
100%
);
border-radius
:
8px
;
padding
:
13px
21px
;
font-size
:
24px
;
font-weight
:
500
;
color
:
#262525
;
line-height
:
32px
;
.activty-flag
{
color
:
#FF363B
;
font-size
:
32px
;
font-weight
:
500
;
}
}
}
.icon-horn
{
position
:
absolute
;
bottom
:
20px
;
left
:
0
;
width
:
157px
;
height
:
131px
;
}
.icon-fireworks
{
position
:
absolute
;
bottom
:
35px
;
right
:
4px
;
width
:
275px
;
height
:
205px
;
}
.vs-bg
{
position
:
absolute
;
top
:
44px
;
width
:
687px
;
height
:
356px
;
z-index
:
0
;
}
.vs-box
{
display
:
flex
;
position
:
relative
;
width
:
687px
;
.vs-item
{
width
:
50%
;
text-align
:
center
;
.vs-title
{
font-size
:
28px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
32px
;
}
.vs-content
{
margin-top
:
16px
;
padding
:
24px
30px
;
.content-item
{
display
:
flex
;
font-size
:
22px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
22px
;
margin-bottom
:
15px
;
.content-label
{
margin-right
:
30px
;
}
.content-value
{
color
:
#FF333A
;
font-size
:
22px
;
.content-number
{
display
:
inline-block
;
width
:
100px
;
text-align
:
left
;
font-size
:
36px
;
font-weight
:
600
;
font-style
:
italic
;
}
}
}
.left-content
{
background
:
linear-gradient
(
90deg
,
rgba
(
255
,
211
,
177
,
0
.7
)
0%
,
rgba
(
255
,
226
,
205
,
0
)
100%
);
// opacity: 0.7;
border-radius
:
22px
;
padding
:
14px
20px
8px
;
}
.right-content
{
background
:
linear-gradient
(
270deg
,
rgba
(
255
,
167
,
152
,
0
.6
)
0%
,
rgba
(
254
,
177
,
164
,
0
)
100%
);
// opacity: 0.6;
border-radius
:
22px
;
padding
:
14px
20px
8px
;
display
:
flex
;
justify-content
:
flex-end
;
}
}
}
}
.summary
{
font-size
:
30px
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
30px
;
text-align
:
center
;
width
:
100%
;
margin-top
:
40px
;
margin-bottom
:
10px
;
}
.vs-tip
{
display
:
flex
;
justify-content
:
center
;
font-size
:
22px
;
font-weight
:
400
;
color
:
#333333
;
line-height
:
34px
;
margin-bottom
:
-1px
;
}
\ No newline at end of file
\ No newline at end of file
src/views/crowdfunding/activited.vue
View file @
b3d15bb
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-10-11 17:41:38
* @Date: 2022-10-11 17:41:38
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-10-14 1
0:16:34
* @LastEditTime: 2022-10-14 1
4:06:48
-->
-->
<
template
>
<
template
>
<!-- 战报产品 -->
<!-- 战报产品 -->
...
@@ -421,7 +421,9 @@
...
@@ -421,7 +421,9 @@
<img
src=
"@/assets/images/activityReport/title-right.png"
alt=
""
/>
<img
src=
"@/assets/images/activityReport/title-right.png"
alt=
""
/>
</div>
</div>
</div>
</div>
<div
class=
"box-body"
></div>
<div
class=
"box-body"
>
<div
ref=
"main"
style=
"width: 100%; height: 400px"
></div>
</div>
<div
class=
"box-footer"
>
<div
class=
"box-footer"
>
<img
src=
"@/assets/images/activityReport/box-footer.png"
alt=
""
/>
<img
src=
"@/assets/images/activityReport/box-footer.png"
alt=
""
/>
</div>
</div>
...
@@ -440,11 +442,44 @@
...
@@ -440,11 +442,44 @@
</div>
</div>
</
template
>
</
template
>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
{
ref
}
from
"vue"
;
import
{
ref
,
onMounted
}
from
"vue"
;
// 按需引入 echarts
import
*
as
echarts
from
"echarts"
;
const
count
=
ref
(
50
);
const
count
=
ref
(
50
);
const
progress
=
ref
(
50
);
const
progress
=
ref
(
50
);
const
main
=
ref
();
onMounted
(()
=>
{
init
();
});
function
init
()
{
var
myChart
=
echarts
.
init
(
main
.
value
);
// 指定图表的配置项和数据
var
option
=
{
title
:
{
text
:
"ECharts 入门示例"
,
},
tooltip
:
{},
legend
:
{
data
:
[
"销量"
],
},
xAxis
:
{
data
:
[
"衬衫"
,
"羊毛衫"
,
"雪纺衫"
,
"裤子"
,
"高跟鞋"
,
"袜子"
],
},
yAxis
:
{},
series
:
[
{
name
:
"销量"
,
type
:
"bar"
,
data
:
[
5
,
20
,
36
,
10
,
10
,
20
],
},
],
};
// 使用刚指定的配置项和数据显示图表。
myChart
.
setOption
(
option
);
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
"src/assets/styles/activity.scss"
;
@import
"src/assets/styles/activity.scss"
;
@import
"src/assets/styles/activited.scss"
;
</
style
>
</
style
>
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