Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
ZhangJianFrontEnd
Overview
Overview
Details
Activity
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
vue-project
ZhangJian
ZhangJianFrontEnd
Commits
4eb32989
Commit
4eb32989
authored
Aug 09, 2021
by
wuxiao
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面开发
parent
87255517
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
143 additions
and
3 deletions
+143
-3
CountTo.vue
src/components/CountTo.vue
+35
-0
Center.vue
src/pages/index/Center.vue
+100
-2
index.vue
src/pages/index/index.vue
+4
-1
index.js
src/public/plugins/index.js
+4
-0
courseBG.png
static/images/index/courseBG.png
+0
-0
frameworkBG.png
static/images/index/frameworkBG.png
+0
-0
No files found.
src/components/CountTo.vue
0 → 100644
View file @
4eb32989
<
template
>
<CountTo
:startVal=
"startVal"
:endVal=
"endVal"
:duration=
"duration"
:decimals=
"decimals"
:separator=
"separator"
:suffix=
"suffix"
:prefix=
"prefix"
/>
</
template
>
<
script
>
import
CountTo
from
'vue-count-to'
export
default
{
name
:
'VueCountTo'
,
// TODO: 数字变动组件
components
:
{
CountTo
},
props
:
{
autoplay
:
{
type
:
Boolean
,
default
:
true
},
// 自动播放 默认为 True
startVal
:
{
type
:
Number
,
default
:
0
},
// 起始值
endVal
:
{
type
:
Number
,
default
:
0
},
// 结束值
duration
:
{
type
:
Number
,
default
:
800
},
// 持续时间,以毫秒为单位
decimals
:
{
type
:
Number
,
default
:
0
},
// 要显示的小数位数
separator
:
{
type
:
String
,
default
:
','
},
// 分隔符
prefix
:
{
type
:
String
,
default
:
''
},
// 前缀
suffix
:
{
type
:
String
,
default
:
''
}
// 后缀
}
}
</
script
>
<
style
scoped
>
span
{
font-family
:
"Century Gothic"
;
}
</
style
>
src/pages/index/Center.vue
View file @
4eb32989
<
template
>
<
template
>
<div
class=
"managePlatform-center"
></div>
<div
class=
"managePlatform-center"
>
<div
class=
"survey-content"
>
<div
class=
"item"
v-for=
"(g, l) in survey"
:key=
"l"
>
<count-to
:endVal=
"g.value"
/>
<p>
{{
g
.
name
}}
</p>
</div>
</div>
<div
class=
"footer"
>
<div
class=
"item course"
>
<title-line
:con=
"'发展历程'"
></title-line>
<div
class=
"courseModal"
>
2021年学校成立
***********************
</div>
</div>
<div
class=
"item framework"
>
<title-line
:con=
"'组织架构'"
></title-line>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
TitleLine
from
'@/components/TitleLine'
export
default
{
export
default
{
name
:
'Center'
,
name
:
'Center'
,
components
:
{
TitleLine
},
data
()
{
data
()
{
return
{}
return
{
survey
:
[
{
name
:
'学员数'
,
value
:
31721
},
{
name
:
'班级数'
,
value
:
105
},
{
name
:
'二级协会数'
,
value
:
15
}
]
}
},
},
mounted
()
{},
mounted
()
{},
...
@@ -18,5 +48,72 @@ export default {
...
@@ -18,5 +48,72 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.managePlatform-center
{
.managePlatform-center
{
width
:
100%
;
position
:
relative
;
.survey-content
{
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
margin-top
:
20px
;
.item
{
width
:
220px
;
height
:
72px
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
span
{
font-size
:
42px
;
color
:
#FFFFFF
;
font-weight
:
400
;
}
p
{
font-size
:
18px
;
font-weight
:
400
;
color
:
#FFFFFF
;
}
}
.item
:nth-child
(
2
)
{
border-left
:
1px
solid
rgba
(
89
,
183
,
249
,
0.8
);
border-right
:
1px
solid
rgba
(
89
,
183
,
249
,
0.8
);
}
}
.footer
{
width
:
calc
(
100%
-
30px
);
height
:
270px
;
position
:
absolute
;
left
:
15px
;
top
:
740px
;
background
:
rgba
(
0
,
7
,
17
,
0.18
);
padding
:
10px
15px
;
display
:
flex
;
justify-content
:
space-between
;
.item
{
width
:
50%
;
height
:
100%
;
box-sizing
:
border-box
;
}
.course
{
background
:
url('../../../static/images/index/courseBG.png')
left
top
113px
no-repeat
;
}
.courseModal
{
width
:
214px
;
height
:
75px
;
background
:
rgba
(
0
,
190
,
255
,
0.1
);
border
:
1px
solid
;
border-image
:
linear-gradient
(
176deg
,
rgba
(
61
,
162
,
242
,
0
),
#3DA2F2
,
rgba
(
10
,
79
,
135
,
0
))
1
1
;
box-sizing
:
border-box
;
padding
:
8px
12px
;
font-size
:
14px
;
font-weight
:
300
;
color
:
#FFFFFF
;
line-height
:
20px
;
margin-top
:
10px
;
}
.framework
{
padding-left
:
42px
;
background
:
url('../../../static/images/index/frameworkBG.png')
right
top
43px
no-repeat
;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/pages/index/index.vue
View file @
4eb32989
...
@@ -40,5 +40,8 @@ export default {
...
@@ -40,5 +40,8 @@ export default {
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.index-page
{
width
:
1920px
;
margin
:
0
auto
;
}
</
style
>
</
style
>
src/public/plugins/index.js
View file @
4eb32989
...
@@ -4,6 +4,8 @@ import mixins from '../mixins'
...
@@ -4,6 +4,8 @@ import mixins from '../mixins'
import
ContentContainer
from
'components/ContentContainer'
import
ContentContainer
from
'components/ContentContainer'
// 页面头
// 页面头
import
Header
from
'components/Header'
import
Header
from
'components/Header'
// 插件
import
CountTo
from
'components/CountTo.vue'
const
UsePlugin
=
{}
const
UsePlugin
=
{}
...
@@ -18,6 +20,8 @@ UsePlugin.install = function (Vue, options = {}) {
...
@@ -18,6 +20,8 @@ UsePlugin.install = function (Vue, options = {}) {
// 内容容器
// 内容容器
Vue
.
component
(
'content-container'
,
ContentContainer
)
Vue
.
component
(
'content-container'
,
ContentContainer
)
Vue
.
component
(
'page-head'
,
Header
)
Vue
.
component
(
'page-head'
,
Header
)
// 数组滚动
Vue
.
component
(
'count-to'
,
CountTo
)
}
}
export
default
UsePlugin
export
default
UsePlugin
static/images/index/
组5231拷贝4
.png
→
static/images/index/
courseBG
.png
View file @
4eb32989
File moved
static/images/index/
色彩平衡1133
.png
→
static/images/index/
frameworkBG
.png
View file @
4eb32989
File moved
yuanfeng
@yuanfeng
mentioned in commit
ed704ff7
Aug 09, 2021
mentioned in commit
ed704ff7
mentioned in commit ed704ff792f577f5f84f9ec993bbdce8683d4176
Toggle commit list
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