share-bottom.vue
1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<template>
<div class="share-bottom clearfix" v-bind:class="{ 'hidden': close }">
<span class="icon close" @click="closeBottom()"></span>
<span class="icon blk-icon"></span>
<a href="javascript:;" class="new-user">新用户送千元礼包</a>
<a href="http://m.yohoblk.com" class="download">立即下载</a>
</div>
</template>
<style>
.share-bottom {
width: 100%;
padding: 20px 10px;
background: #fff;
position: fixed;
left: 0;
bottom: 0;
height: 100px;
border-top: #ececec solid 2px;
.close {
position: fixed;
left: 0;
bottom: 60px;
font-size: 40px;
}
img {
float: left;
}
.blk-icon {
font-size: 64px;
margin-left: 50px;
margin-right: 20px;
float: left;
}
a {
border: #000 solid 2px;
padding: 10px;
border-radius: 40px;
float: left;
}
.new-user {
float: left;
border: #fff solid 2px;
}
.download {
float: right;
margin-right: 20px;
}
}
.hidden {
display: none;
}
</style>
<script>
module.exports = {
data() {
return {
close: false
};
},
methods: {
closeBottom() {
this.close = true;
}
}
};
</script>