<template>
	<view>
		<u-form>
				<view class="name">
					<text class="text">名称</text>
					<u-input v-model="form.name" placeholder="请输入姓名" placeholder-class="input-class" border="bottom" color="#A0A0A0"></u-input>
				</view>
				<view class="id">
					<text class="text">身份证号</text>
					<u-input v-model="form.idcode" placeholder="请输入身份证号码" placeholder-class="input-class" border="bottom" color="#A0A0A0"></u-input>
				</view>
				
				<view class="payment" @click="show = true">
					<view class="left-payment">
					<text class="text">支付信息</text>
					<text class="label">请选择支付方式</text>
					</view>
					<u-icon name="arrow-right" size="30px" top="10rpx"></u-icon>
				</view>
				<u-divider></u-divider>
				<u-picker mode="region" :show="show" :closeOnClickOverlay="true" @close="show = false" :columns="columns" @confirm="confirmCheckWay"></u-picker>
			
		</u-form>
		<view class="submit-btn">
			<u-button @click="submit" color="linear-gradient(to right, #E86262, #CC3333)" :size="normal" shape="circle" class="submit-btn">提交审核</u-button>
		</view>
		
	</view>
</template>

<script>
import form from 'uview-ui/libs/config/props/form';

	export default {
		data() {
			return {
				show: false,
				submitForm:{
					name:'',
					idcode:''
				}
			}
		},
		methods: {
			submit(){
				console.log('提交',form);
				
					//this.$u.api.submit( this.form )
					uni.$u.toast('提交成功')
				
			},
			confirmCheckWay(e){
				
			}
			
		}
	}
</script>

<style>
	.input-class{
		font-weight:1rpx;
		color: #A0A0A0;
		
	}
	.submit-btn{
		width: 80%;
		margin-top: 50rpx;
		translate: 10%;
	}
	.text{
		margin-left: 20rpx; 
	}
	.payment{
		display: flex;
		justify-content: space-between;
		
	}
	.left-payment{
		display: flex;
		flex-direction: column;
	}
	.label{
		margin-top: 10rpx;
		margin-left: 17rpx;     
		color: #c1c1c1;
		/* font-size: 27rpx; */
	}
	
</style>
