Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
08b394b7
提交
08b394b7
authored
7月 15, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 移除toast
上级
c78c9ef6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
35 行增加
和
95 行删除
+35
-95
index.vue
src/pages/course/learn/index.vue
+2
-12
item.vue
src/pages/course/learn/item.vue
+12
-22
index.vue
src/pages/course/tag/index.vue
+11
-21
item.vue
src/pages/course/tag/item.vue
+4
-14
list.vue
src/pages/course/tag/list.vue
+4
-14
index.vue
src/pages/home/index.vue
+2
-12
没有找到文件。
src/pages/course/learn/index.vue
浏览文件 @
08b394b7
...
...
@@ -21,19 +21,9 @@ export default {
},
methods
:
{
getCourseList
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
api
.
getCourseList
().
then
(
response
=>
{
this
.
courseList
=
response
})
api
.
getCourseList
()
.
then
(
response
=>
{
this
.
courseList
=
response
})
.
finally
(()
=>
{
this
.
$toast
.
clear
()
})
}
},
beforeMount
()
{
...
...
src/pages/course/learn/item.vue
浏览文件 @
08b394b7
...
...
@@ -39,30 +39,20 @@ export default {
methods
:
{
// 课程学习
getCourse
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
this
.
loaded
=
false
api
.
getCourse
(
this
.
courseId
)
.
then
(
response
=>
{
this
.
loaded
=
true
response
.
chapters
=
response
.
chapters
.
filter
(
item
=>
{
item
.
children
=
item
.
children
.
filter
(
child
=>
child
.
type
===
2
&&
child
.
resource_id
&&
child
.
resource_id
!==
'6684350363920760832'
)
return
item
.
children
.
length
})
this
.
detail
=
response
})
.
finally
(()
=>
{
this
.
$toast
.
clear
()
api
.
getCourse
(
this
.
courseId
).
then
(
response
=>
{
this
.
loaded
=
true
response
.
chapters
=
response
.
chapters
.
filter
(
item
=>
{
item
.
children
=
item
.
children
.
filter
(
child
=>
child
.
type
===
2
&&
child
.
resource_id
&&
child
.
resource_id
!==
'6684350363920760832'
)
return
item
.
children
.
length
})
this
.
detail
=
response
})
}
},
beforeMount
()
{
...
...
src/pages/course/tag/index.vue
浏览文件 @
08b394b7
...
...
@@ -61,28 +61,18 @@ export default {
methods
:
{
// 获取知识点列表
getCourseTagList
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
api
.
getCourseTagList
(
this
.
courseId
)
.
then
(
response
=>
{
this
.
$emit
(
'ready'
,
response
)
this
.
detail
=
response
this
.
messageList
=
response
.
chapters
.
map
((
item
,
index
)
=>
{
return
{
id
:
this
.
genId
(
index
),
type
:
1
,
from
:
'system'
,
payload
:
item
}
})
})
.
finally
(()
=>
{
this
.
$toast
.
clear
()
api
.
getCourseTagList
(
this
.
courseId
).
then
(
response
=>
{
this
.
$emit
(
'ready'
,
response
)
this
.
detail
=
response
this
.
messageList
=
response
.
chapters
.
map
((
item
,
index
)
=>
{
return
{
id
:
this
.
genId
(
index
),
type
:
1
,
from
:
'system'
,
payload
:
item
}
})
})
},
// 输入搜索
onSearch
()
{
...
...
src/pages/course/tag/item.vue
浏览文件 @
08b394b7
...
...
@@ -57,21 +57,11 @@ export default {
methods
:
{
// 获取知识点详情
getCourseTag
(
tagId
)
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
this
.
loaded
=
false
api
.
getCourseTag
(
tagId
||
this
.
tagId
)
.
then
(
response
=>
{
this
.
loaded
=
true
this
.
detail
=
response
})
.
finally
(()
=>
{
this
.
$toast
.
clear
()
})
api
.
getCourseTag
(
tagId
||
this
.
tagId
).
then
(
response
=>
{
this
.
loaded
=
true
this
.
detail
=
response
})
},
// 去知识点考试页面
toExamPage
()
{
...
...
src/pages/course/tag/list.vue
浏览文件 @
08b394b7
...
...
@@ -57,21 +57,11 @@ export default {
methods
:
{
// 获取知识点列表
getCourseTagList
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
this
.
loaded
=
false
api
.
getCourseTagList
(
this
.
courseId
)
.
then
(
response
=>
{
this
.
loaded
=
true
this
.
detail
=
response
})
.
finally
(()
=>
{
this
.
$toast
.
clear
()
})
api
.
getCourseTagList
(
this
.
courseId
).
then
(
response
=>
{
this
.
loaded
=
true
this
.
detail
=
response
})
},
onClick
({
id
})
{
const
path
=
`/exam/answer?type=2&tag_id=
${
id
}
&papersUrl=zy/v2/examination/course-papers`
...
...
src/pages/home/index.vue
浏览文件 @
08b394b7
...
...
@@ -75,19 +75,9 @@ export default {
methods
:
{
// 获取课程试听列表
getCourseList
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
api
.
getFreeCourseList
().
then
(
response
=>
{
this
.
courseList
=
response
})
api
.
getFreeCourseList
()
.
then
(
response
=>
{
this
.
courseList
=
response
})
.
finally
(()
=>
{
this
.
$toast
.
clear
()
})
},
// 搜索
toSearch
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论