Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
exhibition_page
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
exhibition_page
Commits
dfb9e560
提交
dfb9e560
authored
8月 02, 2022
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加布展中国风主题
上级
b2d3588e
全部展开
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
112 行增加
和
12 行删除
+112
-12
audio.png
src/assets/imgs/display/audio.png
+0
-0
bgm,.png
src/assets/imgs/display/bgm,.png
+0
-0
index.scss
src/assets/styles/index.scss
+5
-2
index.vue
src/components/Video/index.vue
+86
-2
main.js
src/main.js
+2
-2
index.js
src/utils/index.js
+19
-6
Detail.vue
src/views/display/Detail.vue
+0
-0
没有找到文件。
src/assets/imgs/display/audio.png
0 → 100644
浏览文件 @
dfb9e560
983 Bytes
src/assets/imgs/display/bgm,.png
deleted
100644 → 0
浏览文件 @
b2d3588e
4.2 KB
src/assets/styles/index.scss
浏览文件 @
dfb9e560
@import
url('@/assets/fonts/font.css')
;
@import
url('./animations.scss')
;
/**适应移动端 */
@media
screen
and
(
max-width
:
500px
)
{
...
...
@@ -34,6 +35,8 @@ li {
ul
,
li
{
list-style
:
none
;
padding
:
0
;
margin
:
0
;
}
//一些公共样式
...
...
@@ -61,7 +64,7 @@ li {
}
}
.content-wrapper
{
.content-wrapper
{
// width: 1200px;
width
:
100%
;
padding
:
0
13%
;
...
...
@@ -69,4 +72,3 @@ li {
flex-direction
:
column
;
align-items
:
center
;
}
\ No newline at end of file
src/components/Video/index.vue
浏览文件 @
dfb9e560
<
template
>
<video
:src=
"url"
class=
"video-wrapper"
controls
loop
></video>
<div
class=
"video-container"
@
click=
"hanleClick"
>
<video
:src=
"url"
class=
"video-dom"
ref=
"video"
></video>
<div
class=
"modal"
:style=
"
{ opacity: opacity }">
<div
class=
"play-btn"
>
<i
class=
"el-icon-caret-right"
></i>
</div>
<div
class=
"blur"
></div>
</div>
</div>
</
template
>
<
script
>
...
...
@@ -11,12 +19,87 @@ export default {
type
:
String
,
},
},
data
()
{
return
{
isPlaying
:
false
,
opacity
:
1
,
};
},
methods
:
{
// 播放视频
play
()
{
this
.
$refs
.
video
.
play
();
},
// 暂停视频
pause
()
{
this
.
$refs
.
video
.
pause
();
},
hanleClick
()
{
this
.
isPlaying
=
!
this
.
isPlaying
;
if
(
this
.
isPlaying
)
{
this
.
play
();
this
.
opacity
=
0
;
}
else
{
this
.
pause
();
this
.
opacity
=
1
;
}
},
},
};
</
script
>
<
style
scoped
lang=
'scss'
>
.video-wrapper
{
.video-container
{
position
:
relative
;
height
:
100%
;
.video-dom
{
height
:
auto
;
width
:
100%
;
}
.modal
{
width
:
100%
;
height
:
100%
;
background-color
:
rgba
(
$color
:
#000000
,
$alpha
:
0
.5
);
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
position
:
absolute
;
left
:
0
;
bottom
:
0
;
transition
:
all
0
.5s
ease
;
position
:
absolute
;
z-index
:
9
;
.play-btn
{
width
:
100px
;
height
:
70px
;
border
:
2px
solid
#892325
;
// background-color: #fff;
border-radius
:
20px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
color
:
#892325
;
position
:
absolute
;
z-index
:
1
;
i
{
font-size
:
50px
;
z-index
:
1
;
}
}
}
.blur
{
width
:
100px
;
height
:
70px
;
background-color
:
#fff
;
position
:
absolute
;
left
:
50%
;
bottom
:
50%
;
transform
:
translate
(
-50%
,
50%
);
filter
:
blur
(
26px
);
z-index
:
0
;
}
}
</
style
>
\ No newline at end of file
src/main.js
浏览文件 @
dfb9e560
...
...
@@ -15,7 +15,7 @@ import {
WOW
}
from
'wowjs'
import
{
get
Tota
lUrl
get
Ful
lUrl
}
from
'@/utils/index'
// import '@/rem'
...
...
@@ -38,7 +38,7 @@ Vue.prototype.$wow = new WOW({
}
})
Vue
.
prototype
.
$getFullUrl
=
get
Tota
lUrl
Vue
.
prototype
.
$getFullUrl
=
get
Ful
lUrl
new
Vue
({
router
,
store
,
...
...
src/utils/index.js
浏览文件 @
dfb9e560
...
...
@@ -22,16 +22,12 @@ export function debounce(func, wait, immediate = true) {
}
}
// 获取完整的url,根据环境进行配置
export
function
get
Tota
lUrl
(
url
)
{
export
function
get
Ful
lUrl
(
url
)
{
if
(
url
)
{
let
fullUrl
=
''
let
urlArr
=
url
.
split
(
'files'
)
// if (process.env.NODE_ENV == 'development') {
// fullUrl = url
// } else {
// fullUrl = '/files' + urlArr[1]
// }
fullUrl
=
'/files'
+
urlArr
[
1
]
return
fullUrl
}
else
{
...
...
@@ -39,3 +35,19 @@ export function getTotalUrl(url) {
}
}
/**
* 预览文件
* @param href 预览地址
* @param previewName 预览文件用户看到的名称
*/
export
function
previewFile
(
href
,
previewName
)
{
let
a
=
document
.
createElement
(
"a"
);
a
.
href
=
href
;
a
.
target
=
'_blank'
a
.
download
=
previewName
;
a
.
style
.
display
=
"none"
;
document
.
body
.
appendChild
(
a
);
a
.
click
();
a
.
remove
();
}
\ No newline at end of file
src/views/display/Detail.vue
浏览文件 @
dfb9e560
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论