<!--pages/member/addressEdit/addressEdit.wxml-->
<view class="addcontent"  wx:if="{{opren}}">
	<view class="address_a">
		<view class="ul">
			<view class="li">
				<view class="span">收件人：</view>
				<input type="text" value="{{form.username}}" maxlength="{{20}}" placeholder="请输入收件人" bindinput="usernameinp" />
			</view>
			<view class="li">
				<view class="span">联系电话：</view>
				<input type="number" value="{{form.mobile}}" maxlength="{{15}}" placeholder="请输入联系电话" bindinput="mobileinp" />
			</view>
		</view>
	</view>
	<view class="defaultAdd">
		<view class="left">
			设置默认地址：
		</view>
		<view class="right">
			<van-switch checked="{{form.isDefault}}" bind:change="isDefaultChange" />
		</view>
	</view>
	<view class="addName">
		<van-cell title="所在地区：" value="{{addressName?addressName:'请选择收货地址'}}" is-link bind:click="openDateLwtbtn" />
	</view>
	<view class="addstreet" wx:if="{{isShowStreet}}">
		<van-cell title="街道：" value="{{form.streetName?form.streetName:'请选择街道'}}" is-link bind:click="streetChoose" />
	</view>
	<view class="text_adderss">
		<input placeholder="请输入详细地址" bindinput="addressinp" value="{{form.address}}" maxLength="100" />
	</view>
	<view class="adderss_btn" catchtap="alterAddresshandle">
		<view class="button">保存</view>
	</view>
</view>
<van-popup custom-style="width:100%;height:100%;" show="{{streetShow}}" position="right" overlay="{{false}}"  dataList='{{true}}' wx:if="{{streetShow}}">
	<view class="streetContent">
		<van-nav-bar title="选择街道" left-text="" right-text="" left-arrow bind:click-left="streetClose" />
		<van-cell-group>
			<van-cell wx:for="{{districtVal}}" wx:key="index" title="{{item.areaname}}" data-strname="{{item.areaname}}" is-link bindtap="streetConfirm" />
		</van-cell-group>
	</view>
</van-popup>
<view class="b-mask {{openDateLw}}" bindtap="_closeDateLw"></view>
<view class="dateBe {{openDateLw}}">
	<view class="head">
		<view class="ll" bindtap="_closeDateLw">取消</view>
		<view class="rr" bindtap="_okAddress">确定</view>
	</view>
	<view class="main">
		<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{[pickerValue[0],pickerValue[1],pickerValue[2]]}}"
		 bindchange="bindChange">
			<picker-view-column id="provinceData">
				<view wx:for="{{provinceData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
			</picker-view-column>
			<picker-view-column id="cityData">
				<view wx:for="{{cityData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
			</picker-view-column>
			<picker-view-column id="districtData">
				<view wx:for="{{districtData}}" wx:key="index" style="line-height: 50px">{{item.areaname}}</view>
			</picker-view-column>
		</picker-view>
	</view>
</view>
