wangfei 6 лет назад
Родитель
Сommit
30ded73782

+ 0
- 1
index.html Просмотреть файл

@@ -91,7 +91,6 @@
91 91
     vertical-align: baseline;
92 92
     background: transparent;
93 93
     outline-style: none;
94
-    /*FF*/
95 94
   }
96 95
 
97 96
   a {

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

@@ -33,6 +33,8 @@
33 33
     "file-loader": "^1.1.4",
34 34
     "friendly-errors-webpack-plugin": "^1.6.1",
35 35
     "html-webpack-plugin": "^2.30.1",
36
+    "less": "^3.9.0",
37
+    "less-loader": "^5.0.0",
36 38
     "node-notifier": "^5.1.2",
37 39
     "optimize-css-assets-webpack-plugin": "^3.2.0",
38 40
     "ora": "^1.2.0",

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

@@ -17,6 +17,8 @@ export default {
17 17
   -moz-osx-font-smoothing: grayscale;
18 18
   text-align: center;
19 19
   color: #2c3e50;
20
-  margin-top: 60px;
20
+}
21
+html,body,#app{
22
+ height: 100%;
21 23
 }
22 24
 </style>

+ 1
- 3
src/components/commonComponents/footerNav.vue Просмотреть файл

@@ -25,10 +25,8 @@ export default {
25 25
 <!-- Add "scoped" attribute to limit CSS to this component only -->
26 26
 <style scoped>
27 27
 .footer .footer-con{
28
-  /* height: 337px; */
28
+  position: static;
29 29
   width: 100%;
30
-  position: fixed;
31
-  bottom: 0;
32 30
   background: #0F1C38;
33 31
   padding: 120px 0;
34 32
 

+ 17
- 7
src/components/commonComponents/headerTab.vue Просмотреть файл

@@ -1,9 +1,9 @@
1 1
 <template>
2 2
   <div class="header-tab">
3 3
     <el-row>
4
-       <el-col :span="12"><img src="../../assets/image/home/logo/logo.png" alt=""></el-col>
4
+       <el-col :span="12"><img class="header-img" src="../../assets/image/home/logo/logo.png" alt=""></el-col>
5 5
   <el-col :span="12"><el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
6
-  <el-menu-item index="1">首页</el-menu-item>
6
+  <el-menu-item index="1" >首页</el-menu-item>
7 7
   <el-menu-item index="2">解决方案</el-menu-item>
8 8
   <el-menu-item index="3">产品中心</el-menu-item>
9 9
   <el-menu-item index="4">新闻资讯</el-menu-item>
@@ -66,21 +66,31 @@ export default {
66 66
   top: 0;
67 67
   margin: 20px 0;
68 68
   background-color: transparent;
69
+  z-index: 2;
69 70
 }
70
-.el-menu.el-menu--horizontal {
71
+.header-tab .header-img{
72
+  width: 248px;
73
+  height: 35px;
74
+}
75
+.header-tab .el-menu.el-menu--horizontal {
71 76
   border: none;
72 77
 }
73
-.el-menu--horizontal > .el-menu-item.is-active {
78
+.header-tab .el-menu{
79
+  padding-left: 30px; 
80
+  background-color: transparent;
81
+}
82
+.header-tab .el-menu--horizontal > .el-menu-item.is-active {
74 83
   border: none;
75 84
   background: repeating-linear-gradient(
76
-    rgba(0, 0, 0, 0),
77
-    rgba(78, 132, 255, 1) 100%
85
+    transparent ,
86
+    #4E84FF 100%
78 87
   );
79 88
 }
80
-.el-menu--horizontal > .el-menu-item {
89
+.header-tab .el-menu--horizontal > .el-menu-item {
81 90
   height: 20px;
82 91
   line-height: 20px;
83 92
   padding: 0;
84 93
   margin: 0 20px;
94
+  color: #fff;
85 95
 }
86 96
 </style>

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

@@ -1,12 +1,24 @@
1 1
 <template>
2 2
   <div class="hello">
3 3
     <headerTab></headerTab>
4
-    <div>
5
-
6
-    首页
7
-
4
+  <div class="fullpage-container">
5
+  <div class="fullpage-wp" v-fullpage="opts">
6
+    <div class="page-1 page">
7
+      <div class="part-1" v-animate="{value: 'bounceInLeft'}">
8
+        <!-- <p class="">荟房智慧管家</p> -->
8 9
 
10
+      </div>
11
+    </div>
12
+    <div class="page-2 page">
13
+      <p class="part-2" v-animate="{value: 'bounceInRight'}">vue-fullpage</p>
14
+    </div>
15
+    <div class="page-3 page">
16
+      <p class="part-3" v-animate="{value: 'bounceInLeft', delay: 0}">vue-fullpage</p>
17
+      <p class="part-3" v-animate="{value: 'bounceInRight', delay: 600}">vue-fullpage</p>
18
+      <p class="part-3" v-animate="{value: 'zoomInDown', delay: 1200}">vue-fullpage</p>
9 19
     </div>
20
+  </div>
21
+</div>
10 22
     <footerNav></footerNav>
11 23
 
12 24
   </div>
@@ -19,18 +31,48 @@ import footerNav from "@/components/commonComponents/footerNav";
19 31
 export default {
20 32
   components: { headerTab, footerNav },
21 33
   data() {
22
-    return {};
23
-  }
34
+    return {
35
+      opts: {
36
+        start: 0,
37
+        dir: "v",
38
+        loop: false,
39
+        duration: 500,
40
+        beforeChange: function(prev, next) {
41
+          console.log("before", prev, next);
42
+        },
43
+        afterChange: function(prev, next) {
44
+          console.log("after", prev, next);
45
+        }
46
+      }
47
+    };
48
+  },
49
+  methods: {}
24 50
 };
25 51
 </script>
26 52
 
27 53
 <!-- Add "scoped" attribute to limit CSS to this component only -->
28 54
 <style scoped>
29 55
 .hello {
56
+  width: 100%;
57
+  height: 100%;
58
+}
59
+.hello .page-1 {
30 60
   background: url("../../assets/image/home/background/Group2.jpg") no-repeat
31
-    center 100%;
61
+    center;
62
+  width: 100%;
63
+  height: 100%;
64
+  background-size: 100% 100%;
65
+}
66
+.page-container {
67
+  position: absolute;
68
+  left: 0;
69
+  top: 0;
32 70
   width: 100%;
33 71
   height: 100%;
34 72
 }
73
+.page-container .page {
74
+  height: 100%;
75
+  width: 100%;
76
+}
35 77
 </style>
36 78
 

+ 2
- 0
src/main.js Просмотреть файл

@@ -7,7 +7,9 @@ import router from './router'
7 7
 Vue.config.productionTip = false
8 8
 
9 9
 import 'animate.css'
10
+
10 11
 import 'vue-fullpage/vue-fullpage.css'
12
+
11 13
 import VueFullpage from 'vue-fullpage'
12 14
 Vue.use(VueFullpage)
13 15