| | |
| | | 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}) |
| | |
| | | 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}`}}) |
| | | } |
| | | } |
| | | }, |
| | |
| | | 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 => { |
| | |
| | | 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' |
| | | }) |
| | | }) |
| | | } |
| | |
| | | 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; |
| | | |