Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-pc
Commits
9b353509
提交
9b353509
authored
2月 22, 2022
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改活动效果
上级
e01ca946
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
95 行增加
和
12 行删除
+95
-12
Video.vue
components/home/Video.vue
+92
-9
en-US.js
langs/en-US.js
+1
-1
zh-CN.js
langs/zh-CN.js
+1
-1
dataDownload.vue
pages/dataDownload/dataDownload.vue
+1
-1
没有找到文件。
components/home/Video.vue
浏览文件 @
9b353509
<
template
>
<
template
>
<div
class=
"video-wrapper"
:class=
"className"
>
<div
class=
"video-wrapper"
:class=
"className"
>
<div
class=
"content"
@
mouseenter=
"handleMouseEnter"
@
mouseleave=
"showType = ''"
@
mousemove=
"handleMouseEnter"
@
click=
"handleClick"
ref=
"target"
:style=
"
{ color: activeColor, cursor: mouseCursor }">
<div
class=
"content"
@
mouseenter=
"handleMouseEnter"
@
mouseleave=
"showType = ''"
@
mousemove=
"handleMouseEnter"
@
click=
"handleClick"
ref=
"target"
:style=
"
{ color: activeColor, cursor: mouseCursor }">
<ul
class=
"video-list"
>
<
!--
<
ul
class=
"video-list"
>
<li
class=
"video-item"
v-for=
"(item, index) in list"
:key=
"index"
>
<li
class=
"video-item"
v-for=
"(item, index) in list"
:key=
"index"
>
<div
class=
"video-poster"
>
<div
class=
"video-poster"
>
<img
:src=
"item.poster"
/>
<img
:src=
"item.poster"
/>
...
@@ -12,7 +12,22 @@
...
@@ -12,7 +12,22 @@
<div
class=
"video-desc"
>
{{
item
.
desc
}}
</div>
<div
class=
"video-desc"
>
{{
item
.
desc
}}
</div>
</div>
</div>
</li>
</li>
</ul>
</ul>
-->
<div
v-swiper:mySwiper=
"swiperOption"
ref=
"mySwiper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-slide"
v-for=
"(item, index) in list"
:key=
"index"
>
<div
class=
"item-media"
>
<img
:src=
"item.poster"
>
<div
class=
"video-play"
@
click=
"open(item)"
@
mouseenter
.
stop=
"handleVideoMouseEnter"
@
mousemove
.
stop=
"handleVideoMouseEnter"
></div>
</div>
<div
class=
"item-text"
>
<div
class=
"item-text-tit"
>
{{
item
.
title
}}
</div>
<div
class=
"item-text-desc"
>
{{
item
.
desc
}}
</div>
</div>
</div>
</div>
<div
class=
"swiper-pagination swiper-pagination-bullets"
></div>
</div>
<!--
<div
v-if=
"showType === 'left' && showIndex > 0"
class=
"video-btn video-prev"
@
click=
"handlePrev"
></div>
<!--
<div
v-if=
"showType === 'left' && showIndex > 0"
class=
"video-btn video-prev"
@
click=
"handlePrev"
></div>
<div
v-if=
"showType === 'right' && showIndex
<
list
.
length
-
1
"
class=
"video-btn video-next"
@
click=
"handleNext"
></div>
-->
<div
v-if=
"showType === 'right' && showIndex
<
list
.
length
-
1
"
class=
"video-btn video-next"
@
click=
"handleNext"
></div>
-->
</div>
</div>
...
@@ -45,8 +60,8 @@ export default {
...
@@ -45,8 +60,8 @@ export default {
poster
:
'https://webapp-pub.ezijing.com/project/marywood-plus/video_poster2.png'
poster
:
'https://webapp-pub.ezijing.com/project/marywood-plus/video_poster2.png'
},
},
{
{
title
:
'玛丽伍德介绍'
,
title
:
'玛丽伍德
大学
介绍'
,
desc
:
'The Introduction of Marywood Univer
is
ty'
,
desc
:
'The Introduction of Marywood Univer
si
ty'
,
src
:
'https://webapp-pub.ezijing.com/project/marywood/marywood.mp4'
,
src
:
'https://webapp-pub.ezijing.com/project/marywood/marywood.mp4'
,
poster
:
'https://webapp-pub.ezijing.com/project/marywood-plus/video_poster.png'
poster
:
'https://webapp-pub.ezijing.com/project/marywood-plus/video_poster.png'
}
}
...
@@ -55,7 +70,14 @@ export default {
...
@@ -55,7 +70,14 @@ export default {
playVideo
:
{},
playVideo
:
{},
showType
:
''
,
showType
:
''
,
showIndex
:
0
,
showIndex
:
0
,
mouseCursor
:
'pointer'
mouseCursor
:
'pointer'
,
swiperOption
:
{
speed
:
400
,
autoplay
:
false
,
delay
:
3000
,
loop
:
false
,
height
:
500
}
}
}
},
},
computed
:
{
computed
:
{
...
@@ -100,9 +122,10 @@ export default {
...
@@ -100,9 +122,10 @@ export default {
},
},
handlePrev
()
{
handlePrev
()
{
// 末尾的视频放到前面
// 末尾的视频放到前面
const
deleteVideo
=
this
.
list
.
splice
(
this
.
list
.
length
-
1
,
1
)
//
const deleteVideo = this.list.splice(this.list.length - 1, 1)
this
.
list
.
unshift
(
deleteVideo
[
0
])
//
this.list.unshift(deleteVideo[0])
this
.
showIndex
--
this
.
showIndex
--
this
.
$refs
.
mySwiper
.
swiper
.
slideTo
(
this
.
showIndex
)
if
(
this
.
showIndex
===
0
)
{
if
(
this
.
showIndex
===
0
)
{
this
.
mouseCursor
=
'default'
this
.
mouseCursor
=
'default'
this
.
showType
=
''
this
.
showType
=
''
...
@@ -110,9 +133,10 @@ export default {
...
@@ -110,9 +133,10 @@ export default {
},
},
handleNext
()
{
handleNext
()
{
// 第一个视频放到最后
// 第一个视频放到最后
const
deleteVideo
=
this
.
list
.
splice
(
0
,
1
)
//
const deleteVideo = this.list.splice(0, 1)
this
.
list
=
this
.
list
.
concat
(
deleteVideo
)
//
this.list = this.list.concat(deleteVideo)
this
.
showIndex
++
this
.
showIndex
++
this
.
$refs
.
mySwiper
.
swiper
.
slideTo
(
this
.
showIndex
)
if
(
this
.
showIndex
===
this
.
list
.
length
-
1
)
{
if
(
this
.
showIndex
===
this
.
list
.
length
-
1
)
{
this
.
mouseCursor
=
'default'
this
.
mouseCursor
=
'default'
this
.
showType
=
''
this
.
showType
=
''
...
@@ -147,6 +171,7 @@ export default {
...
@@ -147,6 +171,7 @@ export default {
max-width
:
1200px
;
max-width
:
1200px
;
margin
:
0
auto
;
margin
:
0
auto
;
position
:
relative
;
position
:
relative
;
padding
:
65px
0
;
}
}
.video-list
{
.video-list
{
display
:
flex
;
display
:
flex
;
...
@@ -239,6 +264,64 @@ export default {
...
@@ -239,6 +264,64 @@ export default {
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
z-index
:
10000
;
z-index
:
10000
;
}
}
.swiper-container
{
height
:
550px
;
overflow
:unset
;
.swiper-wrapper
{
width
:
1300px
;
}
.swiper-slide
{
width
:
1200px
!
important
;
position
:relative
;
display
:flex
;
align-items
:
center
;
.item-media
{
width
:
550px
;
height
:
550px
;
position
:relative
;
img
{
width
:
100%
;
height
:
100%
;
}
.video-play
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
width
:
79px
;
height
:
79px
;
background
:
url(https://webapp-pub.ezijing.com/project/marywood-plus/icon_play.png)
no-repeat
center
center
;
background-size
:
contain
;
transform
:
translate
(
-50%
,
-50%
);
cursor
:
pointer
;
z-index
:
2200
;
}
}
.item-text
{
color
:
#fff
;
padding
:
0
50px
;
.item-text-tit
{
font-size
:
36px
;
line-height
:
60px
;
}
.item-text-desc
{
font-size
:
20px
;
}
}
&
:after
{
content
:
""
;
display
:
block
;
width
:
100%
;
height
:
100%
;
position
:
absolute
;
top
:
0
;
left
:
0
;
background
:
rgba
(
0
,
0
,
0
,.
6
);
}
&
.swiper-slide-active
:after
{
display
:none
;
}
}
}
}
}
.is-h5
{
.is-h5
{
.overlay
{
.overlay
{
...
...
langs/en-US.js
浏览文件 @
9b353509
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
},
},
// 底部
// 底部
foot
:
{
foot
:
{
address
:
'地 址:北京市海淀区中关村东路1号院清华科技园7号楼5层'
,
address
:
'地 址:北京市海淀区中关村东路1号院清华科技园7号楼
威盛大厦
5层'
,
contact
:
'联系电话:010-62798073'
,
contact
:
'联系电话:010-62798073'
,
email
:
'邮 箱:service@ezijing.com'
,
email
:
'邮 箱:service@ezijing.com'
,
link1
:
'中国教育部'
,
link1
:
'中国教育部'
,
...
...
langs/zh-CN.js
浏览文件 @
9b353509
...
@@ -110,7 +110,7 @@ export default {
...
@@ -110,7 +110,7 @@ export default {
},
},
// 底部
// 底部
foot
:
{
foot
:
{
address
:
'地 址:北京市海淀区中关村东路1号院清华科技园7号楼5层'
,
address
:
'地 址:北京市海淀区中关村东路1号院清华科技园7号楼
威盛大厦
5层'
,
contact
:
'联系电话:010-62798073'
,
contact
:
'联系电话:010-62798073'
,
email
:
'邮 箱:service@ezijing.com'
,
email
:
'邮 箱:service@ezijing.com'
,
link1
:
'中国教育部'
,
link1
:
'中国教育部'
,
...
...
pages/dataDownload/dataDownload.vue
浏览文件 @
9b353509
...
@@ -33,7 +33,7 @@ export default {
...
@@ -33,7 +33,7 @@ export default {
fileList
:
[
fileList
:
[
{
{
name
:
'招生简章'
,
name
:
'招生简章'
,
url
:
'https://webapp-pub.ezijing.com/project/marywood/%E6%8B%9B%E7%94%9F%E7%AE%80%E7%AB%A0.pdf?v=2'
,
url
:
'https://webapp-pub.ezijing.com/project/marywood
-plus
/%E6%8B%9B%E7%94%9F%E7%AE%80%E7%AB%A0.pdf?v=2'
,
icon
:
'https://webapp-pub.ezijing.com/project/marywood/pdf.png'
icon
:
'https://webapp-pub.ezijing.com/project/marywood/pdf.png'
},
},
{
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论