|
@@ -1,6 +1,6 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="index-box">
|
3
|
|
- <popup :show="showPopup" @cancel="cancelFrom" />
|
|
3
|
+ <!-- <popup :show="showPopup" @cancel="cancelFrom" /> -->
|
4
|
4
|
<div>
|
5
|
5
|
<div>
|
6
|
6
|
<img class="topImage" src="../assets/hareTop.png" alt />
|
|
@@ -9,13 +9,14 @@
|
9
|
9
|
<div class="outer6-wrapper">
|
10
|
10
|
<div class="outer6 flex-col">
|
11
|
11
|
<div v-for="item in indexJPG" :key="item" class="section-item">
|
12
|
|
- <div @click="baga">
|
13
|
|
- <!-- <img class="section-item-image" src="../assets/coverIndex.jpg" /> -->
|
|
12
|
+ <ImgBox :value='startImg'></ImgBox>
|
|
13
|
+ <!-- <div @click="baga">
|
|
14
|
+ <img class="section-item-image" src="../assets/coverIndex.jpg" />
|
14
|
15
|
<img
|
15
|
|
- :class="`section-item-image ${!showPopup?'backImag':''}` "
|
|
16
|
+ :class="`section-item-image ${rotateY?'backImag':''}` "
|
16
|
17
|
src="../assets/popupImg/backImag.jpg"
|
17
|
18
|
/>
|
18
|
|
- </div>
|
|
19
|
+ </div> -->
|
19
|
20
|
</div>
|
20
|
21
|
</div>
|
21
|
22
|
</div>
|
|
@@ -24,16 +25,20 @@
|
24
|
25
|
|
25
|
26
|
<script>
|
26
|
27
|
import { useModel } from '@/store'
|
|
28
|
+import ImgBox from '@/components/imgbox.vue'
|
27
|
29
|
|
28
|
30
|
export default {
|
29
|
31
|
name: 'Honghe',
|
30
|
32
|
components: {
|
31
|
|
- Popup: () => import('@/components/Popup.vue')
|
|
33
|
+ Popup: () => import('@/components/Popup.vue'),
|
|
34
|
+ ImgBox
|
32
|
35
|
},
|
33
|
36
|
data() {
|
34
|
37
|
return {
|
35
|
38
|
indexJPG: new Array(12).fill(null),
|
36
|
|
- showPopup: false
|
|
39
|
+ showPopup: false,
|
|
40
|
+ rotateY: false,
|
|
41
|
+ startImg:require('../assets/coverIndex.jpg')
|
37
|
42
|
}
|
38
|
43
|
},
|
39
|
44
|
computed: {
|
|
@@ -54,16 +59,17 @@ export default {
|
54
|
59
|
immediate: true
|
55
|
60
|
}
|
56
|
61
|
},
|
57
|
|
- methods: {
|
58
|
|
- //关闭
|
59
|
|
- cancelFrom() {
|
60
|
|
- this.showPopup = false
|
61
|
|
- },
|
62
|
|
- baga(e) {
|
63
|
|
- console.log(e)
|
64
|
|
- this.showPopup = true
|
65
|
|
- }
|
66
|
|
- }
|
|
62
|
+ // methods: {
|
|
63
|
+ // //关闭
|
|
64
|
+ // cancelFrom() {
|
|
65
|
+ // this.showPopup = false
|
|
66
|
+ // },
|
|
67
|
+ // baga(e) {
|
|
68
|
+ // console.log(e)
|
|
69
|
+ // this.showPopup = true
|
|
70
|
+ // this.rotateY=true
|
|
71
|
+ // }
|
|
72
|
+ // }
|
67
|
73
|
}
|
68
|
74
|
</script>
|
69
|
75
|
|
|
@@ -118,25 +124,26 @@ export default {
|
118
|
124
|
border-left: 1px solid #d0b69a;
|
119
|
125
|
border-top: 1px solid #d0b69a;
|
120
|
126
|
display: inline-flex;
|
|
127
|
+ overflow: hidden;
|
121
|
128
|
&-image {
|
122
|
129
|
width: 22vw;
|
123
|
130
|
|
124
|
131
|
background-size: 100% 100%;
|
125
|
132
|
}
|
126
|
|
- // .backImag {
|
127
|
|
- // position: relative;
|
128
|
|
- // animation: change 0.8s linear forwards;
|
129
|
|
- // }
|
130
|
|
- // @keyframes change {
|
131
|
|
- // from {
|
132
|
|
- // width: 50%;
|
133
|
|
- // z-index: 1;
|
134
|
|
- // transform: rotateY(180deg);
|
135
|
|
- // }
|
136
|
|
- // to {
|
137
|
|
- // width: 22vw;
|
138
|
|
- // }
|
139
|
|
- // }
|
|
133
|
+ .backImag {
|
|
134
|
+ // position: relative;
|
|
135
|
+ width: 22vw;
|
|
136
|
+ animation: change 0.8s linear forwards;
|
|
137
|
+ }
|
|
138
|
+ @keyframes change {
|
|
139
|
+ from {
|
|
140
|
+ width: 44vw;
|
|
141
|
+ transform: rotateY(180deg);
|
|
142
|
+ }
|
|
143
|
+ to {
|
|
144
|
+ width: 22vw;
|
|
145
|
+ }
|
|
146
|
+ }
|
140
|
147
|
}
|
141
|
148
|
}
|
142
|
149
|
}
|