<view class="address-list" wx:if="{{addressArr != ''}}">
	<view class="address" wx:for="{{addressArr}}" wx:key="addressList" wx:for-index="addressIndex">
		<view class="address-name">{{item.name}}<text>{{item.mobile}}</text></view>
		<view class="address-info">
			<block wx:if="{{type == 'selectAddress'}}">
				<text class="address-info-tag" wx:if="{{item.is_default}}">默认</text>
			</block>
			{{item.all_address}}
		</view>
		<view class="address-tool" wx:if="{{type == 'selectAddress'}}">
			<view class="address-tool-btn yellow" bindtap="selectAddress" data-index="{{addressIndex}}">
				<image src="/static/icon/choice.png"></image>
				选择地址
			</view>
		</view>
		<view class="address-tool" wx:else>
			<view class="address-tool-btn" bindtap="addressRemove" data-index="{{addressIndex}}" data-id="{{item.id}}">删除</view>
			<navigator class="address-tool-btn" url="/pages/address_form/address_form?type=Compile&id={{item.id}}">编辑</navigator>
			<block wx:if="{{item.is_default == 0}}">
				<view class="address-tool-btn acitve" bindtap="addressDefault" data-index="{{addressIndex}}" data-id="{{item.id}}">
					<image src="/static/icon/select.png"></image>设为默认地址
				</view>
			</block>
			<block wx:else>
				<view class="address-tool-btn acitve">
					<image src="/static/icon/select_avtive.png"></image>默认地址
				</view>
			</block>
		</view>
	</view>
</view>

<view class="pack-center pages-hint" wx:else>
	<image src="https://www.lvmeimall.com/assets/mobile/img/address_null_icon.png"></image>
	<view>还未添加收货地址</view>
</view>

<view class="address-footer">
	<navigator url="/pages/address_form/address_form?type=Add">添加地址</navigator>
</view>