index.vue
3.12 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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
130
<template>
<div class="widthCommon" >
<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" 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>
</div>
</template>
<script>
import commonBanner from '@/components/commonBanner'
import selectTab0 from './components/selectTab0'
import selectTab1 from './components/selectTab1'
import selectTab2 from './components/selectTab2'
export default {
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
},
pagePhotoChange:function (pInfo) {
console.log(pInfo)
},
}
}
</script>
<style scoped lang="scss">
.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;
}
</style>