<template>
	<view style="width: 100%;">
		<xt-verify-code v-model="verifyCode" inputType='text' size="17" @confirm="confirm"></xt-verify-code>
		<view class="confirm-button">
			<u-button @click="ok" type="primary" :custom-style="{background:'#1283d4'}" shape="circle">确认输入</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				verifyCode: ''
			}
		},
		methods: {
			confirm(code){
				console.log(code)
				this.verifyCode = code
			},
			ok(){
				if(this.verifyCode==''){
					uni.showToast({
						title: "请输入VIN码",
						icon:"none"
					})
				}else{
					uni.redirectTo({
						url: "/pages/vinInput/confirmVin?verifyCode="+this.verifyCode
					})
				}
			}
		}
	}
</script>

<style lang="less">
.confirm-button{
	padding: 50rpx;
}
</style>
