Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
gh
/
dj-data-view
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 d4573a48
authored
Oct 25, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
ed16691d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
10 deletions
src/assets/css/index.scss
src/components/ViewTabs.vue
src/views/user/usertab.vue
src/assets/css/index.scss
View file @
d4573a4
...
@@ -36,7 +36,7 @@ img {
...
@@ -36,7 +36,7 @@ img {
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.flex-column
{
.flex-column
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
...
@@ -139,3 +139,8 @@ img {
...
@@ -139,3 +139,8 @@ img {
height
:
9
.5vh
;
height
:
9
.5vh
;
}
}
}
}
.text-linear
{
background
:
linear-gradient
(
top
,
#b4bdff
,
#7e8eff
);
color
:
transparent
;
-webkit-background-clip
:
text
;
}
src/components/ViewTabs.vue
View file @
d4573a4
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"tabs flex box"
>
<div
class=
"tabs flex box"
>
<div
class=
"tab"
v-for=
"item in tabs"
:key=
"item.key"
>
<div
class=
"tab"
v-for=
"item in tabs"
:key=
"item.key"
>
<div
class=
"tab-title"
>
{{
item
.
title
}}
</div>
<div
class=
"tab-title"
>
{{
item
.
title
}}
</div>
<div
class=
"tab-text
"
>
2,174443
</div>
<div
class=
"tab-text
text-linear"
>
2,1744
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -40,8 +40,11 @@ export default {
...
@@ -40,8 +40,11 @@ export default {
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.tabs
{
.tabs
{
margin
:
1.22vh
2.78vw
0.98vh
2.78vw
;
margin
:
1.22vh
0
0.98vh
0
;
padding
:
0
1.67vw
;
height
:
6.95vh
;
height
:
6.95vh
;
width
:
100%
;
box-sizing
:
border-box
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.tab
{
.tab
{
margin
:
0.61vh
0
;
margin
:
0.61vh
0
;
...
@@ -53,7 +56,6 @@ export default {
...
@@ -53,7 +56,6 @@ export default {
.tab-text
{
.tab-text
{
font-weight
:
700
;
font-weight
:
700
;
font-size
:
24px
;
font-size
:
24px
;
color
:
#6578ff
;
line-height
:
30px
;
line-height
:
30px
;
}
}
}
}
...
...
src/views/user/usertab.vue
View file @
d4573a4
<
template
>
<
template
>
<div
class=
"user-tab"
>
<div
class=
"user-tab flex"
>
<template
v-for=
"(tab, index) in userData"
>
<div
class=
"tab-item"
:key=
"index"
>
<div
class=
"tab-title"
>
{{
tab
.
text
}}
</div>
<div
class=
"tab-count text-linear"
>
15,351,2
</div>
<div
class=
"tab-increase flex-between"
>
<div
class=
"increase-text"
>
当年新增
</div>
<div
class=
"increase-count"
>
7,329,2
</div>
</div>
</div>
</
template
>
</div>
</div>
</template>
</template>
...
@@ -10,14 +19,76 @@ export default {
...
@@ -10,14 +19,76 @@ export default {
name
:
'UserTab'
,
name
:
'UserTab'
,
data
()
{
data
()
{
return
{
return
{
userData
:
[
{
text
:
'用户数'
,
value
:
obj
=>
obj
.
increnum
,
increase
:
obj
=>
obj
.
increnum
},
{
text
:
'企微客户数'
,
value
:
obj
=>
obj
.
totalwechatnum
,
increase
:
obj
=>
obj
.
increwechatnum
},
{
text
:
'企微群数'
,
value
:
obj
=>
obj
.
totalwechatgroupnum
,
increase
:
obj
=>
obj
.
increwechatgroupnum
},
{
text
:
'小程序'
,
value
:
obj
=>
obj
.
totalappletnum
,
increase
:
obj
=>
obj
.
increappletnum
},
{
text
:
'个微客户数'
,
value
:
obj
=>
obj
.
totalsinglewechantnum
,
increase
:
obj
=>
obj
.
incresinglewechantnum
}
]
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.user-tab
{
.user-tab
{
height
:
29.51vh
;
height
:
9.02vh
;
margin
:
1.46vh
0
0.98vh
0
;
margin
:
1.46vh
0
0.98vh
0
;
.tab-item
{
width
:
9.65vw
;
height
:
9.02vh
;
background
:
#0b0e31
;
margin-right
:
0.28vw
;
padding
:
0.28vh
0
;
box-sizing
:
border-box
;
.tab-title
{
font-weight
:
400
;
font-size
:
12px
;
color
:
#e8e8e8
;
margin
:
0
0.69vw
;
height
:
2.07vh
;
}
.tab-count
{
font-weight
:
700
;
font-size
:
22px
;
margin
:
0
0.69vw
;
height
:
3.8vh
;
line-height
:
3.8vh
;
}
.tab-increase
{
height
:
2.44vh
;
border-top
:
1px
solid
#171f60
;
padding
:
0
0.69vw
;
}
.increase-text
{
font-size
:
9px
;
color
:
#dddddd
;
}
.increase-count
{
font-weight
:
700
;
font-size
:
12px
;
color
:
#ffffff
;
}
}
}
}
</
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