index.vue
763 Bytes
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
<template>
<div>
<div class="btn">
<div>
<x-button class="default-btn" @click.native="next">{{btnText}}</x-button>
</div>
</div>
</div>
</template>
<script>
import { XButton } from 'vux'
export default {
components: { XButton },
props: ['btnText'],
methods: {
next () {
this.$emit('btnClick')
}
}
}
</script>
<style lang="less" scoped>
.btn {
width: 100%;
background: #fff;
position: fixed;
bottom: 0;
left: 0;
z-index: 100;
&>div {
padding: 6px 10px;
.default-btn {
width: 100%;
height: 38px;
background: #89a9cf!important;
color: #fff!important;
font-size: 16px;
&:after {
border: 1px solid #89a9cf!important;
}
}
}
}
</style>