From e2905e8fdda1c4e2f545ff4dee5708c914c8cbfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E8=89=AFking?= <2244255345@qq.com> Date: Thu, 27 Oct 2022 11:49:46 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E7=AB=99=E5=86=85?= =?UTF-8?q?=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/tabbar/home/title.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/tabbar/home/title.vue b/pages/tabbar/home/title.vue index a007339..4daf6e1 100644 --- a/pages/tabbar/home/title.vue +++ b/pages/tabbar/home/title.vue @@ -15,8 +15,9 @@ word-break: break-all; text-overflow: ellipsis; word-wrap: break-word; - - white-space: pre-wrap;">{{item.title}} + white-space: pre-wrap;"> + {{item.title}} + {{item.content}} {{item.createTime}} @@ -39,8 +40,10 @@ text-overflow: ellipsis; word-wrap: break-word; - white-space: pre-wrap;">{{item.title}} - {{item.createTime}} + white-space: pre-wrap;"> + {{item.title}} + {{item.content}} + {{item.createTime}} From 558a3228beb73412d9254e492f49efd947942b9b Mon Sep 17 00:00:00 2001 From: chc <1501738723@qq.com> Date: Fri, 28 Oct 2022 10:46:51 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=85=B3=E4=BA=8E=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/article.js | 13 +++++++++++++ pages/mine/help/tips.vue | 7 ++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/api/article.js b/api/article.js index 0d5bacc..6e2f6af 100644 --- a/api/article.js +++ b/api/article.js @@ -28,3 +28,16 @@ export function getArticleDetail(type) { }); } +/** + * 获取文章详情 + * @param type + */ + export function getArticleDetailByType(type) { + return http.request({ + url: `/other/article/type/${type}`, + method: Method.GET, + }); +} + + + diff --git a/pages/mine/help/tips.vue b/pages/mine/help/tips.vue index 19d3086..35936a1 100644 --- a/pages/mine/help/tips.vue +++ b/pages/mine/help/tips.vue @@ -1,11 +1,11 @@