From b5a1ac854e8e3f7fa357eef2353665544f025d81 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 16 八月 2019 00:30:46 +0800 Subject: [PATCH] 2019-08-16update --- src/components/header.vue | 26 +++++++++++++++++++------- 1 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/components/header.vue b/src/components/header.vue index 5c6e71d..e2c2f9f 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -136,8 +136,9 @@ if (!name) return this.selectedsubId = null this.isShow = false + name = name.toLowerCase() if (!type) { // 涓婚〉闈㈣烦杞� - if (name === 'CompanyProfile') { // 鍏充簬鏄庣,閿氱偣鍙傛暟 + if (name === 'companyprofile') { // 鍏充簬鏄庣,閿氱偣鍙傛暟 this.$router.push({name: name, params: {hash: 'null'}}) } else { this.$router.push({name: name}) @@ -151,7 +152,7 @@ if (index === 3) { // 鍔犲叆鏄庣 this.$router.push({name: name}) } else { - this.$router.push({name: 'CompanyProfile', params: {hash: `#anchor-${index + 1}`}}) + this.$router.push({name: 'companyprofile', params: {hash: `#anchor-${index + 1}`}}) } } }, @@ -185,10 +186,15 @@ url: pro.PageType } }) + this.products.unshift({ + Id: 'centerview', + text: '浜у搧涓績', + url: 'center' + }) this.products.push({ - Id: this.products[0].Id, + Id: 'centerview', text: '鏇村 >>', - url: this.products[0].url + url: 'center' }) this.solutions = res.Solution.map(pro => { @@ -198,10 +204,15 @@ url: pro.PageType } }) + this.solutions.unshift({ + Id: 'casesolutionview', + text: '瑙e喅鏂规', + url: 'casesolution' + }) this.solutions.push({ - Id: this.solutions[0].Id, + Id: 'casesolutionview', text: '鏇村 >>', - url: this.solutions[0].url + url: 'casesolution' }) }) } @@ -309,7 +320,8 @@ position: absolute; left: -0.8rem; transition: all .3s ease 0s; - height: 2rem; + min-height: 1.5rem; + padding-bottom: 0.2rem; background-color: #212020; z-index: 999; -- Gitblit v1.8.0