<template>
	<view class="form">
		<u-form :model="form" ref="uForm">
			<view class="upload">
				<u-upload max-count="5" upload-icon="photo"></u-upload>
				<text>发布房源图片({{count}}/5)</text>
			</view>
				
				<u-form-item label="标题" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<u-input v-model="form.name" placeholder="请输入标题以便吸引人的注意哦" placeholder-class="input-class" border="none"></u-input>
				</u-form-item>
				<u-form-item label="区域" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<u-cell is-link="true" @click="show1 = true"><text>111111</text>
					</u-cell>
					<u-picker mode="region" :show="show1" :closeOnClickOverlay="true" @close="show1 = false" :columns="columns" @confirm="confirm"></u-picker>
				</u-form-item>
				<u-form-item label="地址" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<u-input v-model="form.name" placeholder="请输入店铺地址" placeholder-class="input-class" border="none"></u-input>
				</u-form-item>
				<u-form-item label="区域" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<text @click="show2 = true">123</text>
					<u-picker mode="region" :show="show2" :closeOnClickOverlay="true" @close="show2 = false"></u-picker>
				</u-form-item>
				<u-form-item label="区域" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<text @click="show3 = true">123</text>
					<u-picker mode="region" :show="show3" :closeOnClickOverlay="true" @close="show3 = false"></u-picker>
				</u-form-item>
				<u-form-item label="标题" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<u-input v-model="form.name" placeholder="请输入标题以便吸引人的注意哦" placeholder-class="input-class" border="none"></u-input>
				</u-form-item>
				<u-form-item label="标题" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<u-input v-model="form.name" placeholder="请输入标题以便吸引人的注意哦" placeholder-class="input-class" border="none"></u-input>
				</u-form-item>
				<u-form-item label="标题" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<u-input v-model="form.name" placeholder="请输入标题以便吸引人的注意哦" placeholder-class="input-class" border="none"></u-input>
				</u-form-item>
				<u-form-item label="标题" label-position="top" border-bottom="true" labelStyle="margin-left: 20px">
					<u-input v-model="form.name" placeholder="请输入标题以便吸引人的注意哦" placeholder-class="input-class" border="none"></u-input>
				</u-form-item>
			</u-form>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				ShopInfomation:{
				city:'',
				area:'',
				count:0,},
				
				form:{
					title:''
				},
				columns:[
					['中国', '美国'],
					['深圳', '厦门', '上海', '拉萨']
				],
				show1:false,
				show2:false,
				show3:false,
			}
			
		},
		methods: {
			confirm(e) {
			                this.city = e.value[0]
							this.area = e.value[1]
			                this.show1 = false
						}
		}
	}
</script>

<style lang="scss">
	.form{
		margin-left: 20px;
	}
	.input-class{
		font-size: 30rpx;
		font-weight:1px;
		border-style: none
	}
	.upload{
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		background-color: #F8F8F8;
		margin-right: 20px;
	}
</style>
