|
@@ -2,26 +2,26 @@
|
2
|
2
|
<div class="index-box">
|
3
|
3
|
<img src="../../public/fourBoxes-image/1.jpg" class="bg-image" />
|
4
|
4
|
<div class="index-FourBoxes">
|
5
|
|
- <div class="index-FourBoxes-yushi test" @click="goYuShi">
|
6
|
|
- <img src="../../public/fourBoxes-image/浴室.png" class="Four-image" />
|
|
5
|
+ <div class="index-FourBoxes-yushi test" @click="goPagess('yushi')">
|
|
6
|
+ <img src="../../public/fourBoxes-image/浴室.png" :style="styleImage" class="Four-image" />
|
7
|
7
|
<div style=" width: 108px; position: absolute; left: 10.8vw; top: 35vh;">
|
8
|
8
|
<img style=" width:100%;" src="../assets/fourBoxes-2/浴室-2.png" />
|
9
|
9
|
</div>
|
10
|
10
|
</div>
|
11
|
|
- <div class="index-FourBoxes-yimao test">
|
12
|
|
- <img src="../../public/fourBoxes-image/衣帽间.png" class="Four-image" />
|
|
11
|
+ <div class="index-FourBoxes-yimao test" @click="goPagess('yimao')">
|
|
12
|
+ <img src="../../public/fourBoxes-image/衣帽间.png" :style="styleImage" class="Four-image" />
|
13
|
13
|
<div style=" width: 108px; position: absolute; left: 59.8vw; top: 35vh;">
|
14
|
14
|
<img style=" width:100%;" src="../assets/fourBoxes-2/衣帽间-2.png" />
|
15
|
15
|
</div>
|
16
|
16
|
</div>
|
17
|
|
- <div class="index-FourBoxes-keting test">
|
18
|
|
- <img src="../../public/fourBoxes-image/客厅.png" class="Four-image" />
|
|
17
|
+ <div class="index-FourBoxes-keting test" @click="goPagess('keting')">
|
|
18
|
+ <img src="../../public/fourBoxes-image/客厅.png" :style="styleImage" class="Four-image" />
|
19
|
19
|
<div style=" width: 108px; position: absolute; left: 10.8vw; top: 77vh;">
|
20
|
20
|
<img style=" width:100%;" src="../assets/fourBoxes-2/客厅-2.png" />
|
21
|
21
|
</div>
|
22
|
22
|
</div>
|
23
|
|
- <div class="index-FourBoxes-yangtai test">
|
24
|
|
- <img src="../../public/fourBoxes-image/阳台.png" class="Four-image" />
|
|
23
|
+ <div class="index-FourBoxes-yangtai test" @click="goPagess('yangtai')">
|
|
24
|
+ <img src="../../public/fourBoxes-image/阳台.png" :style="styleImage" class="Four-image" />
|
25
|
25
|
<div style=" width: 108px; position: absolute; left: 59.8vw; top: 77vh;">
|
26
|
26
|
<img style=" width:100%;" src="../assets/fourBoxes-2/阳台-2.png" />
|
27
|
27
|
</div>
|
|
@@ -32,10 +32,90 @@
|
32
|
32
|
|
33
|
33
|
<script>
|
34
|
34
|
export default {
|
35
|
|
- methods: {
|
36
|
|
- goYuShi() {
|
37
|
|
- this.$router.push({ name: 'Test' })
|
|
35
|
+ data() {
|
|
36
|
+ return {
|
|
37
|
+ styleImage: 'opacity: 0.3;',
|
|
38
|
+ typeYushi: {
|
|
39
|
+ bgImage: require('../../public/yushi-image/1.jpg'),
|
|
40
|
+ swiper: {
|
|
41
|
+ swiper1: require('../../public/yushi-image/2.png'),
|
|
42
|
+ swiper2: require('../../public/yushi-image/3.png'),
|
|
43
|
+ swiper3: require('../../public/yushi-image/4.png')
|
|
44
|
+ }
|
|
45
|
+ },
|
|
46
|
+ typeYimao: {
|
|
47
|
+ bgImage: require('../../public/yimao-image/1.jpg'),
|
|
48
|
+ swiper: {
|
|
49
|
+ swiper1: require('../../public/yimao-image/2.png'),
|
|
50
|
+ swiper2: require('../../public/yimao-image/3.png'),
|
|
51
|
+ swiper3: require('../../public/yimao-image/4.png')
|
|
52
|
+ }
|
|
53
|
+ },
|
|
54
|
+ typeKeting: {
|
|
55
|
+ bgImage: require('../../public/keting-image/1.jpg'),
|
|
56
|
+ swiper: {
|
|
57
|
+ swiper1: require('../../public/keting-image/2.png'),
|
|
58
|
+ swiper2: require('../../public/keting-image/3.png'),
|
|
59
|
+ swiper3: require('../../public/keting-image/4.png'),
|
|
60
|
+ swiper4: require('../../public/keting-image/5.png')
|
|
61
|
+ }
|
|
62
|
+ },
|
|
63
|
+ typeYangtai: {
|
|
64
|
+ bgImage: require('../../public/yangtai-image/1.jpg'),
|
|
65
|
+ swiper: {
|
|
66
|
+ swiper1: require('../../public/yangtai-image/2.png'),
|
|
67
|
+ swiper2: require('../../public/yangtai-image/3.png'),
|
|
68
|
+ swiper3: require('../../public/yangtai-image/4.png'),
|
|
69
|
+ swiper4: require('../../public/yangtai-image/5.png')
|
|
70
|
+ }
|
|
71
|
+ }
|
38
|
72
|
}
|
|
73
|
+ },
|
|
74
|
+ methods: {
|
|
75
|
+ goPagess(e, res) {
|
|
76
|
+ this.styleImage = ''
|
|
77
|
+
|
|
78
|
+ switch (e) {
|
|
79
|
+ case 'yushi':
|
|
80
|
+ console.log('yushi')
|
|
81
|
+ var arr = JSON.stringify(this.typeYushi)
|
|
82
|
+ this.$router.push({
|
|
83
|
+ name: 'Test',
|
|
84
|
+ params: { types: encodeURIComponent(arr) }
|
|
85
|
+ })
|
|
86
|
+
|
|
87
|
+ break
|
|
88
|
+ case 'keting':
|
|
89
|
+ console.log('keting')
|
|
90
|
+ var arr = JSON.stringify(this.typeKeting)
|
|
91
|
+ this.$router.push({
|
|
92
|
+ name: 'Test',
|
|
93
|
+ params: { types: encodeURIComponent(arr) }
|
|
94
|
+ })
|
|
95
|
+ break
|
|
96
|
+ case 'yimao':
|
|
97
|
+ console.log('yimao')
|
|
98
|
+ var arr = JSON.stringify(this.typeYimao)
|
|
99
|
+ this.$router.push({
|
|
100
|
+ name: 'Test',
|
|
101
|
+ params: { types: encodeURIComponent(arr) }
|
|
102
|
+ })
|
|
103
|
+ break
|
|
104
|
+ case 'yangtai':
|
|
105
|
+ console.log('yangtai')
|
|
106
|
+ var arr = JSON.stringify(this.typeYangtai)
|
|
107
|
+ this.$router.push({
|
|
108
|
+ name: 'Test',
|
|
109
|
+ params: { types: encodeURIComponent(arr) }
|
|
110
|
+ })
|
|
111
|
+ break
|
|
112
|
+ default:
|
|
113
|
+ return
|
|
114
|
+ }
|
|
115
|
+ },
|
|
116
|
+ goYimao() {},
|
|
117
|
+ goKeting() {},
|
|
118
|
+ goYangtai() {}
|
39
|
119
|
}
|
40
|
120
|
}
|
41
|
121
|
</script>
|