张延森 3 anni fa
parent
commit
e328487a79

+ 6
- 0
src/router/router.config.js Vedi File

@@ -29,6 +29,12 @@ export const constantRouterMap = [
29 29
         name: 'Office',
30 30
         component: () => import('@/views/office'),
31 31
         meta: { title: '办公', keepAlive: false }
32
+      },
33
+      {
34
+        path: '/project',
35
+        name: 'Project',
36
+        component: () => import('@/views/projectIndex'),
37
+        meta: { title: '办公', keepAlive: false }
32 38
       }
33 39
     ]
34 40
   }

+ 1
- 1
src/views/components/IndexImage.vue Vedi File

@@ -50,7 +50,7 @@ export default {
50 50
 
51 51
       this.handerStyle = {
52 52
         top: `${offsetTop + 1800 * heightRatio}px`,
53
-        left: `${988 * widthRatio}px`
53
+        left: `${1020 * widthRatio}px`
54 54
       }
55 55
 
56 56
       this.showSwiper = true

+ 88
- 0
src/views/projectIndex.vue Vedi File

@@ -0,0 +1,88 @@
1
+<!-- home -->
2
+<template>
3
+  <div class="apartment">
4
+    <img src="@/assets/perjectImages/langbgm.jpg" width="100%" class="bgiclass" @load="handleImageLoad"/>
5
+    <div class="index-pos-hander" :style="handleStyle">
6
+        <img :src="require('@/assets/perjectImages/swiperButton.png')" alt="">
7
+      </div>
8
+    <swiper>
9
+      <swiper-slide v-for="item in houseList" :key="item.image">
10
+        <pure-image :bg-color="item.color" :bg-image="item.image"></pure-image>
11
+      </swiper-slide>
12
+    </swiper>
13
+  </div>
14
+</template>
15
+
16
+<script>
17
+
18
+export default {
19
+  data() {
20
+    return {
21
+      handleStyle: {},
22
+      houseList: [
23
+        {
24
+          image: require('@/assets/images/apartment/7-1.jpg'),
25
+          color: '#f0f0f0'
26
+        },
27
+        {
28
+          image: require('@/assets/images/apartment/7-2.jpg'),
29
+          color: '#f0f0f0'
30
+        },
31
+        {
32
+          image: require('@/assets/images/apartment/7-3.jpg'),
33
+          color: '#f0f0f0'
34
+        },
35
+        {
36
+          image: require('@/assets/images/apartment/7-4.jpg'),
37
+          color: '#f0f0f0'
38
+        },
39
+        {
40
+          image: require('@/assets/images/apartment/7-5.jpg'),
41
+          color: '#f0f0f0'
42
+        },
43
+        {
44
+          image: require('@/assets/images/apartment/7-6.jpg'),
45
+          color: '#f0f0f0'
46
+        },
47
+        {
48
+          image: require('@/assets/images/apartment/7-7.jpg'),
49
+          color: '#f0f0f0'
50
+        },
51
+        {
52
+          image: require('@/assets/images/apartment/7-8.jpg'),
53
+          color: '#f0f0f0'
54
+        }
55
+      ]
56
+    }
57
+  },
58
+  methods: {
59
+    handleImageLoad(e) {
60
+      const { height } = e.target
61
+
62
+      this.handleStyle = {
63
+        top: `${height - 400}px`
64
+      }
65
+    }
66
+  }
67
+}
68
+</script>
69
+
70
+<style lang="scss" scoped>
71
+.apartment {
72
+  height: 100%;
73
+  position: relative;
74
+  .index-pos-hander {
75
+    position: absolute;
76
+    z-index: 200;
77
+    width: 81px;
78
+    height: 56px;
79
+    animation: slidefade 2s infinite;
80
+    right:0;
81
+    bottom: 0;
82
+    img {
83
+      width: 100%;
84
+      height: 100%;
85
+    }
86
+  }
87
+}
88
+</style>