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
32dc719f
Commit
32dc719f
authored
Aug 09, 2021
by
wdc147
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/20210819' into wdc
parents
f7b874fb
b6a259d5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
429 additions
and
3 deletions
+429
-3
CountTo.vue
src/components/CountTo.vue
+35
-0
index.vue
src/components/Swiper/index.vue
+80
-0
LineChart.vue
src/components/echarts/LineChart.vue
+206
-0
Center.vue
src/pages/index/Center.vue
+100
-2
Left.vue
src/pages/index/Left.vue
+0
-0
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
persion.png
static/images/index/persion.png
+0
-0
starClassBg.png
static/images/index/starClassBg.png
+0
-0
No files found.
src/components/CountTo.vue
0 → 100644
View file @
32dc719f
<
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/components/Swiper/index.vue
0 → 100644
View file @
32dc719f
<
template
>
<swiper
:options=
"swiperOption"
>
<slot>
<!-- 滚动内容 -->
<!-- 下面的按需求引入 -->
</slot>
<!--
<div
class=
"swiper-pagination"
slot=
"pagination"
></div>
<div
class=
"swiper-button-prev"
slot=
"button-prev"
></div>
<div
class=
"swiper-button-next"
slot=
"button-next"
></div>
-->
</swiper>
</
template
>
<
script
>
import
{
swiper
}
from
'vue-awesome-swiper'
import
'swiper/dist/css/swiper.css'
export
default
{
name
:
'Swiper'
,
props
:
{
options
:
{
type
:
Object
,
default
()
{
return
{}
}
}
},
data
()
{
return
{
swiperOption
:
{
// 滚动方向
// direction: 'vertical',
// 展示swiper-slide的个数
slidesPerView
:
1
,
// 展示swiper-slide是否居中
centeredSlides
:
true
,
autoplay
:
{
delay
:
3000
,
disableOnInteraction
:
false
// 手动切换之后继续自动轮播
},
loop
:
true
// 显示分页
// pagination: {
// el: '.swiper-pagination',
// clickable: true // 允许分页点击跳转
// },
// 设置点击箭头
// navigation: {
// nextEl: '.swiper-button-next',
// prevEl: '.swiper-button-prev'
// }
}
}
},
components
:
{
swiper
},
created
()
{
this
.
initPage
()
},
methods
:
{
initPage
()
{
// 合并参数
Object
.
assign
(
this
.
swiperOption
,
this
.
options
)
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.swiper-container
{
position
:
relative
;
width
:
100%
;
height
:
100%
;
.swiper-slide
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
\ No newline at end of file
src/components/echarts/LineChart.vue
0 → 100644
View file @
32dc719f
<
template
>
<chart-el
:chartOpt=
"chartConf"
/>
</
template
>
<
script
>
import
mixinChart
from
'runner/common/mixins/mixinChart'
export
default
{
name
:
'LineChart'
,
mixins
:
[
mixinChart
],
data
()
{
return
{