<template>
	<view class="web_box">
		<!-- <u-navbar height="44" leftText="职称申报" @leftClick="leftClick" :autoBack="true" bgColor="#fff">
		</u-navbar> -->
		<view class="form vflex jbetween">
			<u--form labelPosition="top" labelWidth="100%" ref="form1">
				<u-form-item label="1.您目前的学历？" prop="education" ref="item1">
					<u--input v-model="education" border="none"></u--input>
				</u-form-item>
				<u-form-item label="2.您的姓名？" prop="name" ref="item1">
					<u--input v-model="name" border="none"></u--input>
				</u-form-item>
				<u-form-item label="3.您的手机？" prop="phone" ref="item1">
					<u--input v-model="phone" border="none"></u--input>
				</u-form-item>
				<u-form-item label="4.您需要评审的专业？" prop="specialized" ref="item1">
					<u--input v-model="specialized" border="none"></u--input>
				</u-form-item>
				<u-form-item label="5.您的出生年月？(XXXX-XX-XX)" prop="birth" ref="item1">
					<u--input v-model="birth" border="none"></u--input>
				</u-form-item>
			</u--form>
			<u-button @click="submit">提交信息</u-button>
		</view>
	</view>
</template>

<script>
	import $api from '@/static/js/api.js'
	
	export default {
		data() {
			return {
				education: '',
				name: '',
				phone: '',
				specialized: '',
				birth: ''
			}
		},
		onLoad() {
	
		},
		methods: {
			leftClick() {
			},
			// 提交表单
			submit() {
				var that = this
				if ($api.formCheck(that.education,"required") && $api.formCheck(that.name,"truename") && $api.formCheck(that.phone,"phone") && $api.formCheck(that.specialized,"required") && $api.formCheck(that.birth,"date")) {
					$api.req({
						url: '/api/Index/submitReview',
						data: {
							schooling: that.education,
							name: that.name,
							phone: that.phone,
							professional: that.specialized,
							date_brith: that.birth
						}
					}, function(res) {
						if (res.code == 1) {
							$api.jump('/pages/index/declare/declare_success')
						}
					})
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.web_box::v-deep {
		background-color: #F8F8F8;
		padding: 0 72rpx;
		
		.u-navbar {
			width: 100%;
			box-sizing: border-box;
			padding: 36px 16px 0 0;
		}
		.form {
			width: 100%;
			padding: 80rpx 0;
		}
		.u-input {
			height: 62px;
			background: #FFFFFF;
			box-shadow: 1px 1px 2px 0px rgba(189,189,189,0.5);
			border-radius: 8px;
			box-sizing: border-box;
			padding: 10rpx 20rpx !important;
		}
		.u-button {
			margin-top: 228rpx;
			width: 100% !important;
			height: 40px !important;
			background: linear-gradient(135deg, #53BDFF 0%, #2988FE 100%) !important;
			border-radius: 20px !important;
			font-size: 18px;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 25px;
		}
	}
</style>