<template>
<div>
<div class="bind-tit flex-center">
<div class="bind-tit-name">输入车牌</div>
</div>
<keyboard
:plateNum.sync="plateNum"
@keyboard="keyboardChange"
:show.sync="show"
extraKey="立即开通"
></keyboard>
<div class="w100 flex-center">
<div class="bind-btn flex-center" @tap="openKeyBoard">
开通无感支付
</div>
</div>
<custom-bg></custom-bg>
</div>
</template>
<script>
import keyboard from '@/components/mpvue-keyboard/mpvue-keyboard';
export default {
data() {
return {
show: false,
plateNum: ''
};
},
components: { keyboard },
computed: {},
methods: {
keyboardChange(e) {
this.plateNum = e;
this.navCar();
},
openKeyBoard() {
if (this.plateNum && this.plateNum.length > 6) {
this.navCar();
} else {
uni.showToast({
icon: 'none',
title: '请输入完整的车牌号',
mask: true,
duration: 2000
});
}
},
async navCar() {}
},
mounted() {}
};
</script>
<style>
.bind-tit {
width: 100vw;
height: 180upx;
}
.bind-tit-name {
position: relative;
top: 70upx;
font-family: MicrosoftYaHei;
font-size: 36upx;
font-weight: normal;
font-stretch: normal;
color: #000000;
}
.bind-btn {
position: relative;
top: 180upx;
font-family: MicrosoftYaHei;
font-size: 36upx;
font-weight: normal;
font-stretch: normal;
color: #ffffff;
width: 520upx;
height: 100upx;
background-image: linear-gradient(90deg, #6f85ff 0%, #2178fe 100%),
linear-gradient(#000000, #000000);
background-blend-mode: normal, normal;
border-radius: 50upx;
}
</style>