<template>
	<view class="home">
		<view class="content" style="padding-top: 25vh;">
			<span class="font-bold">为了给您提供更个性化的服务</span>
			<span class="font-bold">请您填写以下基本信息</span>
			<view class="flex-col mt-40">
				<view  class="flex-center">
					<span style="margin-right: 30rpx;">您的姓名:</span>
					<input class="inputStyle" v-model="username" type="text" />
				</view>
				<view class="flex-center">
					<span style="margin-right: 30rpx;">手机号码:</span>
					<input class="inputStyle" v-model="phone" type="number" />
				</view>
			</view>
			<view style="margin-top: 15vh;" @click="query">
				<view class="btn2">
					确认
				</view>
			</view>
			<view class="flex-col query" style="gap: 0rpx;">
				<text class="second-color">欢快无限饮&nbsp;&nbsp;饮酒有限度</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				username:'',
				phone:''
			}
		},
		methods: {
			query(){
				if(!this.username && !this.phone){
					uni.showToast({
						title:'您的姓名和手机号都不能为空哦~',
						icon: 'none'
					})
				}else{
					uni.navigateTo({
						url:'/pages_order/info/greet'
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.query {
		position: relative;
		bottom: -15vh;
	}

	.b-btn {
		width: 86%;
		display: flex;
		justify-content: space-between;
		padding-top: 20vh;

		.pre-btn {
			border: 4rpx solid #f1e0c6;
			padding: 16rpx 90rpx;
			border-radius: 66rpx;
			color: #e6bf7f;
		}

		.next-btn {
			background-image: url('../../static/image/home/btn.png');
			background-size: contain;
			background-repeat: no-repeat;
			background-position: center;
			width: 40vw;
			display: flex;
			align-items: center;
			justify-content: center;
			color: white;
		}
	}
	.inputStyle{
		border: 3rpx solid #e5bf7d;
		border-radius: 40rpx;
		color: #e5bf7d;
		padding: 10rpx 10rpx;
	}
</style>