Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
dcb2c16f
提交
dcb2c16f
authored
10月 20, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
直播状态修改
上级
a07bd999
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
chapterLive.vue
src/modules/viewer/components/live/chapterLive.vue
+1
-1
courseDetail.vue
src/pages/learn/courseDetail.vue
+2
-2
list.vue
src/pages/mobile/list.vue
+2
-2
没有找到文件。
src/modules/viewer/components/live/chapterLive.vue
浏览文件 @
dcb2c16f
...
@@ -48,7 +48,7 @@ export default {
...
@@ -48,7 +48,7 @@ export default {
},
},
// 是否直播结束
// 是否直播结束
isLiveEnd
()
{
isLiveEnd
()
{
return
this
.
live
.
live_status
===
2
return
this
.
live
.
live_status
===
3
},
},
// 是否有回放
// 是否有回放
hasRecord
()
{
hasRecord
()
{
...
...
src/pages/learn/courseDetail.vue
浏览文件 @
dcb2c16f
...
@@ -463,7 +463,7 @@ export default {
...
@@ -463,7 +463,7 @@ export default {
cAction
.
Player
.
getChapterList
(
cid
,
sid
,
_id
).
then
(
json
=>
{
cAction
.
Player
.
getChapterList
(
cid
,
sid
,
_id
).
then
(
json
=>
{
this
.
live
=
(
json
.
curJson
&&
json
.
curJson
.
live
)
||
{}
this
.
live
=
(
json
.
curJson
&&
json
.
curJson
.
live
)
||
{}
if
(
this
.
live
.
id
)
{
if
(
this
.
live
.
id
)
{
if
(
this
.
live
.
live_status
===
2
&&
this
.
live
.
enable_record
&&
this
.
live
.
record_url
)
{
if
(
this
.
live
.
live_status
===
3
&&
this
.
live
.
enable_record
&&
this
.
live
.
record_url
)
{
this
.
live
.
url
=
this
.
live
.
record_url
this
.
live
.
url
=
this
.
live
.
record_url
}
else
{
}
else
{
this
.
live
.
viewer_name
=
window
.
G
.
UserInfo
.
student_info
.
personal_name
||
window
.
G
.
UserInfo
.
nickname
this
.
live
.
viewer_name
=
window
.
G
.
UserInfo
.
student_info
.
personal_name
||
window
.
G
.
UserInfo
.
nickname
...
@@ -513,7 +513,7 @@ export default {
...
@@ -513,7 +513,7 @@ export default {
if
(
type
===
5
)
{
if
(
type
===
5
)
{
const
live
=
data
.
live
const
live
=
data
.
live
const
status
=
live
.
live_status
const
status
=
live
.
live_status
if
(
status
===
2
&&
!
live
.
enable_record
)
{
if
(
status
===
3
&&
!
live
.
enable_record
)
{
this
.
$message
.
error
(
live
.
statusStr
)
this
.
$message
.
error
(
live
.
statusStr
)
return
return
}
}
...
...
src/pages/mobile/list.vue
浏览文件 @
dcb2c16f
...
@@ -123,7 +123,7 @@ export default {
...
@@ -123,7 +123,7 @@ export default {
data
.
live_status
=
parseInt
(
data
.
live_status
)
data
.
live_status
=
parseInt
(
data
.
live_status
)
const
{
live_status
:
liveStatus
,
type
:
liveType
=
5
,
start_time
:
liveTime
}
=
data
const
{
live_status
:
liveStatus
,
type
:
liveType
=
5
,
start_time
:
liveTime
}
=
data
let
message
=
this
.
calcTimeText
(
liveTime
,
liveStatus
)
let
message
=
this
.
calcTimeText
(
liveTime
,
liveStatus
)
if
(
liveStatus
===
2
&&
!
data
.
enable_record
)
{
if
(
liveStatus
===
3
&&
!
data
.
enable_record
)
{
message
=
this
.
$t
(
'live.noPlayback'
)
message
=
this
.
$t
(
'live.noPlayback'
)
this
.
message
&&
this
.
message
.
close
()
this
.
message
&&
this
.
message
.
close
()
this
.
message
=
this
.
$message
({
type
:
'warning'
,
offset
:
0
,
message
}
)
this
.
message
=
this
.
$message
({
type
:
'warning'
,
offset
:
0
,
message
}
)
...
@@ -172,7 +172,7 @@ export default {
...
@@ -172,7 +172,7 @@ export default {
// https://doc.bokecc.com/live/Appendix_1.html
// https://doc.bokecc.com/live/Appendix_1.html
const
liveStatus
=
data
.
live_status
const
liveStatus
=
data
.
live_status
data
.
user_name
=
data
.
user_name
||
this
.
nickName
data
.
user_name
=
data
.
user_name
||
this
.
nickName
if
(
liveStatus
===
2
&&
data
.
enable_record
===
1
)
{
if
(
liveStatus
===
3
&&
data
.
enable_record
===
1
)
{
// enable_record 0:不启用回放 1:开启回放
// enable_record 0:不启用回放 1:开启回放
// 查看回放
// 查看回放
// const url = `https://view.csslcloud.net/api/view/callback?recordid=$
{
data
.
record_id
}
&
roomid
=
$
{
data
.
room_id
}
&
userid
=
$
{
data
.
account_id
}
&
autoLogin
=
true
&
viewername
=
$
{
data
.
user_name
}
&
viewertoken
=
$
{
data
.
play_pass
}
`
// const url = `https://view.csslcloud.net/api/view/callback?recordid=$
{
data
.
record_id
}
&
roomid
=
$
{
data
.
room_id
}
&
userid
=
$
{
data
.
account_id
}
&
autoLogin
=
true
&
viewername
=
$
{
data
.
user_name
}
&
viewertoken
=
$
{
data
.
play_pass
}
`
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论