Blame view

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