lisenzhou 2 年之前
父節點
當前提交
a6147d08b6
共有 1 個檔案被更改,包括 50 行新增34 行删除
  1. 50
    34
      src/pages/pg2-2/index.vue

+ 50
- 34
src/pages/pg2-2/index.vue 查看文件

@@ -1,13 +1,18 @@
1 1
 <template>
2 2
   <div class="page pg-bg pg2-2">
3 3
     <div class="bk-pd content">
4
-      <p class="txt">
4
+      <Animate
5
+        class="txt"
6
+        comp="p"
7
+        name="animate__fadeIn"
8
+        delay="1000ms"
9
+        :ready="true"
10
+      >
5 11
         85年前,
6 12
         <br />日本侵略者制造了惨绝人寰的南京大屠杀, <br />30多万生灵涂炭。
7 13
         <br />战后的紫金山废墟下,片片紫色小花密密开放。
8 14
         <br />
9
-        <br />
10
-      </p>
15
+      </Animate>
11 16
     </div>
12 17
     <div class="bk-pd content">
13 18
       <img class="layer-img" src="/images/pg2-2/图层38.png" />
@@ -17,17 +22,21 @@
17 22
       <img class="group-img" src="/images/pg2-2/组4.png" />
18 23
     </div>
19 24
     <div class="bk-pd content">
20
-      <p class="txt bottom">
25
+      <Animate
26
+        class="txt bottom"
27
+        comp="p"
28
+        name="animate__fadeIn"
29
+        delay="2000ms"
30
+        :ready="true"
31
+      >
21 32
         1939年,一名日本带军医着对战争的反思和忏悔,
22 33
         <br />把取自南京的花种带回日本,撒遍山野、植满庭院,
23 34
         <br />并取名“紫金草”。 <br />在他的眼中,当年的紫金山上,
24 35
         <br />每一朵花就是一个在战争中丧生的灵魂。
25 36
         <br />此后几十年,这名军医和家人 <br />在各地播种紫金草悼念亡灵,
26
-      </p>
37
+      </Animate>
27 38
     </div>
28
-    <!-- <div class="bk-pd content-ink"> -->
29
-    <!-- <InkEffect src="./images/pg2-2/紫金草行动logo拷贝.png" :active="inkActive" /> -->
30
-    
39
+
31 40
     <Splide
32 41
       :options="slideOptions"
33 42
       :has-track="false"
@@ -36,7 +45,6 @@
36 45
       <div class="ink-slider-wrapper">
37 46
         <SplideTrack>
38 47
           <SplideSlide>
39
-        
40 48
             <Ink
41 49
               class="slide-ink"
42 50
               :active="slideIndexRef == 0"
@@ -85,26 +93,34 @@
85 93
     <!-- </div> -->
86 94
 
87 95
     <div class="bk-pd content">
88
-      <p class="txt bottom">
89
-        紫金草,它耐寒、耐旱,
90
-        <br />在贫瘠的土地上也能顽强生长, <br />蕴含着无穷的草根力量,
91
-        <br />寄托了对战争的反省和对和平的祈愿。 <br />“紫金草行动”由此而来。
92
-        <br />小小紫金草,悠悠寄哀思。 <br />让和平中长大的年轻人保持“痛”感,
93
-        <br />让更多的人主动追问、不断提起那段历史,
94
-        <br />让和平之声传向世界各地, <br />这一直是“紫金草行动”努力的方向。
95
-      </p>
96
+      <Animate name="animate__fadeIn" delay="3000ms" :ready="true">
97
+        <p class="txt bottom">
98
+          紫金草,它耐寒、耐旱,
99
+          <br />在贫瘠的土地上也能顽强生长, <br />蕴含着无穷的草根力量,
100
+          <br />寄托了对战争的反省和对和平的祈愿。 <br />“紫金草行动”由此而来。
101
+          <br />小小紫金草,悠悠寄哀思。 <br />让和平中长大的年轻人保持“痛”感,
102
+          <br />让更多的人主动追问、不断提起那段历史,
103
+          <br />让和平之声传向世界各地, <br />这一直是“紫金草行动”努力的方向。
104
+        </p>
105
+      </Animate>
96 106
     </div>
97 107
     <div class="bk-pd content">
98
-      <img class="chart-img" src="/images/pg2-2/图.png" />
108
+      <Ink
109
+        class="slide-ink chart-img"
110
+        :active="true"
111
+        src="/images/pg2-2/图.png"
112
+      />
99 113
     </div>
100 114
     <div class="bk-pd content">
101
-      <p class="txt topbottom">
102
-        2014年,在国家首个公祭日来临之际,
103
-        <br />为了深切缅怀惨遭日军屠戮遇难同胞,
104
-        <br />唤起人们对和平的向往和珍视,
105
-        <br />南京广播电视集团发起了“紫金草行动”。 <br />九年了,
106
-        <br />“紫金草行动”再启航, <br />让“和平之花”开得更远!
107
-      </p>
115
+      <Animate name="animate__fadeIn" delay="4000ms" :ready="true">
116
+        <p class="txt topbottom">
117
+          2014年,在国家首个公祭日来临之际,
118
+          <br />为了深切缅怀惨遭日军屠戮遇难同胞,
119
+          <br />唤起人们对和平的向往和珍视,
120
+          <br />南京广播电视集团发起了“紫金草行动”。 <br />九年了,
121
+          <br />“紫金草行动”再启航, <br />让“和平之花”开得更远!
122
+        </p>
123
+      </Animate>
108 124
     </div>
109 125
     <div class="bk-pd content">
110 126
       <img class="zjclogo-img" src="/images/pg2-2/紫金草行动logo拷贝.png" />
@@ -114,10 +130,10 @@
114 130
 
115 131
 <script setup>
116 132
 import { onBeforeUnmount, onMounted, ref } from "vue";
117
-import { Splide, SplideSlide, SplideTrack } from '@splidejs/vue-splide';
118
-import Bell from '@/components/Bell.vue';
119
-  import Btn from '@/components/Btn.vue';
120
-  import Animate from '@/components/Animate.vue';
133
+import { Splide, SplideSlide, SplideTrack } from "@splidejs/vue-splide";
134
+import Bell from "@/components/Bell.vue";
135
+import Btn from "@/components/Btn.vue";
136
+import Animate from "@/components/Animate.vue";
121 137
 
122 138
 import Ink from "./Ink.vue";
123 139
 const inkActive = ref(false);
@@ -220,7 +236,8 @@ const onSlideChange = (slide, newIndex) => {
220 236
   }
221 237
   .content {
222 238
     .chart-img {
223
-      width: 84%;
239
+      width: 100vw;
240
+      height: 86vw;
224 241
       display: inline-block;
225 242
     }
226 243
   }
@@ -243,9 +260,9 @@ const onSlideChange = (slide, newIndex) => {
243 260
     position: relative;
244 261
     z-index: 2;
245 262
     .slide-ink {
246
-    width: 100vw;
247
-    height: 71.76vw;
248
-  }
263
+      width: 100vw;
264
+      height: 71.76vw;
265
+    }
249 266
     .splide__arrows {
250 267
       position: absolute;
251 268
       z-index: 10;
@@ -260,7 +277,6 @@ const onSlideChange = (slide, newIndex) => {
260 277
       }
261 278
     }
262 279
   }
263
- 
264 280
 }
265 281
 .txt {
266 282
   text-align: center;