瀏覽代碼

首页修改,公共组件

wangfei 6 年之前
父節點
當前提交
30ded73782

+ 0
- 1
index.html 查看文件

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

+ 2
- 0
package.json 查看文件

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

+ 3
- 1
src/App.vue 查看文件

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

+ 1
- 3
src/components/commonComponents/footerNav.vue 查看文件

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

+ 17
- 7
src/components/commonComponents/headerTab.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="header-tab">
2
   <div class="header-tab">
3
     <el-row>
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
   <el-col :span="12"><el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
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
   <el-menu-item index="2">解决方案</el-menu-item>
7
   <el-menu-item index="2">解决方案</el-menu-item>
8
   <el-menu-item index="3">产品中心</el-menu-item>
8
   <el-menu-item index="3">产品中心</el-menu-item>
9
   <el-menu-item index="4">新闻资讯</el-menu-item>
9
   <el-menu-item index="4">新闻资讯</el-menu-item>
66
   top: 0;
66
   top: 0;
67
   margin: 20px 0;
67
   margin: 20px 0;
68
   background-color: transparent;
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
   border: none;
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
   border: none;
83
   border: none;
75
   background: repeating-linear-gradient(
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
   height: 20px;
90
   height: 20px;
82
   line-height: 20px;
91
   line-height: 20px;
83
   padding: 0;
92
   padding: 0;
84
   margin: 0 20px;
93
   margin: 0 20px;
94
+  color: #fff;
85
 }
95
 }
86
 </style>
96
 </style>

+ 49
- 7
src/components/pages/index.vue 查看文件

1
 <template>
1
 <template>
2
   <div class="hello">
2
   <div class="hello">
3
     <headerTab></headerTab>
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
     </div>
19
     </div>
20
+  </div>
21
+</div>
10
     <footerNav></footerNav>
22
     <footerNav></footerNav>
11
 
23
 
12
   </div>
24
   </div>
19
 export default {
31
 export default {
20
   components: { headerTab, footerNav },
32
   components: { headerTab, footerNav },
21
   data() {
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
 </script>
51
 </script>
26
 
52
 
27
 <!-- Add "scoped" attribute to limit CSS to this component only -->
53
 <!-- Add "scoped" attribute to limit CSS to this component only -->
28
 <style scoped>
54
 <style scoped>
29
 .hello {
55
 .hello {
56
+  width: 100%;
57
+  height: 100%;
58
+}
59
+.hello .page-1 {
30
   background: url("../../assets/image/home/background/Group2.jpg") no-repeat
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
   width: 100%;
70
   width: 100%;
33
   height: 100%;
71
   height: 100%;
34
 }
72
 }
73
+.page-container .page {
74
+  height: 100%;
75
+  width: 100%;
76
+}
35
 </style>
77
 </style>
36
 
78
 

+ 2
- 0
src/main.js 查看文件

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