Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
f3f002e6
提交
f3f002e6
authored
7月 06, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
f9dab7db
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
67 行增加
和
8 行删除
+67
-8
index.vue
src/pages/course/learn/index.vue
+6
-0
item.vue
src/pages/course/learn/item.vue
+19
-7
courseTagMessage.vue
src/pages/course/tag/courseTagMessage.vue
+5
-1
index.vue
src/pages/course/tag/index.vue
+7
-0
item.vue
src/pages/course/tag/item.vue
+6
-0
list.vue
src/pages/course/tag/list.vue
+18
-0
index.vue
src/pages/home/index.vue
+6
-0
没有找到文件。
src/pages/course/learn/index.vue
浏览文件 @
f3f002e6
...
...
@@ -21,8 +21,14 @@ export default {
},
methods
:
{
getCourseList
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
api
.
getCourseList
().
then
(
response
=>
{
this
.
courseList
=
response
this
.
$toast
.
clear
()
})
}
},
...
...
src/pages/course/learn/item.vue
浏览文件 @
f3f002e6
...
...
@@ -5,7 +5,6 @@
class=
"main-tabs"
v-model=
"tabActive"
color=
"#2b7ce9"
:sticky=
"true"
:line-height=
"2"
@
click=
"onTabClick"
>
...
...
@@ -13,10 +12,9 @@
<course-chapter
:courseId=
"courseId"
:data=
"detail.chapters"
></course-chapter>
</van-tab>
<van-tab
title=
"知识点速学"
name=
"1"
>
<course-tag
:courseId=
"courseId"
style=
"margin-left:-0.4rem;margin-right:-0.4rem;min-height:100vh;background:#eee;"
></course-tag>
<div
class=
"tab-content"
>
<course-tag
:courseId=
"courseId"
></course-tag>
</div>
</van-tab>
</van-tabs>
</div>
...
...
@@ -42,7 +40,7 @@ export default {
$route
:
{
immediate
:
true
,
handler
(
route
)
{
this
.
tabActive
=
route
.
query
.
tab
||
'
1
'
this
.
tabActive
=
route
.
query
.
tab
||
'
0
'
}
}
},
...
...
@@ -57,12 +55,19 @@ export default {
},
// 课程学习
getCourse
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
api
.
getCourse
(
this
.
courseId
).
then
(
response
=>
{
response
.
chapters
=
response
.
chapters
.
filter
(
item
=>
{
item
.
children
=
item
.
children
.
filter
(
child
=>
child
.
type
===
2
)
return
item
.
children
.
length
})
this
.
detail
=
response
this
.
$toast
.
clear
()
})
}
},
...
...
@@ -77,6 +82,13 @@ export default {
font-size
:
15px
;
font-weight
:
600
;
color
:
#222
;
padding
:
20px
0
10px
;
padding
:
20px
20px
10px
;
}
.tab-content
{
margin-left
:
-0
.4rem
;
margin-right
:
-0
.4rem
;
min-height
:
100vh
;
background
:
#eee
;
padding
:
0
.4rem
;
}
</
style
>
src/pages/course/tag/courseTagMessage.vue
浏览文件 @
f3f002e6
...
...
@@ -69,7 +69,11 @@ export default {
viewMore
()
{
this
.
$router
.
push
({
name
:
'courseTag'
,
params
:
{
courseId
:
this
.
courseId
,
chapterId
:
this
.
data
.
id
}
params
:
{
courseId
:
this
.
courseId
,
chapterId
:
this
.
data
.
id
},
query
:
{
is_test
:
this
.
isTest
?
'1'
:
'0'
}
})
}
},
...
...
src/pages/course/tag/index.vue
浏览文件 @
f3f002e6
...
...
@@ -60,6 +60,11 @@ 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
...
...
@@ -71,6 +76,7 @@ export default {
payload
:
item
}
})
this
.
$toast
.
clear
()
})
},
// 输入搜索
...
...
@@ -152,6 +158,7 @@ export default {
}
.send
{
height
:
50px
;
padding-bottom
:
env
(
safe-area-inset-bottom
);
.inner
{
position
:
fixed
;
left
:
0
;
...
...
src/pages/course/tag/item.vue
浏览文件 @
f3f002e6
...
...
@@ -33,8 +33,14 @@ export default {
methods
:
{
// 获取知识点详情
getCourseTag
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
api
.
getCourseTag
(
this
.
tagId
).
then
(
response
=>
{
this
.
detail
=
response
this
.
$toast
.
clear
()
})
}
},
...
...
src/pages/course/tag/list.vue
浏览文件 @
f3f002e6
...
...
@@ -40,16 +40,34 @@ export default {
},
tagList
()
{
return
this
.
chapter
.
tag
||
[]
},
isTest
()
{
return
this
.
$route
.
query
.
is_test
===
'1'
}
},
methods
:
{
// 获取知识点列表
getCourseTagList
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
api
.
getCourseTagList
(
this
.
courseId
).
then
(
response
=>
{
this
.
detail
=
response
this
.
$toast
.
clear
()
})
},
onClick
({
id
})
{
if
(
this
.
isTest
)
{
const
query
=
{
type
:
2
,
tag_id
:
id
,
papersUrl
:
'zy/v2/examination/course-papers'
}
this
.
$router
.
push
({
path
:
'/exam/answer'
,
query
})
return
}
this
.
$router
.
push
({
name
:
'courseTagItem'
,
params
:
{
id
}
})
}
},
...
...
src/pages/home/index.vue
浏览文件 @
f3f002e6
...
...
@@ -51,8 +51,14 @@ export default {
methods
:
{
// 获取课程试听列表
getCourseList
()
{
this
.
$toast
.
loading
({
duration
:
0
,
message
:
'加载中...'
,
forbidClick
:
true
})
api
.
getFreeCourseList
().
then
(
response
=>
{
this
.
courseList
=
response
this
.
$toast
.
clear
()
})
},
// 搜索
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论