Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
fa2a5546
提交
fa2a5546
authored
7月 10, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug fixes
上级
1b6e1a98
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
33 行增加
和
18 行删除
+33
-18
index.vue
src/pages/course/tag/index.vue
+1
-0
item.vue
src/pages/course/tag/item.vue
+12
-3
login.vue
src/pages/login/login.vue
+16
-15
index.vue
src/pages/search/index.vue
+4
-0
没有找到文件。
src/pages/course/tag/index.vue
浏览文件 @
fa2a5546
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
left-icon
left-icon
show-action
show-action
background=
"#f7f7f7"
background=
"#f7f7f7"
:maxlength=
"40"
placeholder=
"全国道路运输安全生产管理培训"
placeholder=
"全国道路运输安全生产管理培训"
@
search=
"onSearch"
@
search=
"onSearch"
>
>
...
...
src/pages/course/tag/item.vue
浏览文件 @
fa2a5546
...
@@ -11,6 +11,10 @@
...
@@ -11,6 +11,10 @@
<ul>
<ul>
<li
@
click=
"toExamPage"
>
知识点考试
</li>
<li
@
click=
"toExamPage"
>
知识点考试
</li>
</ul>
</ul>
<ul>
<li
@
click=
"getCourseTag(detail.last)"
v-if=
"detail.last"
>
上一点
</li>
<li
@
click=
"getCourseTag(detail.next)"
v-if=
"detail.next"
>
下一点
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -46,7 +50,7 @@ export default {
...
@@ -46,7 +50,7 @@ export default {
},
},
methods
:
{
methods
:
{
// 获取知识点详情
// 获取知识点详情
getCourseTag
()
{
getCourseTag
(
tagId
)
{
this
.
$toast
.
loading
({
this
.
$toast
.
loading
({
duration
:
0
,
duration
:
0
,
message
:
'加载中...'
,
message
:
'加载中...'
,
...
@@ -54,7 +58,7 @@ export default {
...
@@ -54,7 +58,7 @@ export default {
})
})
this
.
loaded
=
false
this
.
loaded
=
false
api
api
.
getCourseTag
(
this
.
tagId
)
.
getCourseTag
(
t
agId
||
t
his
.
tagId
)
.
then
(
response
=>
{
.
then
(
response
=>
{
this
.
loaded
=
true
this
.
loaded
=
true
this
.
detail
=
response
this
.
detail
=
response
...
@@ -115,11 +119,13 @@ export default {
...
@@ -115,11 +119,13 @@ export default {
line-height
:
24px
;
line-height
:
24px
;
}
}
.tools
{
.tools
{
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
5px
;
margin-top
:
5px
;
li
{
li
{
display
:
inline-block
;
display
:
inline-block
;
height
:
24px
;
height
:
24px
;
margin
:
0
10px
10px
0
;
margin
:
0
0
10px
10px
;
padding
:
0
15px
;
padding
:
0
15px
;
font-size
:
13px
;
font-size
:
13px
;
color
:
#fff
;
color
:
#fff
;
...
@@ -130,6 +136,9 @@ export default {
...
@@ -130,6 +136,9 @@ export default {
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
overflow
:
hidden
;
cursor
:
pointer
;
cursor
:
pointer
;
&
:first-child
{
margin-left
:
0
;
}
}
}
}
}
</
style
>
</
style
>
src/pages/login/login.vue
浏览文件 @
fa2a5546
...
@@ -151,23 +151,24 @@ export default {
...
@@ -151,23 +151,24 @@ export default {
},
},
// 显示登录提示框
// 显示登录提示框
showLoginDialog
()
{
showLoginDialog
()
{
this
.
$dialog
this
.
$dialog
.
confirm
({
.
confirm
({
title
:
'您还未登录'
,
title
:
'您还未登录'
,
message
:
'请先登录再进行操作'
,
message
:
'请先登录再进行操作'
,
cancelButtonText
:
'暂不登录'
,
cancelButtonText
:
'暂不登录'
,
confirmButtonText
:
'立即登录'
,
confirmButtonText
:
'立即登录'
beforeClose
:
(
action
,
done
)
=>
{
})
if
(
action
===
'confirm'
)
{
.
then
(()
=>
{
this
.
wechatLogin
()
this
.
wechatLogin
()
})
.
catch
(()
=>
{
if
(
this
.
isWeapp
)
{
wx
.
miniProgram
.
navigateBack
()
}
else
{
}
else
{
this
.
$router
.
replace
(
'/'
)
if
(
this
.
isWeapp
)
{
wx
.
miniProgram
.
navigateBack
()
}
else
{
this
.
$router
.
replace
(
'/'
)
}
}
}
})
done
(
false
)
}
})
}
}
},
},
beforeMount
()
{
beforeMount
()
{
...
...
src/pages/search/index.vue
浏览文件 @
fa2a5546
...
@@ -133,9 +133,13 @@ export default {
...
@@ -133,9 +133,13 @@ export default {
}
}
.search-tips__list
li
{
.search-tips__list
li
{
display
:
inline-block
;
display
:
inline-block
;
max-width
:
100%
;
font-size
:
0
.26rem
;
font-size
:
0
.26rem
;
color
:
#999
;
color
:
#999
;
margin-right
:
0
.4rem
;
margin-right
:
0
.4rem
;
margin-bottom
:
0
.4rem
;
margin-bottom
:
0
.4rem
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
}
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论