From 9ef30b4be9b349de20053a114422c0ef59aabb5c Mon Sep 17 00:00:00 2001 From: chutingting Date: Thu, 20 May 2021 16:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/cultivate/particulars.vue | 6 +++--- src/page/home/home.vue | 9 +++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/page/cultivate/particulars.vue b/src/page/cultivate/particulars.vue index 8f597a3..b526d10 100644 --- a/src/page/cultivate/particulars.vue +++ b/src/page/cultivate/particulars.vue @@ -2,9 +2,9 @@
-
+ -
+

标题:{{data.title}}

日期:{{data.publishDate}}

@@ -126,7 +126,7 @@ export default { } .info_list{ float: left; - margin-left: 30px; + margin-left: 40px; p{ line-height: 40px; color: #444; diff --git a/src/page/home/home.vue b/src/page/home/home.vue index a9f6d82..8aee763 100644 --- a/src/page/home/home.vue +++ b/src/page/home/home.vue @@ -162,13 +162,13 @@ export default { }) }, /* 新闻列表 */ - getNewsList() { + getData() { let data = { // type: 1, pageNum: 1, - pageSize: 90 + pageSize: 100 } - homeService.getNewsList(data).then(res => { + homeService.getData(data).then(res => { res.list.forEach(ele => { if (ele.type == 4) { // 生活服务 this.lifeList.push(ele) @@ -203,7 +203,7 @@ export default { }, created() { this.getSlideList() - this.getNewsList() + this.getData() } }; @@ -236,6 +236,7 @@ export default { line-height: 22px; padding: 4px 0; height: 22px; + white-space: nowrap; a{ color: #333; }