[baozhangchao] hace 3 años
padre
commit
93b38c437f
Se han modificado 2 ficheros con 27 adiciones y 9 borrados
  1. 21
    2
      src/components/GrassGIF.vue
  2. 6
    7
      src/pages/homePage.vue

+ 21
- 2
src/components/GrassGIF.vue Ver fichero

@@ -1,8 +1,17 @@
1 1
 <template>
2
-  <div :style="HomeStyle" class="grassBox"></div>
2
+  <div :style="HomeStyle" class="grassBox">
3
+    <img :src="grass1" class="flex" />
4
+    <img :src="grass2" />
5
+    <img :src="grass3" />
6
+    <img :src="grass4" />
7
+  </div>
3 8
 </template>
4 9
 
5 10
 <script>
11
+import grass1 from '../assets/GrassImage/花丛-1.png'
12
+import grass2 from '../assets/GrassImage/花丛-2.png'
13
+import grass3 from '../assets/GrassImage/花丛-3.png'
14
+import grass4 from '../assets/GrassImage/花丛-4.png'
6 15
 export default {
7 16
   setup() {
8 17
     const HomeStyle = {
@@ -11,7 +20,11 @@ export default {
11 20
       backgroundSize: '100% auto'
12 21
     }
13 22
     return {
14
-      HomeStyle
23
+      HomeStyle,
24
+      grass1,
25
+      grass2,
26
+      grass3,
27
+      grass4
15 28
     }
16 29
   }
17 30
 }
@@ -21,5 +34,11 @@ export default {
21 34
 .grassBox {
22 35
   width: 100%;
23 36
   height: 21vh;
37
+  .flex {
38
+    transform: rotate(9deg);
39
+    position: relative;
40
+    left: 64vw;
41
+    top: -2vh;
42
+  }
24 43
 }
25 44
 </style>

+ 6
- 7
src/pages/homePage.vue Ver fichero

@@ -1,7 +1,7 @@
1 1
 
2 2
 <template>
3 3
   <div>
4
-    <BackPage>
4
+    <!-- <BackPage>
5 5
       <div class="TitleBox">
6 6
         <img :src="gameTitle" />
7 7
       </div>
@@ -9,8 +9,8 @@
9 9
         <img :src="gameSatrt" class="bth-image" @click="linkTo" />
10 10
         <img :src="gameRule" class="bth-image" @click="goRule" />
11 11
       </div>
12
-    </BackPage>
13
-    <!-- <GrassGIF /> -->
12
+    </BackPage>-->
13
+    <GrassGIF />
14 14
   </div>
15 15
 </template>
16 16
 
@@ -111,14 +111,13 @@ export default {
111 111
   width: 100vw;
112 112
 }
113 113
 .bth-div {
114
-  width: 33vw;
115 114
   position: absolute;
116
-  top: 80vh;
117
-  left: 35vw;
115
+  width: 100vw;
118 116
   display: flex;
117
+  bottom: 7vh;
119 118
   justify-content: center;
120 119
   .bth-image {
121
-    width: 100%;
120
+    width: 30%;
122 121
   }
123 122
 }
124 123
 </style>