<template>
	<form class="login-form">
		<view class="form-item">
			<view class="form-lable" @click.stop="selectAreaCode()"><text>+{{ areaCode }}</text><text
					class="form-lable-icon iconfont">&#xeb6d;</text></view>
			<input class="form-input" v-model="formData.user_string" name="user_string"
				placeholder-class="form-input-place" placeholder="请输入您的手机号" />
		</view>
		<view class="form-item">
			<input type="password" class="form-input" v-model="formData.password" name="password"
				placeholder-class="form-input-place" placeholder="请输入您的登录密码" />
		</view>
		<!-- <view class="form-agreement">
			<view class="agreement-confirm">
				<text class="confirm-icon iconfont">&#xe6c5;</text>
			</view>
			<text>我已阅读并同意</text>
			<text class="agreement-name">《用户协议》</text>
		</view> -->
		<!-- 		<view class="form-hint">
			已有账号？<text class="hint-btn">立即登录</text>
		</view> -->

	</form>
</template>

<script>
	import {
		reverseBack
	} from "@/utils/common.js"


	export default {
		props: {
			areaCode: {
				type: Number,
				default: 86
			},
			formData: {
				type: Object,
				default: () => {
					return {
						user_string: '',
						password: ''
					}
				}
			},
		},
		data() {
			return {
	 
				// formData: {
				// 	user_string: '123456',
				// 	password: 'Aa123456'
				// }
			};
		},
		methods: {
			selectAreaCode() {
				uni.navigateTo({
					url: '/pages/login/area-code'
				})
			},
			
		}
	}
</script>

<style lang="scss" scoped>
	@import "~./../common.scss"
</style>