diff --git a/common/api.js b/common/api.js index a033943..f35cd83 100644 --- a/common/api.js +++ b/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'; // 用户登录 diff --git a/pages/FQA/index.vue b/pages/FQA/index.vue index d88270b..21eb268 100644 --- a/pages/FQA/index.vue +++ b/pages/FQA/index.vue @@ -1,6 +1,7 @@ @@ -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; + }) + } } }