index.vue
1.23 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
<template>
<div>
<div class="btn">
<div>
<x-button class="default-btn continue" @click.native="leftClick">{{leftText}}</x-button>
<x-button class="default-btn" @click.native="rightClick">{{rightText}}</x-button>
</div>
</div>
</div>
</template>
<script>
import { XButton } from 'vux'
export default {
props: ['leftText', 'rightText'],
components: {XButton},
methods: {
leftClick () {
this.$emit('leftClick')
},
rightClick () {
this.$emit('rightClick')
}
}
}
</script>
<style lang="less" scoped>
.btn {
width: 100%;
background: #fff;
position: fixed;
bottom: 0;
left: 0;
z-index: 100;
&>div {
display: flex;
display: -webkit-flex;
// align-content: center;
justify-content: space-between;
padding: 6px 10px;
.default-btn {
width: 49%;
height: 38px;
background: #89a9cf!important;
margin: 0;
color: #fff!important;
font-size: 16px;
&.continue {
background-color: #fff!important;
color: #89a9cf!important;
&:after {
width: 199%;
border: 1px solid #89a9cf!important;
}
}
}
}
}
</style>