Blame view

src/views/case/index.vue 1.24 KB
9a543af7   liuqimichale   经典案例 目录建立
1
  <template>
0c75b35c   liuqimichale   经典案例 目录建立
2
3
4
5
6
7
8
9
10
11
12
13
14
      <div class="widthCommon" style="margin-bottom: 20px;">
        <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>
9a543af7   liuqimichale   经典案例 目录建立
15
16
17
  </template>
  
  <script>
0c75b35c   liuqimichale   经典案例 目录建立
18
19
20
21
  import commonBanner from '@/components/commonBanner'
  import selectTab0 from './components/selectTab0'
  import selectTab1 from './components/selectTab1'
  import selectTab2 from './components/selectTab2'
9a543af7   liuqimichale   经典案例 目录建立
22
  export default {
0c75b35c   liuqimichale   经典案例 目录建立
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
    name: 'index',
    components:{
      commonBanner, selectTab0, selectTab1, selectTab2
    },
    data(){
      return{
        tabData:[
          '公司要闻','行业动态','技术前沿', '团队活动'
        ],
        currentIndex:0,
        tabView:'selectTab0',
        name:'公司要闻'
      }
    },
    methods:{
      changeTab:function (index,item) {
        console.log(index)
        this.currentIndex = index
        this.tabView = 'selectTab'+index
        this.name = item
      }
    }
9a543af7   liuqimichale   经典案例 目录建立
45
46
47
48
49
50
  }
  </script>
  
  <style scoped lang="scss">
  
  </style>