<template>
	<form class="login-form">
		<view class="form-item">
			<view class="form-lable"><text @click.stop="selectAreaCode()">+{{ accounts.areaCode  }}</text><text
					class="form-lable-icon iconfont">&#xeb6d;</text></view>
			<input class="form-input" v-model="accounts.phone" name="phone" placeholder-class="form-input-place"
				placeholder="请输入您的手机号" />
		</view>
		<view class="form-item">
			<input class="form-input" v-model="accounts.invitationCode" name="input"
				placeholder-class="form-input-place" placeholder="邀请码" />
		</view>
	</form>
</template>

<script>
	export default {
		props: {
			// :account.sync="account" :invitationCode.sync="invitationCode"
		
			accounts: {
				type: Object,
				default: () => {
					return {}
				}
			}
		},
		methods: {
			selectAreaCode() {
				uni.navigateTo({
					url: '/pages/login/area-code'
				})
			}
		}
	}
</script>

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