Yansen hace 2 años
padre
commit
2e5d04d8da

BIN
public/images/pg2/map.gif Ver fichero


+ 3
- 5
src/components/InkEffect.vue Ver fichero

@@ -30,15 +30,13 @@
30 30
   let i = 0;
31 31
 
32 32
   watch(() => props.active, (newVal, oldVal) => {
33
-    if (newVal && !oldVal) {
33
+    if (newVal) {
34 34
       if (renderRef.value) {
35 35
         i = 0;
36 36
         renderRef.value();
37 37
       }
38
-    }
39
-
40
-    if (props.clearable && !newVal) {
41
-      if (clearRef.value) {
38
+    } else {
39
+      if (props.clearable && clearRef.value) {
42 40
         clearRef.value();
43 41
       }
44 42
     }

+ 3
- 3
src/pages/Loading.vue Ver fichero

@@ -19,9 +19,9 @@
19 19
       </div>
20 20
     </div>
21 21
     <DownArrow v-if="percent == '100%'" style="bottom: 120px" />
22
-    <div class="footer abs txt">
23
-      主办单位:中共南京市委网信办、共青团南京市委员会、南京广播电视集团、华日军南京大屠杀遇难同胞纪念馆
24
-    </div>
22
+    <!-- <div class="footer abs txt">
23
+      主办单位:中共南京市委网信办、共青团南京市委员会、南京广播电视集团、华日军南京大屠杀遇难同胞纪念馆
24
+    </div> -->
25 25
   </div>
26 26
 </template>
27 27
 

+ 30
- 29
src/pages/pg1/Md1.vue Ver fichero

@@ -14,7 +14,8 @@
14 14
           播撒和平的种子。<br>
15 15
           近20万枚紫金草徽章佩戴在了人们的心口。
16 16
         </p>
17
-        <div class="map-img" ref="mapRef" />
17
+        <!-- <div class="map-img" ref="mapRef" /> -->
18
+        <img class="map-img" src="/images/pg2/map.gif" alt="">
18 19
       </div>
19 20
     </div>
20 21
   </Modal>
@@ -28,44 +29,44 @@
28 29
   const loaded = ref(false);
29 30
   const dep = ref(true);
30 31
 
31
-  const callback = (t) => {
32
-    const maxHeight = 27837
33
-    const rawHeight = 489
34
-    const img = mapRef.value
35
-    const height = img.offsetHeight
36
-    const pos = t * rawHeight
32
+  // const callback = (t) => {
33
+  //   const maxHeight = 27837
34
+  //   const rawHeight = 489
35
+  //   const img = mapRef.value
36
+  //   const height = img.offsetHeight
37
+  //   const pos = t * rawHeight
37 38
 
38
-    const backgroundPosition = `0 -${(pos * height) / rawHeight}px`
39
-    img.style.backgroundPosition = backgroundPosition
39
+  //   const backgroundPosition = `0 -${(pos * height) / rawHeight}px`
40
+  //   img.style.backgroundPosition = backgroundPosition
40 41
 
41
-    if (pos >= maxHeight - rawHeight) {
42
-      return true
43
-    }
44
-  }
42
+  //   if (pos >= maxHeight - rawHeight) {
43
+  //     return true
44
+  //   }
45
+  // }
45 46
   
46 47
   onMounted(() => {
47 48
     loaded.value = true;
48 49
   });
49 50
 
50
-  let times = 0;
51
-  let execed = false;
52
-  watch([loaded, dep], (values) => {
53
-    console.log(values)
54
-    if (execed) return;
51
+  // let times = 0;
52
+  // let execed = false;
53
+  // watch([loaded, dep], (values) => {
54
+  //   console.log(values)
55
+  //   if (execed) return;
55 56
 
56
-    if (values[0] && values[1]) {
57
-      execed = true;
57
+  //   if (values[0] && values[1]) {
58
+  //     execed = true;
58 59
       
59
-      const i = setInterval(() => {
60
-        const isOver = callback(times);
61
-        times += 1;
60
+  //     const i = setInterval(() => {
61
+  //       const isOver = callback(times);
62
+  //       times += 1;
62 63
 
63
-        if (isOver) {
64
-          clearInterval(i);
65
-        }
66
-      }, 2000 / 16);
67
-    }
68
-  });
64
+  //       if (isOver) {
65
+  //         clearInterval(i);
66
+  //       }
67
+  //     }, 2000 / 16);
68
+  //   }
69
+  // });
69 70
 </script>
70 71
 
71 72
 <style lang="less" scoped>

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

@@ -30,7 +30,7 @@
30 30
         delay="2000ms"
31 31
         :ready="true"
32 32
       >
33
-        1939年,一名日本军医着对战争的反思和忏悔,
33
+        1939年,一名日本军医着对战争的反思和忏悔,
34 34
         <br />把取自南京的花种带回日本,撒遍山野、植满庭院,
35 35
         <br />并取名“紫金草”。 <br />在他的眼中,当年的紫金山上,
36 36
         <br />每一朵花就是一个在战争中丧生的灵魂。

+ 1
- 1
src/pages/pg3/Ink.vue Ver fichero

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="ink-box">
3 3
     <div>
4
-      <InkEffect class="ink-cover" :src="src" v-if="active" :active="true" />
4
+      <InkEffect class="ink-cover" :src="src" :speed="10" :active="active" />
5 5
       <!-- <img class="ink-back" :src="src" alt="" > -->
6 6
     </div>
7 7
   </div>

+ 3
- 3
src/pages/pg3/index.vue Ver fichero

@@ -69,7 +69,7 @@
69 69
     <Splide
70 70
       :options="slideOptions"
71 71
       :has-track="false"
72
-      @splide:moved="onSlideChange"
72
+      @splide:move="onSlideChange"
73 73
     >
74 74
       <div class="ink-slider-wrapper">
75 75
         <SplideTrack>
@@ -131,8 +131,8 @@
131 131
     pagination: false,
132 132
     autoplay: true,
133 133
     type: 'loop',
134
-    speed: 1000,
135
-    interval: 6000,
134
+    speed: 600,
135
+    interval: 5000,
136 136
   }
137 137
 
138 138
   const onVideo = () => {

+ 2
- 1
src/pages/pg4/video.vue Ver fichero

@@ -83,7 +83,8 @@
83 83
   .content {
84 84
     position: relative;
85 85
     video {
86
-      width: 100%;
86
+      // width: 100%;
87
+      width: 100vw;
87 88
       z-index: 1;
88 89
     }
89 90
     .play-action {