Files
supplier-dispatch-h5/src/views/rvDriverAuthentication/component/fixedButton.vue

57 lines
979 B
Vue

<template>
<div class="button_fixed" :class="{ 'noBg': noBg }">
<div class="button_wrap" @click="clickHandler">
{{title}}
</div>
</div>
</template>
<script>
export default {
name: "fixedButton",
props: {
title: {
type: String,
default: '下一步'
},
noBg: {
type: Boolean,
default: false
}
},
methods: {
clickHandler() {
this.$emit('myClick')
}
}
}
</script>
<style lang="scss" scoped>
.button_fixed {
width: 100%;
background: #F4F5F7;
padding: 20px 0;
box-sizing: border-box;
position: fixed;
bottom: 0;
left: 0;
z-index: 1111;
.button_wrap {
width: calc(100% - 80px);
height: 46px;
background: #354D93;
border-radius: 23px;
margin: 0 auto;
line-height: 46px;
color: #fff;
font-size: 15px;
text-align: center;
}
}
.noBg {
background: none
}
</style>