Commit 9cb902b25225135f386d3ed503859dc94a460ff5
1 parent
1e0bb6b5
解决方案
Showing
7 changed files
with
111 additions
and
1 deletions
src/components/commonHeaderFooter/VHeader.vue
@@ -22,6 +22,7 @@ export default { | @@ -22,6 +22,7 @@ export default { | ||
22 | routerData:[ | 22 | routerData:[ |
23 | {name:'首页',pathLink:'/home'}, | 23 | {name:'首页',pathLink:'/home'}, |
24 | {name:'关于我们',pathLink:'/about'}, | 24 | {name:'关于我们',pathLink:'/about'}, |
25 | + {name:'解决方案',pathLink:'/solution'}, | ||
25 | {name:'产品中心',pathLink:'/product'}, | 26 | {name:'产品中心',pathLink:'/product'}, |
26 | {name:'经典案例',pathLink:'/case'}, | 27 | {name:'经典案例',pathLink:'/case'}, |
27 | {name:'新闻中心',pathLink:'/news'}, | 28 | {name:'新闻中心',pathLink:'/news'}, |
src/router/index.js
@@ -52,6 +52,11 @@ export default new Router({ | @@ -52,6 +52,11 @@ export default new Router({ | ||
52 | path: '/caseDetail/:caseId', | 52 | path: '/caseDetail/:caseId', |
53 | name: 'caseDetail', | 53 | name: 'caseDetail', |
54 | component: () => import('@/views/caseDetail') | 54 | component: () => import('@/views/caseDetail') |
55 | + }, | ||
56 | + { | ||
57 | + path: '/solution', | ||
58 | + name: 'solution', | ||
59 | + component: () => import('@/views/solution') | ||
55 | } | 60 | } |
56 | 61 | ||
57 | 62 |
src/views/case/index.vue
1 | <template> | 1 | <template> |
2 | - <div class="widthCommon" > | 2 | + <div class="" > |
3 | <commonBanner mainTitle="中兴智能交通" subTitle="构建绿色交通 享受安全便利出行"></commonBanner> | 3 | <commonBanner mainTitle="中兴智能交通" subTitle="构建绿色交通 享受安全便利出行"></commonBanner> |
4 | <div class="tab-wrapper"> | 4 | <div class="tab-wrapper"> |
5 | <ul class="tab-main widthCommon"> | 5 | <ul class="tab-main widthCommon"> |
src/views/solution/components/solutionSelect0.vue
0 → 100644
src/views/solution/components/solutionSelect1.vue
0 → 100644
src/views/solution/components/solutionSelect2.vue
0 → 100644
src/views/solution/index.vue
0 → 100644
1 | +<template> | ||
2 | + <div> | ||
3 | + <commonBanner mainTitle="中兴智能交通" subTitle="构建绿色交通 享受安全便利出行"></commonBanner> | ||
4 | + <div class="tab-wrapper"> | ||
5 | + <ul class="tab-main widthCommon"> | ||
6 | + <li | ||
7 | + v-for="(item, index) in tabData" | ||
8 | + :key="item" | ||
9 | + @click="changeTab(index,item)" | ||
10 | + :class="{tabActive:currentIndex==index}" | ||
11 | + >{{item}}</li> | ||
12 | + </ul> | ||
13 | + </div> | ||
14 | + | ||
15 | + <div class="bread "> | ||
16 | + <div class=" widthCommon"> | ||
17 | + 您所在位置: <span class="pointer" @click="$router.push({name:'home'})">首页</span> -> 经典案例 -> {{name}} | ||
18 | + </div> | ||
19 | + </div> | ||
20 | + <div class="widthCommon"> | ||
21 | + <keep-alive> | ||
22 | + <component :is="tabView"></component> | ||
23 | + </keep-alive> | ||
24 | + </div> | ||
25 | + </div> | ||
26 | +</template> | ||
27 | + | ||
28 | +<script> | ||
29 | +import commonBanner from '@/components/commonBanner' | ||
30 | +import solutionSelect0 from './components/solutionSelect0' | ||
31 | +import solutionSelect1 from './components/solutionSelect1' | ||
32 | +import solutionSelect2 from './components/solutionSelect2' | ||
33 | + | ||
34 | +export default { | ||
35 | + name: 'index', | ||
36 | + components:{ | ||
37 | + commonBanner, solutionSelect0, solutionSelect1, solutionSelect2 | ||
38 | + }, | ||
39 | + data(){ | ||
40 | + return{ | ||
41 | + tabData:[ | ||
42 | + '智慧停车','公安交通','公共交通' | ||
43 | + ], | ||
44 | + currentIndex:0, | ||
45 | + tabView:'solutionSelect0', | ||
46 | + name:'智慧停车' | ||
47 | + } | ||
48 | + }, | ||
49 | + methods:{ | ||
50 | + changeTab:function (index,item) { | ||
51 | + console.log(index) | ||
52 | + this.currentIndex = index | ||
53 | + this.tabView = 'solutionSelect'+index | ||
54 | + this.name = item | ||
55 | + }, | ||
56 | + pagePhotoChange:function (pInfo) { | ||
57 | + console.log(pInfo) | ||
58 | + }, | ||
59 | + } | ||
60 | +} | ||
61 | +</script> | ||
62 | + | ||
63 | +<style scoped lang="scss"> | ||
64 | + | ||
65 | +</style> |