lisenzhou hace 2 años
padre
commit
69dd282f81
Se han modificado 2 ficheros con 9 adiciones y 2 borrados
  1. 2
    1
      src/pages/pg2-2/Bell.vue
  2. 7
    1
      src/pages/pg2-2/index.vue

+ 2
- 1
src/pages/pg2-2/Bell.vue Ver fichero

@@ -11,7 +11,7 @@
11 11
         <img :class="{'bell-ani': animate}" src="/images/pg1/bell.png" alt="">
12 12
       </div>
13 13
     </div>
14
-    <audio ref="el" src="/audio/audio2.mp3" style="max-width: 0" loop preload="auto"></audio>
14
+    <audio ref="el" src="/audio/audio2.mp3" style="max-width: 0" loop preload="auto" ></audio>
15 15
   </div>
16 16
 </template>
17 17
 
@@ -40,6 +40,7 @@
40 40
 
41 41
     //
42 42
     el.value.play();
43
+    animate.value = true;
43 44
   });
44 45
 
45 46
 </script>

+ 7
- 1
src/pages/pg2-2/index.vue Ver fichero

@@ -1,6 +1,7 @@
1 1
 <template>
2 2
   <div class="page pg-bg pg2-2">
3 3
     <GoBack class="goback abs" style="z-index: 100" @click="router.go(-1)" />
4
+    <Bell class="bell" />
4 5
     <div class="bk-pd content" >
5 6
       <Animate
6 7
         class="txt"
@@ -132,7 +133,7 @@
132 133
 <script setup>
133 134
 import { onBeforeUnmount, onMounted, ref } from "vue";
134 135
 import { Splide, SplideSlide, SplideTrack } from "@splidejs/vue-splide";
135
-import Bell from "@/components/Bell.vue";
136
+import Bell from "./Bell.vue";
136 137
 import Btn from "@/components/Btn.vue";
137 138
 import Animate from "@/components/Animate.vue";
138 139
 import GoBack from "@/components/GoBack.vue";
@@ -165,6 +166,11 @@ const onSlideChange = (slide, newIndex) => {
165 166
 .pg2-2 {
166 167
   position: relative;
167 168
   height: 100vh;
169
+  .bell{
170
+    position: absolute;
171
+    right: 24px;
172
+    top:24px;
173
+  }
168 174
   .content {
169 175
     text-align: center;
170 176
   }