Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
1d9af811
提交
1d9af811
authored
6月 21, 2021
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增问题与解答
上级
2b82ce88
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
52 行增加
和
0 行删除
+52
-0
OtherAction.js
src/action/OtherAction.js
+3
-0
other_api.js
src/api/other_api.js
+2
-0
navigation.vue
src/components/learnSysLayout/navigation.vue
+1
-0
qa.vue
src/pages/other/qa.vue
+42
-0
routes.js
src/router/routes.js
+4
-0
没有找到文件。
src/action/OtherAction.js
浏览文件 @
1d9af811
...
@@ -52,4 +52,7 @@ export default class OtherAction extends BaseACTION {
...
@@ -52,4 +52,7 @@ export default class OtherAction extends BaseACTION {
* 获取签名文档
* 获取签名文档
*/
*/
getSignDocument
(
obj
)
{
return
Other
.
getSignDocument
(
obj
).
then
(
res
=>
res
)
}
getSignDocument
(
obj
)
{
return
Other
.
getSignDocument
(
obj
).
then
(
res
=>
res
)
}
// 获取问题与解答
getQA
(
obj
)
{
return
Other
.
getQA
(
obj
).
then
(
res
=>
res
)
}
}
}
src/api/other_api.js
浏览文件 @
1d9af811
...
@@ -60,4 +60,6 @@ export default class OtherAPI extends BaseAPI {
...
@@ -60,4 +60,6 @@ export default class OtherAPI extends BaseAPI {
* 获取签名文档
* 获取签名文档
*/
*/
getSignDocument
=
(
obj
=
{})
=>
this
.
get
(
'/api/usercenter/v1/sign/document'
,
obj
)
getSignDocument
=
(
obj
=
{})
=>
this
.
get
(
'/api/usercenter/v1/sign/document'
,
obj
)
// 获取问题与解答
getQA
=
(
obj
=
{})
=>
this
.
get
(
'/api/lms/v2/questions/details'
,
obj
)
}
}
src/components/learnSysLayout/navigation.vue
浏览文件 @
1d9af811
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<div
class=
"nav-a"
>
<div
class=
"nav-a"
>
<a
:href=
"documentUrl"
target=
"_blank"
>
{{
$t
(
'components.learnSysLayout.navigation.handlbook'
)
}}
</a>
<a
:href=
"documentUrl"
target=
"_blank"
>
{{
$t
(
'components.learnSysLayout.navigation.handlbook'
)
}}
</a>
<!--
<a
href=
"https://library.ciis.edu"
target=
"_blank"
>
{{
$t
(
'components.learnSysLayout.navigation.library'
)
}}
</a>
-->
<!--
<a
href=
"https://library.ciis.edu"
target=
"_blank"
>
{{
$t
(
'components.learnSysLayout.navigation.library'
)
}}
</a>
-->
<router-link
to=
"/app/other/qa"
>
问题与解答
</router-link>
</div>
</div>
<div
class=
"nav-message"
></div>
<div
class=
"nav-message"
></div>
<div
class=
"notify"
@
click=
"goNotify()"
>
<div
class=
"notify"
@
click=
"goNotify()"
>
...
...
src/pages/other/qa.vue
0 → 100644
浏览文件 @
1d9af811
<
template
>
<div>
<div
class=
"con-title"
>
问题与解答
</div>
<div
class=
"con-box"
v-html=
"detail.content"
></div>
</div>
</
template
>
<
script
>
import
cAction
from
'@action'
export
default
{
data
()
{
return
{
activeName
:
null
,
detail
:
{}
}
},
beforeMount
()
{
this
.
getData
()
},
methods
:
{
getData
()
{
cAction
.
Other
.
getQA
().
then
(
resp
=>
{
this
.
detail
=
resp
})
}
}
}
</
script
>
<
style
lang=
"scss"
>
.el-collapse-item__header
{
line-height
:
15px
;
}
.empty
{
padding
:
100px
;
font-size
:
18px
;
color
:
#5f6368
;
text-align
:
center
;
}
</
style
>
src/router/routes.js
浏览文件 @
1d9af811
...
@@ -27,6 +27,10 @@ export default [
...
@@ -27,6 +27,10 @@ export default [
{
{
path
:
'update-pic'
,
path
:
'update-pic'
,
component
:
()
=>
import
(
'../pages/other/updatePic.vue'
)
component
:
()
=>
import
(
'../pages/other/updatePic.vue'
)
},
{
path
:
'qa'
,
component
:
()
=>
import
(
'../pages/other/qa.vue'
)
}
}
]
]
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论