From 559b177490d6843c1e3d4e0aac52e98d24660c54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E5=B9=B3=E8=89=BA?= <52643018@qq.com> Date: Fri, 25 Jun 2021 14:54:11 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8E=A5=E6=8E=A5=E5=8F=A3]=20=E5=B8=B8?= =?UTF-8?q?=E8=A7=81=E9=97=AE=E9=A2=98=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api.js | 1 + pages/FQA/index.vue | 13 +++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) 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; + }) + } } }