Blame view

src/views/case/index.vue 3.12 KB
9a543af7   liuqimichale   经典案例 目录建立
1
  <template>
f7dec07d   liuqimichale   经典案例 列表
2
      <div class="widthCommon" >
0c75b35c   liuqimichale   经典案例 目录建立
3
4
5
6
7
8
9
10
11
12
13
        <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>
f7dec07d   liuqimichale   经典案例 列表
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
  
        <div class="bread ">
          <div class=" widthCommon">
            您所在位置: <span class="pointer" @click="$router.push({name:'home'})">首页</span> -> 经典案例 -> {{name}}
          </div>
        </div>
  
        <div class="widthCommon" style="margin-bottom: 20px;">
          <ul class="caseList">
            <li v-for="item in 10" :key="item">
              <img src="../../assets/images/case/case.png" alt="">
              <p class="caseName">项目名称:黄石智慧停车项目</p>
              <p class="caseAddress">项目地址:  湖北· 黄石</p>
              <ul class="mark-wrapper">
                <li>
                  <span>车位:10000</span>
                </li>
                <li>
                  <span>规划、</span>
                  <span>建设、</span>
                  <span>运营</span>
                </li>
              </ul>
  
              <div class="pointer toDetail">查看详情 》</div>
            </li>
          </ul>
  
          <v-page :total-row="100" align="center" :page-size-menu="false" :info="false" @page-change="pagePhotoChange">
          </v-page>
        </div>
  
0c75b35c   liuqimichale   经典案例 目录建立
46
      </div>
9a543af7   liuqimichale   经典案例 目录建立
47
48
49
  </template>
  
  <script>
0c75b35c   liuqimichale   经典案例 目录建立
50
51
52
53
  import commonBanner from '@/components/commonBanner'
  import selectTab0 from './components/selectTab0'
  import selectTab1 from './components/selectTab1'
  import selectTab2 from './components/selectTab2'
9a543af7   liuqimichale   经典案例 目录建立
54
  export default {
0c75b35c   liuqimichale   经典案例 目录建立
55
56
57
58
59
60
61
    name: 'index',
    components:{
      commonBanner, selectTab0, selectTab1, selectTab2
    },
    data(){
      return{
        tabData:[
f7dec07d   liuqimichale   经典案例 列表
62
          '智慧停车','公安交通','公共交通'
0c75b35c   liuqimichale   经典案例 目录建立
63
64
65
        ],
        currentIndex:0,
        tabView:'selectTab0',
f7dec07d   liuqimichale   经典案例 列表
66
        name:'智慧停车'
0c75b35c   liuqimichale   经典案例 目录建立
67
68
69
70
71
72
73
74
      }
    },
    methods:{
      changeTab:function (index,item) {
        console.log(index)
        this.currentIndex = index
        this.tabView = 'selectTab'+index
        this.name = item
f7dec07d   liuqimichale   经典案例 列表
75
76
77
78
      },
      pagePhotoChange:function (pInfo) {
        console.log(pInfo)
      },
0c75b35c   liuqimichale   经典案例 目录建立
79
    }
9a543af7   liuqimichale   经典案例 目录建立
80
81
82
83
  }
  </script>
  
  <style scoped lang="scss">
f7dec07d   liuqimichale   经典案例 列表
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
  .caseList{
    overflow: hidden;
  }
  .caseList>li{
    width: 400px;
    height: 529px;
    float: left;
    margin-right:90px ;
    margin-bottom: 92px;
    background:rgba(228,228,228,1);
    img{
      width: 400px;
      height: 354px;
    }
  }
  .caseList>li:nth-of-type(3n+0){
    margin-right: 0;
  }
    .caseName,.caseAddress{
      padding-left: 20px;
      font-size: 14px;
      color: #333;
    }
    .caseName{
      padding-top: 20px;
      padding-bottom: 20px;
    }
    .mark-wrapper{
      margin: 20px 0;
      padding-left: 20px;
      overflow: hidden;
    }
    .mark-wrapper li{
      padding: 5px 10px;
      float: left;
      margin-right: 17px;
      background:rgba(54,114,248,.4);
      border-radius:4px;
      font-size: 14px;
      color: #333;
    }
    .toDetail{
      text-align: center;
      font-size: 14px;
      color: #3366CC;
    }
9a543af7   liuqimichale   经典案例 目录建立
130
  </style>