<import src="../../module/header.wxml"/>
<import src="../../module/footer.wxml"/>
<template 
    is="header"
    data="{{title:'预约卖车',headerheight:headerheight,hasback:false}}"
	/>
<page-scroll 
  className="conent"
  styleSheet="height:{{windowh-headerheight}}rpx;"
  scroll-y="{{selectbar==''?'true':'false'}}"
  bindscrolltolower="{{hasloadall?'':'getMyBuy'}}"
>
  	<image class="sell_banner" src="../../img/sellbanner.png"/>
  	<view
  		class="sell_form"
  	>
  		<view
	  		class="sell_form_t"
	  	>
	  		完善信息，预约卖车
	  	</view>

	  	<view
	  		class="sell_form_item"
	  	>
	  		<view class="sell_form_it">
	  			<view class="sell_form_itw">
	  				*
	  			</view>
	  			联系方式
	  		</view>
  			<input
  				class="sell_form_input"
  				placeholder="请输入"
  				bindinput="bindMobile"
  				type="number"
  				placeholder-style="color:#9B9B9B"
  			/>
	  	</view>
	  	<view
	  		class="sell_form_item"
	  	>
	  		<view class="sell_form_it">
	  			<view class="sell_form_itw">
	  				*
	  			</view>
	  			车型
	  		</view>
	  		<view
  				class="sell_form_input"
  				bindtap="showSeriesSelect"
  			>
  				<view wx:if="{{series&&series.car_series_name}}" class="series_val">{{series.car_series_name}}</view>
  				<view wx:else class="placeholder_val">请选择</view>
  			</view>
  			<!-- <picker
		  		class="sell_form_picker"
				bindchange="bindSeriesChange" 
				value="{{selectseries['0']}}" 
				range="{{series['0']}}"
				range-key="brand_name"
				data-index="0"
				custom-item="{{customItem}}">
			    <view class="picker">
			      {{series['0'][selectseries['0']].brand_name||'请选择>'}}
			    </view>
		  	</picker>
  			<picker
		  		class="sell_form_picker"
				bindchange="bindSeriesChange" 
				value="{{selectseries['1']}}" 
				range="{{series['1']}}"
				range-key="car_series_name"
				data-index="1"
				custom-item="{{customItem}}">
			    <view class="picker">
			      {{series['1'][selectseries['1']].car_series_name||'请选择>'}}
			    </view>
		  	</picker>
  			<picker
		  		class="sell_form_picker"
				bindchange="bindSeriesChange" 
				value="{{selectseries['2']}}" 
				range="{{series['2']}}"
				range-key="car_model_name"
				data-index="2"
				custom-item="{{customItem}}">
			    <view class="picker">
			      {{series['2'][selectseries['2']].car_model_name||'请选择>'}}
			    </view>
		  	</picker> -->
  		</view>
	  	<view
	  		class="sell_form_item"
	  	>
	  		<view class="sell_form_it">
	  			<view class="sell_form_itw">
	  				*
	  			</view>
	  			上牌时间
	  		</view>
		  	<picker 
		  		class="sell_form_picker"
		  		mode="date" 
		  		value="{{date}}" 
		  		start="1998-01-01" 
		  		end="2020-01-01" 
		  		bindchange="bindDateChange">
			    <view class="picker">
			      当前选择: {{date}}
			    </view>
		  	</picker>
  		</view>
	  	<view
	  		class="sell_form_item"
	  	>
	  		<view class="sell_form_it">
	  			<view class="sell_form_itw">
	  				*
	  			</view>
	  			行驶里程
	  		</view>
  			<input
  				class="sell_form_input"
  				placeholder="请输入"
  				bindinput="getMileage"
  				bindblur="initMileage"
  				value="{{mileage}}"
  				placeholder-style="color:#9B9B9B"
  			/>
  			<view class="sell_form_itr">万公里</view>
	  	</view>
	  	<view
	  		class="sell_form_item"
	  	>
	  		<view class="sell_form_it">
	  			<view class="sell_form_itw">
	  				*
	  			</view>
	  			上牌地址
	  		</view>
		  	<picker
		  		class="sell_form_picker" 
				bindchange="bindRegionChange" 
				value="{{areaselect['0']}}" 
				range="{{area['0']}}"
				range-key="area_name"
				data-index="0"
				bindchange="changeArea"
				custom-item="{{customItem}}">
			    <view class="picker">
			      {{area['0'][areaselect['0']].area_name||'请选择>'}}
			    </view>
		  	</picker>
		  	<picker
		  		class="sell_form_picker"
				bindchange="bindRegionChange" 
				value="{{areaselect['1']}}" 
				range="{{area['1']}}"
				range-key="area_name"
				data-index="1"
				bindchange="changeArea"
				custom-item="{{customItem}}">
			    <view class="picker">
			      {{area['1'][areaselect['1']].area_name||'请选择>'}}     
			    </view>
		  	</picker>
  		</view>
  	</view>
  	<view
  		class="upload_img_box"
  	>	
  		<view
	  		class="upload_img_t"
	  	>	
	  		上传车辆照片
	  	</view>
	  	<view
	  		class="upload_img_list"
	  	>
	  		<block wx:for="{{imgssp}}" wx:key="{{item}}">
	  			<view class="upload_img_item">
			  		<image
			  			data-index="{{index}}"
			  			bindtap="uploadImg"
			  			class="upload_img_item_pic"
			  			src="{{imgs[index]||'../../img/upload.png'}}"
			  		/>
			  		<view 
			  			data-index="{{index}}"
			  			bindtap="deletePic"
			  			wx:if="{{imgs[index]}}"
			  			class="upload_img_item_deletebg">
				  		<image 
				  			class="upload_img_item_delete"
				  			src="../../img/delete2.png"
			  			/>
			  		</view>
		  		</view>
	  		</block>
	  	</view>
  	</view>
  	<view 
  		class="sub_sell"
  		bindtap="subSell"
  		>提交预约</view>
  	<image class="sell_bottom_banner" src="../../img/sell.png"/>
  	<template 
      is="footer" 
      data="{{local:2,footerheight:footerheight}}"
    />  
</page-scroll>
<brandlist
  getbrand="{{getbrand}}"
  getseries="{{getseries}}"
  show="{{brandlistshow}}"
  bind:close="closeBrandList"
  bind:select="selectSeries"
/>
<!-- <include src="../../module/logs/logs.wxml"/> -->