Browse Source

[接接口] 常见问题页面

master
邓平艺 5 years ago
parent
commit
559b177490
  1. 1
      common/api.js
  2. 13
      pages/FQA/index.vue

1
common/api.js

@ -40,6 +40,7 @@ export const API_PRPAID = '/api/order/deal'
export const API_USER_CENTER = '/api/user/center'; // 个人中心
export const API_COLLECT_LIST = '/api/collect/list'; // 我的收藏列表
export const API_CONTACT = '/api/contact'; // 客服落地页信息
export const API_ARTICLE_QA = '/api/article/qa'; // 常见问题列表
/* 用户相关 */
export const API_WXLOGIN = '/api/wxlogin'; // 用户登录

13
pages/FQA/index.vue

@ -1,6 +1,7 @@
<template>
<view>
<text>常见的一些问题</text>
<rich-text :nodes="content" v-if="content"></rich-text>
<my-nocontent v-else></my-nocontent>
</view>
</template>
@ -8,14 +9,18 @@
export default {
data(){
return {
content: ''
}
},
onLoad(){
this.getData();
},
methods: {
getData(){
this.$http(this.API.API_ARTICLE_QA).then(res => {
this.content = res.data.content;
})
}
}
}
</script>

Loading…
Cancel
Save