<template>
	<view>
		<form @submit="formSubmit" @reset="formReset">
			<view class="cu-form-group">
				<view class="title"><span style="color:red;display: inline-block; vertical-align:inherit;margin-right:4upx">*</span>1、姓名</view>
				<input class="text-right" placeholder="请输入姓名" :value="form.name" name="input" @input="updateInputVal($event,'name')"></input>
			</view>
			<view class="cu-form-group">
				<view class="title"><span style="color:red;display: inline-block; vertical-align:inherit;margin-right:4upx">*</span>3、手机号码</view>
				<input class="text-right" placeholder="请输入手机号码" type="number" :value="form.cellphone" name="input" @input="updateInputVal($event,'cellphone')"></input>
			</view>
			<view class="padding">
				<button form-type="submit" class="cu-btn block bg-blue margin-tb-sm lg">下一步</button>
			</view>
		</form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
			// 更新输入框绑定的表单内容
			updateInputVal(event, props) {
				this.form[props] = event.target.value
			},
			
		}
	}
</script>

<style>

</style>
