king
2019-08-19 2a6367f5357b765deed8c2929de2da30cbcf679c
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: '解决方案',
                  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;