Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-resource
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-resource
Commits
cccc4c3b
提交
cccc4c3b
authored
7月 07, 2022
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
b8b217e1
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
22 行增加
和
7 行删除
+22
-7
AppVideoPlayer.vue
src/components/base/AppVideoPlayer.vue
+8
-1
VideoPlayDialog.vue
...e/create/components/stepTwoComponents/VideoPlayDialog.vue
+11
-2
StepTwo.vue
src/modules/course/create/views/StepTwo.vue
+0
-1
Statistics.vue
src/modules/course/my/components/Statistics.vue
+1
-1
Statistics.vue
src/modules/resource/dashboard/components/Statistics.vue
+1
-1
ViewCenter.vue
src/modules/resource/video/components/ViewCenter.vue
+1
-1
没有找到文件。
src/components/base/AppVideoPlayer.vue
浏览文件 @
cccc4c3b
<
template
>
<
template
>
<div
ref=
"videoWrapper"
>
<div
ref=
"videoWrapper"
>
<
!--
<video
ref=
"videoPlayer"
class=
"video-js vjs-default-skin vjs-big-play-centered vjs-16-9"
id=
"videoJS"
></video>
--
>
<
video
v-if=
"isAdd"
ref=
"videoPlayer"
class=
"video-js vjs-default-skin vjs-big-play-centered vjs-16-9"
id=
"videoJS"
></video
>
</div>
</div>
</
template
>
</
template
>
...
@@ -17,6 +17,10 @@ const DEFAULT_OPTIONS = {
...
@@ -17,6 +17,10 @@ const DEFAULT_OPTIONS = {
export
default
{
export
default
{
name
:
'AppVideoPlayer'
,
name
:
'AppVideoPlayer'
,
props
:
{
props
:
{
isAdd
:
{
type
:
Boolean
,
default
:
false
},
options
:
{
options
:
{
type
:
Object
,
type
:
Object
,
default
()
{
default
()
{
...
@@ -51,6 +55,9 @@ export default {
...
@@ -51,6 +55,9 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
if
(
this
.
isAdd
)
{
this
.
initPlayer
()
}
this
.
player
&&
this
.
initPlayer
()
this
.
player
&&
this
.
initPlayer
()
},
},
beforeUnmount
()
{
beforeUnmount
()
{
...
...
src/modules/course/create/components/stepTwoComponents/VideoPlayDialog.vue
浏览文件 @
cccc4c3b
...
@@ -20,10 +20,19 @@ interface Emits {
...
@@ -20,10 +20,19 @@ interface Emits {
const
handleCancel
=
()
=>
{
const
handleCancel
=
()
=>
{
emit
(
'update:isShowVideoPlayDialog'
,
false
)
emit
(
'update:isShowVideoPlayDialog'
,
false
)
}
}
const
videoOptions
=
computed
(()
=>
{
return
{
sources
:
[
{
src
:
props
.
videoOptions
}
]
}
})
</
script
>
</
script
>
<
template
>
<
template
>
<el-dialog
:model-value=
"isShowVideoPlayDialog"
draggable
:before-close=
"handleCancel"
width=
"35%"
>
<el-dialog
:model-value=
"isShowVideoPlayDialog"
draggable
:before-close=
"handleCancel"
width=
"35%"
>
{{
props
.
videoOptions
}}
<AppVideoPlayer
:options=
"videoOptions"
:isAdd=
"true"
></AppVideoPlayer>
<AppVideoPlayer
:options=
"
{ sources: [{ src: props.videoOptions }] }">
</AppVideoPlayer>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
src/modules/course/create/views/StepTwo.vue
浏览文件 @
cccc4c3b
...
@@ -134,7 +134,6 @@ const handleConsult = (node: any) => {
...
@@ -134,7 +134,6 @@ const handleConsult = (node: any) => {
if
(
node
.
data
.
resource_type
===
'2'
)
{
if
(
node
.
data
.
resource_type
===
'2'
)
{
getVideoDetails
({
id
:
node
.
data
.
resource_id
}).
then
(
res
=>
{
getVideoDetails
({
id
:
node
.
data
.
resource_id
}).
then
(
res
=>
{
videoUrl
.
value
=
res
.
data
.
play_auth
.
play_info_list
.
filter
((
item
:
any
)
=>
item
.
Definition
===
'SD'
)[
0
].
PlayURL
videoUrl
.
value
=
res
.
data
.
play_auth
.
play_info_list
.
filter
((
item
:
any
)
=>
item
.
Definition
===
'SD'
)[
0
].
PlayURL
console
.
log
(
videoUrl
.
value
,
'videoUrl.value'
)
isShowVideoPlayDialog
.
value
=
true
isShowVideoPlayDialog
.
value
=
true
})
})
}
}
...
...
src/modules/course/my/components/Statistics.vue
浏览文件 @
cccc4c3b
...
@@ -62,7 +62,7 @@ const bytesToSize = (bytes: number) => {
...
@@ -62,7 +62,7 @@ const bytesToSize = (bytes: number) => {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
style
lang
=
"scss"
>
<
style
lang
=
"scss"
scoped
>
.
statistics
-
list
{
.
statistics
-
list
{
display
:
flex
;
display
:
flex
;
margin
-
top
:
-
20
px
;
margin
-
top
:
-
20
px
;
...
...
src/modules/resource/dashboard/components/Statistics.vue
浏览文件 @
cccc4c3b
...
@@ -37,7 +37,7 @@ const bytesToSize = (bytes: number) => {
...
@@ -37,7 +37,7 @@ const bytesToSize = (bytes: number) => {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
style
lang
=
"scss"
>
<
style
lang
=
"scss"
scoped
>
.
statistics
-
list
{
.
statistics
-
list
{
display
:
flex
;
display
:
flex
;
flex
-
wrap
:
wrap
;
flex
-
wrap
:
wrap
;
...
...
src/modules/resource/video/components/ViewCenter.vue
浏览文件 @
cccc4c3b
...
@@ -38,7 +38,7 @@ const videoOptions = $computed(() => {
...
@@ -38,7 +38,7 @@ const videoOptions = $computed(() => {
</div>
</div>
</div>
</div>
<div
style=
"max-width:1200px; padding-bottom: 20px; margin:0 auto;"
>
<div
style=
"max-width:1200px; padding-bottom: 20px; margin:0 auto;"
>
<AppVideoPlayer
:options=
"videoOptions"
></AppVideoPlayer>
<AppVideoPlayer
:
isAdd=
"true"
:
options=
"videoOptions"
></AppVideoPlayer>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论