Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
eb479796
提交
eb479796
authored
4月 26, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
bda57728
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
18 行删除
+15
-18
CourseAction.js
client/src/action/CourseAction.js
+1
-0
courseDetail.vue
client/src/pages/learn/courseDetail.vue
+5
-10
list.vue
client/src/pages/mobileLive/list.vue
+5
-4
live.vue
client/src/pages/player/live/live.vue
+4
-4
没有找到文件。
client/src/action/CourseAction.js
浏览文件 @
eb479796
...
...
@@ -111,6 +111,7 @@ export default class CourseAction extends BaseACTION {
currentVideoProvider
:
cur
.
latest_play_type
||
'1'
,
course
:
cur
.
chapters
.
map
((
_
,
i
)
=>
{
return
{
id
:
_
.
id
,
title
:
_
.
name
,
isUp
:
true
,
chapters
:
_
.
children
.
map
((
__
,
j
)
=>
{
...
...
client/src/pages/learn/courseDetail.vue
浏览文件 @
eb479796
...
...
@@ -527,17 +527,12 @@ export default {
},
updatePages
()
{
cAction
.
Course
.
getCourseDetail
(
this
.
cid
,
this
.
sid
).
then
(
json
=>
{
// this.tabs[1].chapterList = json.tabs1ChapterList
/* 更新直播状态 */
const
course
=
json
.
tabs1ChapterList
.
course
for
(
let
i
=
0
;
i
<
course
.
length
;
i
++
)
{
const
chapters
=
course
[
i
].
chapters
for
(
let
j
=
0
;
j
<
chapters
.
length
;
j
++
)
{
if
(
chapters
[
j
].
type
===
5
)
{
this
.
tabs
[
1
].
chapterList
.
course
[
i
].
chapters
[
j
].
live
=
chapters
[
j
].
live
}
}
}
this
.
tabs
[
1
].
chapterList
.
course
=
json
.
tabs1ChapterList
.
course
.
map
(
item
=>
{
const
found
=
this
.
tabs
[
1
].
chapterList
.
course
.
find
(
rawItem
=>
rawItem
.
id
===
item
.
id
)
item
.
isUp
=
found
?
found
.
isUp
:
item
.
isUp
return
item
})
})
// 暂不处理,新增章节不能实时更新,需要手动刷新
// .catch(e => { this.$message.error(e.message) }).finally(() => { })
...
...
client/src/pages/mobileLive/list.vue
浏览文件 @
eb479796
...
...
@@ -98,9 +98,10 @@ export default {
this
.
dataList
=
response
.
data
}
}
)
.
catch
(
e
=>
{
this
.
$message
.
error
(
e
.
message
)
}
)
// 取消报错提醒
// .catch(e =>
{
// this.$message.error(e.message)
//
}
)
.
finally
(()
=>
{
if
(
this
.
loading
)
{
this
.
loading
.
close
()
...
...
@@ -262,7 +263,7 @@ export default {
this
.
timer
=
setInterval
(()
=>
{
this
.
getNewLiveMsg
()
this
.
getLiveList
()
}
,
3
000
)
}
,
10
000
)
}
,
beforeDestroy
()
{
this
.
timer
&&
clearInterval
(
this
.
timer
)
...
...
client/src/pages/player/live/live.vue
浏览文件 @
eb479796
...
...
@@ -50,10 +50,6 @@ export default {
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
cAction
.
Player
.
getChapterList
(
this
.
cid
,
this
.
sid
,
this
.
id
).
then
(
json
=>
{
this
.
live
=
(
json
.
curJson
&&
json
.
curJson
.
live
)
||
{}
if
(
this
.
live
.
id
)
{
if
(
this
.
live
.
record_id
&&
this
.
live
.
live_status
===
103
)
{
this
.
live
.
url
=
'https://view.csslcloud.net/api/view/callback?recordid='
+
this
.
live
.
record_id
+
'&roomid='
+
this
.
live
.
room_id
+
'&userid='
+
this
.
live
.
user_id
+
'&autoLogin=true&viewername='
+
this
.
live
.
viewer_name
+
'&viewertoken='
+
this
.
live
.
viewer_token
// + '&groupid=xxx'
}
else
{
this
.
$emit
(
'changeSideBar'
,
''
)
setTimeout
(()
=>
{
if
(
window
.
document
.
getElementById
(
'switch-btn'
))
{
...
...
@@ -62,6 +58,10 @@ export default {
window
.
document
.
getElementById
(
'sys-callback'
).
style
.
display
=
'block'
}
},
1000
)
if
(
this
.
live
.
id
)
{
if
(
this
.
live
.
record_id
&&
this
.
live
.
live_status
===
103
)
{
this
.
live
.
url
=
'https://view.csslcloud.net/api/view/callback?recordid='
+
this
.
live
.
record_id
+
'&roomid='
+
this
.
live
.
room_id
+
'&userid='
+
this
.
live
.
user_id
+
'&autoLogin=true&viewername='
+
this
.
live
.
viewer_name
+
'&viewertoken='
+
this
.
live
.
viewer_token
// + '&groupid=xxx'
}
else
{
this
.
live
.
viewer_name
=
window
.
G
.
UserInfo
.
student_info
.
personal_name
||
window
.
G
.
UserInfo
.
nickname
this
.
live
.
url
=
'https://view.csslcloud.net/api/view/index?roomid='
+
this
.
live
.
room_id
+
'&userid='
+
this
.
live
.
user_id
+
'&autoLogin=true&viewername='
+
this
.
live
.
viewer_name
+
'&viewertoken='
+
this
.
live
.
viewer_token
// + '&groupid=xxx'
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论