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; }