[baozhangchao] 3 年前
父节点
当前提交
93b38c437f
共有 2 个文件被更改,包括 27 次插入9 次删除
  1. 21
    2
      src/components/GrassGIF.vue
  2. 6
    7
      src/pages/homePage.vue

+ 21
- 2
src/components/GrassGIF.vue 查看文件

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

+ 6
- 7
src/pages/homePage.vue 查看文件

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