Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-fdc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-fdc
Commits
b8db9b6c
提交
b8db9b6c
authored
1月 20, 2022
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:修改bug
上级
349cea5c
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
4 行删除
+14
-4
aside.vue
src/components/layout/aside.vue
+1
-1
CourseChapter.vue
src/modules/course/learn/components/CourseChapter.vue
+12
-1
Index.vue
src/modules/course/learn/views/Index.vue
+0
-1
index.js
src/router/index.js
+1
-1
没有找到文件。
src/components/layout/aside.vue
浏览文件 @
b8db9b6c
...
@@ -209,7 +209,7 @@ export default {
...
@@ -209,7 +209,7 @@ export default {
.el-submenu__title
{
.el-submenu__title
{
height
:
50px
;
height
:
50px
;
line-height
:
50px
;
line-height
:
50px
;
padding-left
:
25px
!
important
;
//
padding-left: 25px !important;
}
}
.el-menu-item
:hover
,
.el-menu-item
:hover
,
.el-menu-item
:focus
{
.el-menu-item
:focus
{
...
...
src/modules/course/learn/components/CourseChapter.vue
浏览文件 @
b8db9b6c
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<div
class=
"name"
>
{{
subItem
.
name
}}
</div>
<div
class=
"name"
>
{{
subItem
.
name
}}
</div>
<div
class=
"duration"
>
{{
subItem
.
duration
}}
</div>
<div
class=
"duration"
>
{{
subItem
.
duration
}}
</div>
<div
class=
"progress"
v-if=
"showProgress && subItem.type === 2"
>
<div
class=
"progress"
v-if=
"showProgress && subItem.type === 2"
>
{{
progressText
(
subItem
.
video_progress
)
}}
{{
formatDuration
(
subItem
.
video
.
video_length
)
}}
</div>
</div>
<div
class=
"buttons"
v-if=
"subItem.type === 9"
>
<div
class=
"buttons"
v-if=
"subItem.type === 9"
>
<el-button
round
size=
"mini"
v-if=
"subItem.status === 100"
@
click=
"toExamPage(subItem, 1)"
>
<el-button
round
size=
"mini"
v-if=
"subItem.status === 100"
@
click=
"toExamPage(subItem, 1)"
>
...
@@ -85,6 +85,17 @@ export default {
...
@@ -85,6 +85,17 @@ export default {
},
},
handleDownload
(
item
)
{
handleDownload
(
item
)
{
window
.
location
.
href
=
item
.
file_url
window
.
location
.
href
=
item
.
file_url
},
formatDuration
(
duration
)
{
const
h
=
Math
.
floor
(
duration
/
3600
)
const
m
=
Math
.
floor
((
duration
-
h
*
3600
)
/
60
)
const
s
=
(
duration
-
h
*
3600
-
m
*
60
)
%
60
function
tenify
(
a
)
{
return
a
>=
10
?
a
:
'0'
+
a
}
const
to
=
{
h
:
tenify
(
h
),
m
:
tenify
(
m
),
s
:
tenify
(
s
)
}
const
format
=
'h:m:s'
return
format
.
replace
(
/h|m|s/g
,
k
=>
to
[
k
]).
replace
(
/^00:/
,
''
)
}
}
}
}
}
}
...
...
src/modules/course/learn/views/Index.vue
浏览文件 @
b8db9b6c
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
*
as
api
from
'@/api/course.js'
import
CourseList
from
'@/components/CourseList.vue'
import
CourseList
from
'@/components/CourseList.vue'
export
default
{
export
default
{
...
...
src/router/index.js
浏览文件 @
b8db9b6c
...
@@ -11,7 +11,7 @@ VueRouter.prototype.push = function push(location, onResolve, onReject) {
...
@@ -11,7 +11,7 @@ VueRouter.prototype.push = function push(location, onResolve, onReject) {
const
routes
=
[
const
routes
=
[
{
path
:
'*'
,
redirect
:
'/index'
},
{
path
:
'*'
,
redirect
:
'/index'
},
{
path
:
'/'
,
redirect
:
'/
course/learn
'
}
{
path
:
'/'
,
redirect
:
'/
notice
'
}
]
]
const
router
=
new
VueRouter
({
const
router
=
new
VueRouter
({
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论