提交 1d9af811 authored 作者: 王鹏飞's avatar 王鹏飞

新增问题与解答

上级 2b82ce88
...@@ -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) }
} }
...@@ -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)
} }
...@@ -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()">
......
<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>
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论