
<form bindsubmit="siteform" class="site-form">
	<view class="site-input">
		<label>收货人</label>
		<input placeholder="请输入收货人姓名" name="name" value="{{name}}"></input>
	</view>
	<view class="site-input">
		<label>手机号码</label>
		<input placeholder="请输入手机号码" name="mobile" type="number" value="{{mobile}}"></input>
	</view>
	<view class="site-input">
        <label>所在省份</label>
        <picker bindchange="areasChange" value="{{areaIndex}}" range="{{areas}}" range-key="name" name="province_id">
            <view class="picker">
                {{areas[areaIndex].name}}
            </view>
			<image src="/static/icon/rightsArrow.png"></image>
        </picker>
    </view>
	<view class="site-input">
        <label>所在城市</label>
        <picker bindchange="city" value="{{cityIndex}}" range="{{cityList}}" range-key="name" class="conneColor" name="city_id">
            <view class="picker">
                {{cityList[cityIndex].name}}
            </view>
			<image src="/static/icon/rightsArrow.png"></image>
        </picker>
    </view>

    <view class="site-input">
        <label>所在区域</label>
        <picker bindchange="regi" value="{{regiIndex}}" range="{{regiList}}" range-key="name" class="conneColor" name="district_id">
            <view class="picker">
                {{regiList[regiIndex].name}}
            </view>
			<image src="/static/icon/rightsArrow.png"></image>
        </picker>
    </view>
	<view class="site-input">
		<label>收货地址</label>
		<input placeholder="请输入详细地址" name="address" value="{{address}}"></input>
	</view>

	<view class="site-switch" wx-if="{{type != 'Compile'}}">
        <text>设置默认地址</text>
        <switch style='zoom:.6;' bindchange="addressDefault" color="#f57e32"/>
    </view>

	<view class="site-btn">
		<button form-type="submit" size="mini">保存</button>
	</view>

	<view class="pickerView-back {{cityLayer? 'active':''}}" bindtap="cityLayer"></view>
	<view class="pickerView-layer {{cityLayer? 'active':''}}">
		<view class="pickerView-btn">
			<view class="pickerView-cancel" bindtap="cityLayer">取消</view>
			<view class="pickerView-determine" bindtap="cityDetermine">确定</view>
		</view>
		<picker-view class="pickerView" mask-class="pickerView-mask" value="{{pickerValue}}" indicator-class="pickerView-indicator" bindchange="pickerCity">
			<picker-view-column>
				<view class="pickerView-name nowrap" wx:for="{{provinceArr}}" wx:key="province">{{item.name}}</view>
			</picker-view-column>
			<picker-view-column>
				<view class="pickerView-name nowrap" wx:for="{{cityArr}}" wx:key="city">{{item.name}}</view>
			</picker-view-column>
			<picker-view-column>
				<view class="pickerView-name nowrap" wx:for="{{districtArr}}" wx:key="district">{{item.name}}</view>
			</picker-view-column>
		</picker-view>
	</view>
</form>