Baozhangchao 3 gadus atpakaļ
vecāks
revīzija
3dc77cbc0a

Binārs
build/yushi-image/1.jpg Parādīt failu


Binārs
build/yushi-image/2.png Parādīt failu


Binārs
build/yushi-image/3.png Parādīt failu


Binārs
build/yushi-image/4.png Parādīt failu


+ 1
- 1
package.json Parādīt failu

5
   "author": "Baozhangchao <3257874327@qq.com>",
5
   "author": "Baozhangchao <3257874327@qq.com>",
6
   "private": true,
6
   "private": true,
7
   "scripts": {
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
     "start": "npm run dev",
9
     "start": "npm run dev",
10
     "lint": "eslint --ext .js,.vue src",
10
     "lint": "eslint --ext .js,.vue src",
11
     "build": "node build/build.js"
11
     "build": "node build/build.js"

+ 12
- 6
src/pages/AllPages.vue Parādīt failu

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

+ 10
- 0
src/pages/Test.vue Parādīt failu

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 Parādīt failu

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

+ 7
- 1
src/router/index.js Parādīt failu

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