|
@@ -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
|
|