|
@@ -3,24 +3,68 @@
|
3
|
3
|
<vue-headful title="楼盘相册" />
|
4
|
4
|
<div class="houseimagecontent">
|
5
|
5
|
<div class="houseimage">
|
6
|
|
- <van-swipe class="slidewrapper" :autoplay="3000">
|
7
|
|
- <van-swipe-item class="slideimg" v-for="(list, index) in detail" :key="index">
|
8
|
|
- <img class="lazyimage" :src="detail[index]" />
|
9
|
|
- </van-swipe-item>
|
10
|
|
- </van-swipe>
|
11
|
|
- </div>
|
12
|
|
- <div class="houseindex">
|
13
|
|
- <span class="imagetype">效果图</span>
|
14
|
|
- <div class="imageindex">
|
15
|
|
- <span class="countimage countindex">2</span>
|
16
|
|
- <span class="countimage">/</span>
|
17
|
|
- <span class="countimage totalcount">4</span>
|
18
|
|
- </div>
|
|
6
|
+ <swiper class="slidewrapper">
|
|
7
|
+ <swiper-slide class="slideimg" v-for="(list1, index1) in detail.imageLst1" :key="index1">
|
|
8
|
+ <img class="lazyimage" :src="list1.fileurl" />
|
|
9
|
+ <div class="houseindex">
|
|
10
|
+ <span class="imagetype">{{list1.name}}</span>
|
|
11
|
+ <div class="imageindex" >
|
|
12
|
+ <span class="countimage countindex">{{index1+1}}</span>
|
|
13
|
+ <span class="countimage">/</span>
|
|
14
|
+ <span class="countimage totalcount">{{detail.imageLstCount1}}</span>
|
|
15
|
+ </div>
|
|
16
|
+ </div>
|
|
17
|
+ </swiper-slide>
|
|
18
|
+ <swiper-slide class="slideimg" v-for="(list2, index2) in detail.imageLst2" :key="index2">
|
|
19
|
+ <img class="lazyimage" :src="list2.fileurl" />
|
|
20
|
+ <div class="houseindex">
|
|
21
|
+ <span class="imagetype">{{list2.name}}</span>
|
|
22
|
+ <div class="imageindex">
|
|
23
|
+ <span class="countimage countindex">{{index2+1}}</span>
|
|
24
|
+ <span class="countimage">/</span>
|
|
25
|
+ <span class="countimage totalcount">{{detail.imageLstCount2}}</span>
|
|
26
|
+ </div>
|
|
27
|
+ </div>
|
|
28
|
+ </swiper-slide>
|
|
29
|
+ <swiper-slide class="slideimg" v-for="(list3, index3) in detail.imageLst3" :key="index3">
|
|
30
|
+ <img class="lazyimage" :src="list3.fileurl" />
|
|
31
|
+ <div class="houseindex">
|
|
32
|
+ <span class="imagetype">{{list3.name}}</span>
|
|
33
|
+ <div class="imageindex">
|
|
34
|
+ <span class="countimage countindex">{{index3+1}}</span>
|
|
35
|
+ <span class="countimage">/</span>
|
|
36
|
+ <span class="countimage totalcount">{{detail.imageLstCount3}}</span>
|
|
37
|
+ </div>
|
|
38
|
+ </div>
|
|
39
|
+ </swiper-slide>
|
|
40
|
+ <swiper-slide class="slideimg" v-for="(list4, index4) in detail.imageLst4" :key="index4">
|
|
41
|
+ <img class="lazyimage" :src="list4.fileurl" />
|
|
42
|
+ <div class="houseindex">
|
|
43
|
+ <span class="imagetype">{{list4.name}}</span>
|
|
44
|
+ <div class="imageindex">
|
|
45
|
+ <span class="countimage countindex">{{index4+1}}</span>
|
|
46
|
+ <span class="countimage">/</span>
|
|
47
|
+ <span class="countimage totalcount">{{detail.imageLstCount4}}</span>
|
|
48
|
+ </div>
|
|
49
|
+ </div>
|
|
50
|
+ </swiper-slide>
|
|
51
|
+ <swiper-slide class="slideimg" v-for="(list5, index5) in detail.imageLst5" :key="index5">
|
|
52
|
+ <img class="lazyimage" :src="list5.fileurl" />
|
|
53
|
+ <div class="houseindex">
|
|
54
|
+ <span class="imagetype">{{list5.name}}</span>
|
|
55
|
+ <div class="imageindex">
|
|
56
|
+ <span class="countimage countindex">{{index5+1}}</span>
|
|
57
|
+ <span class="countimage">/</span>
|
|
58
|
+ <span class="countimage totalcount">{{detail.imageLstCount5}}</span>
|
|
59
|
+ </div>
|
|
60
|
+ </div>
|
|
61
|
+ </swiper-slide>
|
|
62
|
+ </swiper>
|
19
|
63
|
</div>
|
20
|
64
|
</div>
|
21
|
|
- <div class="imageboxtype">
|
22
|
|
- <div class="drawingimpress" v-for="list in detail.imageTypeLst" :key="list.id">
|
23
|
|
- <span class="boxcharacters">{{list.imagetypename}}</span>
|
|
65
|
+ <div class="imageboxtype" >
|
|
66
|
+ <div class="drawingimpress" v-for="(list, index) in lists" :key="index" @click="toggle(index)" :class='{active:list.active}'>
|
|
67
|
+ <span class="boxcharacters" :class='{active:list.active}'>{{list.imagetypename}}</span>
|
24
|
68
|
</div>
|
25
|
69
|
</div>
|
26
|
70
|
</div>
|
|
@@ -30,115 +74,145 @@
|
30
|
74
|
import { mapState, mapActions } from "vuex";
|
31
|
75
|
|
32
|
76
|
export default {
|
33
|
|
- name:'BuildingImage',
|
34
|
|
- components: {
|
35
|
|
- 'vue-headful': () => import('vue-headful'),
|
36
|
|
- },
|
37
|
|
- computed: {
|
38
|
|
- ...mapState({
|
39
|
|
- detail: s => s.buildingimage.detail,
|
40
|
|
- }),
|
41
|
|
- },
|
42
|
|
- created() {
|
43
|
|
- this.getBuildingimage({ buildingid: this.$route.query.id });
|
44
|
|
- window.console.log(this.$route.query.id)
|
45
|
|
- },
|
46
|
|
- methods: {
|
47
|
|
- ...mapActions(["getBuildingimage"]),
|
|
77
|
+ name: "BuildingImage",
|
|
78
|
+ data() {
|
|
79
|
+ return {
|
|
80
|
+ lists: [],
|
|
81
|
+ };
|
|
82
|
+ },
|
|
83
|
+ components: {
|
|
84
|
+ "vue-headful": () => import("vue-headful")
|
|
85
|
+ },
|
|
86
|
+ computed: {
|
|
87
|
+ ...mapState({
|
|
88
|
+ detail: s => s.buildingimage.detail
|
|
89
|
+ }),
|
|
90
|
+ },
|
|
91
|
+ created() {
|
|
92
|
+ this.getBuildingimage({ buildingid: this.$route.query.id }).then(() => {
|
|
93
|
+ this.lists = this.detail.imageTypeLst;
|
|
94
|
+ this.lists.forEach((curr, index) => {
|
|
95
|
+ curr.active = false;
|
|
96
|
+ if (index === 0) {
|
|
97
|
+ curr.active = true;
|
|
98
|
+ }
|
|
99
|
+ });
|
|
100
|
+ });
|
|
101
|
+ },
|
|
102
|
+ methods: {
|
|
103
|
+ ...mapActions(["getBuildingimage"]),
|
|
104
|
+ toggle(ind) {
|
|
105
|
+ let list = []
|
|
106
|
+ this.lists.forEach((curr, index) => {
|
|
107
|
+ curr.active = false;
|
|
108
|
+ if (index === ind) {
|
|
109
|
+ curr.active = true;
|
|
110
|
+ }
|
|
111
|
+ list.push(curr)
|
|
112
|
+ });
|
|
113
|
+ this.lists = []
|
|
114
|
+ this.lists = list
|
|
115
|
+ }
|
48
|
116
|
}
|
49
|
|
-
|
50
|
|
-}
|
|
117
|
+};
|
51
|
118
|
</script>
|
52
|
119
|
|
53
|
120
|
<style lang="postcss" scoped>
|
54
|
|
-.imgbackground{
|
|
121
|
+.active {
|
|
122
|
+ background-color: rgba(119, 165, 240, 1) !important;
|
|
123
|
+ color: rgba(255, 255, 255, 1) !important;
|
|
124
|
+}
|
|
125
|
+.imgbackground {
|
55
|
126
|
width: 100%;
|
56
|
127
|
height: 667px;
|
57
|
|
- background-color: rgba(31,31,31,0.5);
|
|
128
|
+ background-color: rgba(31, 31, 31, 0.5);
|
58
|
129
|
|
59
|
|
- .houseimagecontent{
|
|
130
|
+ .houseimagecontent {
|
60
|
131
|
width: 100%;
|
61
|
|
- height: 251px;
|
62
|
|
- padding-top:103px;
|
|
132
|
+ height: 255px;
|
|
133
|
+ padding-top: 103px;
|
63
|
134
|
|
64
|
|
- .houseimage{
|
65
|
|
- width:100%;
|
66
|
|
- height: 211px;
|
|
135
|
+ .houseimage {
|
|
136
|
+ width: 100%;
|
|
137
|
+ height: 255px;
|
67
|
138
|
|
68
|
|
- .slidewrapper{
|
69
|
|
- width: 100%;
|
70
|
|
- height: 100%;
|
71
|
|
-
|
72
|
|
- .slideimg {
|
73
|
|
- width: 100%;
|
74
|
|
- height: 100%;
|
|
139
|
+ .slidewrapper {
|
|
140
|
+ width: 100%;
|
|
141
|
+ height: 100%;
|
75
|
142
|
|
76
|
|
- .lazyimage{
|
77
|
|
- width: 100%;
|
78
|
|
- height: 100%;
|
79
|
|
- }
|
|
143
|
+ .slideimg {
|
|
144
|
+ width: 100%;
|
|
145
|
+ height: 211px;
|
|
146
|
+
|
|
147
|
+ .lazyimage {
|
|
148
|
+ width: 100%;
|
|
149
|
+ height: 100%;
|
|
150
|
+ }
|
|
151
|
+
|
|
152
|
+ .houseindex {
|
|
153
|
+ position: absolute;
|
|
154
|
+ top: 211px;
|
|
155
|
+ left: 0;
|
|
156
|
+ width: 100%;
|
|
157
|
+ height: 40px;
|
|
158
|
+ background-color: rgba(255, 255, 255, 1);
|
|
159
|
+ display: flex;
|
|
160
|
+ flex-direction: row;
|
|
161
|
+ align-items: center;
|
|
162
|
+ justify-content: space-between;
|
|
163
|
+
|
|
164
|
+ .imagetype {
|
|
165
|
+ font-size: 12px;
|
|
166
|
+ font-family: PingFangSC-Regular;
|
|
167
|
+ font-weight: 400;
|
|
168
|
+ color: rgba(59, 153, 252, 1);
|
|
169
|
+ line-height: 17px;
|
|
170
|
+ padding-left: 15px;
|
80
|
171
|
}
|
81
|
|
- }
|
82
|
|
- }
|
83
|
172
|
|
84
|
|
- .houseindex{
|
85
|
|
- width: 100%;
|
86
|
|
- height: 40px;
|
87
|
|
- background-color: rgba(255,255,255,1);
|
88
|
|
- display: flex;
|
89
|
|
- flex-direction: row;
|
90
|
|
- align-items: center;
|
91
|
|
- justify-content: space-between;
|
92
|
|
-
|
93
|
|
- .imagetype{
|
94
|
|
- font-size:12px;
|
95
|
|
- font-family:PingFangSC-Regular;
|
96
|
|
- font-weight:400;
|
97
|
|
- color:rgba(59,153,252,1);
|
98
|
|
- line-height:17px;
|
99
|
|
- padding-left:15px;
|
100
|
|
- }
|
|
173
|
+ .imageindex {
|
|
174
|
+ padding-right: 15px;
|
101
|
175
|
|
102
|
|
- .imageindex{
|
103
|
|
- padding-right: 15px;
|
104
|
|
-
|
105
|
|
- .countimage{
|
106
|
|
- font-size:12px;
|
107
|
|
- font-family:PingFangSC-Regular;
|
108
|
|
- font-weight:400;
|
109
|
|
- color:rgba(127,127,127,1);
|
110
|
|
- line-height:17px;
|
|
176
|
+ .countimage {
|
|
177
|
+ font-size: 12px;
|
|
178
|
+ font-family: PingFangSC-Regular;
|
|
179
|
+ font-weight: 400;
|
|
180
|
+ color: rgba(127, 127, 127, 1);
|
|
181
|
+ line-height: 17px;
|
|
182
|
+ }
|
|
183
|
+ }
|
|
184
|
+ }
|
111
|
185
|
}
|
|
186
|
+ }
|
112
|
187
|
}
|
113
|
|
-}
|
114
|
|
-}
|
|
188
|
+ }
|
115
|
189
|
|
116
|
|
- .imageboxtype{
|
117
|
|
- padding-top: 15px;
|
118
|
|
- margin-left: 5%;
|
119
|
|
- width: 94%;
|
120
|
|
- display: flex;
|
121
|
|
- flex-direction: row;
|
122
|
|
- flex-wrap: wrap;
|
123
|
|
-
|
124
|
|
- .drawingimpress{
|
125
|
|
- width:30%;
|
126
|
|
- height: 58px;
|
127
|
|
- display:flex;
|
128
|
|
- justify-content: center;
|
129
|
|
- align-items: center;
|
130
|
|
- background-color:rgba(119,165,240,1);
|
131
|
|
- margin:0 10px 10px 0;
|
132
|
|
-
|
133
|
|
- .boxcharacters{
|
134
|
|
- font-size:12px;
|
135
|
|
- font-family:PingFangSC-Regular;
|
136
|
|
- font-weight:400;
|
137
|
|
- color:rgba(255,255,255,1);
|
138
|
|
- line-height:17px;
|
139
|
|
- }
|
|
190
|
+ .imageboxtype {
|
|
191
|
+ padding-top: 15px;
|
|
192
|
+ margin-left: 5%;
|
|
193
|
+ width: 94%;
|
|
194
|
+ display: flex;
|
|
195
|
+ flex-direction: row;
|
|
196
|
+ flex-wrap: wrap;
|
|
197
|
+
|
|
198
|
+ .drawingimpress {
|
|
199
|
+ width: 30%;
|
|
200
|
+ height: 58px;
|
|
201
|
+ display: flex;
|
|
202
|
+ justify-content: center;
|
|
203
|
+ align-items: center;
|
|
204
|
+ background-color: rgba(255, 255, 255, 1);
|
|
205
|
+ margin: 0 10px 10px 0;
|
|
206
|
+
|
|
207
|
+ .boxcharacters {
|
|
208
|
+ font-size: 12px;
|
|
209
|
+ font-family: PingFangSC-Regular;
|
|
210
|
+ font-weight: 400;
|
|
211
|
+ color: rgba(97, 97, 97, 1);
|
|
212
|
+ line-height: 17px;
|
|
213
|
+ }
|
140
|
214
|
}
|
141
|
|
- }
|
|
215
|
+ }
|
142
|
216
|
}
|
143
|
217
|
</style>
|
144
|
218
|
|