Baozhangchao 3 лет назад
Родитель
Сommit
3dc77cbc0a
9 измененных файлов: 31 добавлений и 9 удалений
  1. Двоичные данные
      build/yushi-image/1.jpg
  2. Двоичные данные
      build/yushi-image/2.png
  3. Двоичные данные
      build/yushi-image/3.png
  4. Двоичные данные
      build/yushi-image/4.png
  5. 1
    1
      package.json
  6. 12
    6
      src/pages/AllPages.vue
  7. 10
    0
      src/pages/Test.vue
  8. 1
    1
      src/pages/index.vue
  9. 7
    1
      src/router/index.js

Двоичные данные
build/yushi-image/1.jpg Просмотреть файл


Двоичные данные
build/yushi-image/2.png Просмотреть файл


Двоичные данные
build/yushi-image/3.png Просмотреть файл


Двоичные данные
build/yushi-image/4.png Просмотреть файл


+ 1
- 1
package.json Просмотреть файл

@@ -5,7 +5,7 @@
5 5
   "author": "Baozhangchao <3257874327@qq.com>",
6 6
   "private": true,
7 7
   "scripts": {
8
-    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
8
+    "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js --host 0.0.0.0",
9 9
     "start": "npm run dev",
10 10
     "lint": "eslint --ext .js,.vue src",
11 11
     "build": "node build/build.js"

+ 12
- 6
src/pages/AllPages.vue Просмотреть файл

@@ -2,27 +2,27 @@
2 2
   <div class="index-box">
3 3
     <img src="../../build/fourBoxes-image//1.jpg" class="bg-image" />
4 4
     <div class="index-FourBoxes">
5
-      <div class="index-FourBoxes-yushi test">
5
+      <div class="index-FourBoxes-yushi test" @click="goYuShi">
6 6
         <img src="../../build/fourBoxes-image/浴室.png" class="Four-image" />
7
-        <div style=" width: 108px; position: fixed; left: 10.8vw; top: 50vh;">
7
+        <div style=" width: 108px; position: absolute; left: 10.8vw; top: 35vh;">
8 8
           <img style=" width:100%;" src="../assets/fourBoxes-2/浴室-2.png" />
9 9
         </div>
10 10
       </div>
11 11
       <div class="index-FourBoxes-yimao test">
12 12
         <img src="../../build/fourBoxes-image/衣帽间.png" class="Four-image" />
13
-        <div style=" width: 108px; position: fixed; left: 59.8vw; top: 50vh;">
13
+        <div style=" width: 108px; position: absolute; left: 59.8vw; top: 35vh;">
14 14
           <img style=" width:100%;" src="../assets/fourBoxes-2/衣帽间-2.png" />
15 15
         </div>
16 16
       </div>
17 17
       <div class="index-FourBoxes-keting test">
18 18
         <img src="../../build/fourBoxes-image/客厅.png" class="Four-image" />
19
-        <div style=" width: 108px; position: fixed; left: 10.8vw; top: 92vh;">
19
+        <div style=" width: 108px; position: absolute; left: 10.8vw; top: 77vh;">
20 20
           <img style=" width:100%;" src="../assets/fourBoxes-2/客厅-2.png" />
21 21
         </div>
22 22
       </div>
23 23
       <div class="index-FourBoxes-yangtai test">
24 24
         <img src="../../build/fourBoxes-image/阳台.png" class="Four-image" />
25
-        <div style=" width: 108px; position: fixed; left: 59.8vw; top: 92vh;">
25
+        <div style=" width: 108px; position: absolute; left: 59.8vw; top: 77vh;">
26 26
           <img style=" width:100%;" src="../assets/fourBoxes-2/阳台-2.png" />
27 27
         </div>
28 28
       </div>
@@ -31,7 +31,13 @@
31 31
 </template>
32 32
 
33 33
 <script>
34
-export default {}
34
+export default {
35
+  methods: {
36
+    goYuShi() {
37
+      this.$router.push({ name: 'Test' })
38
+    }
39
+  }
40
+}
35 41
 </script>
36 42
 
37 43
 <style lang="scss" scoped>

+ 10
- 0
src/pages/Test.vue Просмотреть файл

@@ -0,0 +1,10 @@
1
+<template>
2
+  <h1>222222</h1>
3
+</template>
4
+
5
+<script>
6
+export default {}
7
+</script>
8
+
9
+<style>
10
+</style>

+ 1
- 1
src/pages/index.vue Просмотреть файл

@@ -35,7 +35,7 @@ export default {
35 35
     height: 100%;
36 36
   }
37 37
   .bth-div {
38
-    position: fixed;
38
+    position: absolute;
39 39
     width: 184px;
40 40
     height: 49px;
41 41
     bottom: 18vh;

+ 7
- 1
src/router/index.js Просмотреть файл

@@ -2,6 +2,7 @@ import Vue from 'vue'
2 2
 import Router from 'vue-router'
3 3
 import ColmoIndex from '@/pages'
4 4
 import AllPages from '@/pages/AllPages'
5
+import Test from '@/pages/Test'
5 6
 
6 7
 Vue.use(Router)
7 8
 
@@ -16,6 +17,11 @@ export default new Router({
16 17
       path: '/pages',
17 18
       name: 'AllPages',
18 19
       component: AllPages
19
-    }
20
+    },
21
+    {
22
+      path: '/pages',
23
+      name: 'Test',
24
+      component: Test
25
+    },
20 26
   ]
21 27
 })