<import src="../../template/imageBe/imageBe.wxml" />
<block wx:if="{{state==0}}">
	<view class="b-altText">
		<view class="te1">加载中...</view>
	</view>
</block>
<block wx:if="{{state==1}}">
	<view class="b-altText">
		<view class="te1">您还没有设置收货地址</view>
	</view>
</block>
<block wx:if="{{state==2}}">
	<view class="addressList">
		<radio-group class="radio-group" bindchange="radioChange">
			<view class="li" wx:for="{{addressListData}}" wx:key="index">
				<view class="hh">
					<text class="t1">{{item.username}}</text>
					<text class="t2">{{item.mobile}}</text>
				</view>
				<view class="mm">{{item.province}} {{item.city}} {{item.district}} {{item.street}} {{item.address}}</view>
				<view class="fn">
					<view class="radio {{item.isdefault==1}}" bindtap="defaultAddress" data-id="{{item.id}}">
						<icon class="radio_1" type="circle" size="20" />
						<icon class="radio_2" type="success_circle" size="20" />
						<text>设为默认</text>
					</view>
					<view class="handle edit" bindtap="editAddress" data-item="{{item}}">
						<view class="left">
							<van-icon name="edit" size="36rpx" />
						</view>
						<view class="right">
							<text>编辑</text>
						</view>
					</view>
					<view class="handle del" bindtap="delAddress" data-id="{{item.id}}">
						<view class="left">
							<van-icon name="delete" size="36rpx" />
						</view>
						<view class="right">
							<text>删除</text>
						</view>
					</view>
				</view>
			</view>
		</radio-group>
	</view>
</block>
<view class="b-footerButton">
	<view class="li button-other-red" bindtap="_gotoAddressAdd">
		<text class="name">新增收货地址</text>
	</view>
</view>
<!-- <shopfoot></shopfoot> -->
