From 049bdb6fa9cf9e9112a083180366d339f5ae6141 Mon Sep 17 00:00:00 2001 From: chutingting Date: Tue, 17 Nov 2020 14:26:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=A6=E5=91=98=E9=A3=8E?= =?UTF-8?q?=E9=87=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/headTail/head.vue | 6 +++--- src/page/cultivate/excellent.vue | 3 ++- src/page/cultivate/particulars.vue | 6 ++++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/headTail/head.vue b/src/components/headTail/head.vue index 9e34e93..014743e 100644 --- a/src/components/headTail/head.vue +++ b/src/components/headTail/head.vue @@ -60,9 +60,9 @@ 新闻动态 - 行业新闻 - 学员风采 - 企业培训案例 + 行业新闻 + 学员风采 + 企业培训案例 diff --git a/src/page/cultivate/excellent.vue b/src/page/cultivate/excellent.vue index db991eb..bf578d4 100644 --- a/src/page/cultivate/excellent.vue +++ b/src/page/cultivate/excellent.vue @@ -40,7 +40,7 @@ export default { /* 新闻列表 */ getList() { let d = { - type: 2, + type: this.$route.query.type, pageNum: 1, pageSize: 1000 } @@ -67,6 +67,7 @@ export default { float: left; margin-left: 20px; margin-right: 20px; + width: 360px; } .imgBox{ margin: 10px 30px; diff --git a/src/page/cultivate/particulars.vue b/src/page/cultivate/particulars.vue index d098001..9c010d3 100644 --- a/src/page/cultivate/particulars.vue +++ b/src/page/cultivate/particulars.vue @@ -24,7 +24,7 @@ export default { data() { return { textTop :"优秀案例", - ifjournalism:1 ,//1 => 优秀案例 2 =>新闻详情, + ifjournalism:1 ,//1 => 优秀案例 2 =>新闻详情 3 =>学员风采, id: this.$route.params.id.split('.')[0], // 截取 .html之前数据 data: {} } @@ -51,8 +51,10 @@ export default { } if (this.ifjournalism == 1) { this.textTop= "优秀案例" - }else{ + }else if(this.ifjournalism == 2){ this.textTop= "新闻资讯" + }else{ + this.textTop= "学员风采" } await this.getDetail()