<!-- 我的地址 -->
<view class="address" wx:if="{{addressArr}}">
    <view class="uni-border-down address-list" wx:for="{{addressArr}}" wx:key="addressArr" wx:for-index="addressIndex">
        <view class="address-name">
            {{item.name}}<text>{{item.mobile}}</text>
            <view class="address-state" wx:if="{{item.default == true}}"><text class="active">默认</text></view>
            <!-- <text>学校</text> -->
        </view>
        <view class="address-cont">
            <view class="address-site">
                <view class="address-text">{{item.full_address}}</view>
                <block wx:if="{{!item.default}}">
                    <view class="address-default" bindtap="addressDefault" data-index="{{addressIndex}}"
                        data-id="{{item.address_id}}">
                        <image src="/static/mall_icon/select.png"></image>设为默认地址
                    </view>
                </block>
                <block wx:else>
                    <view class="address-default">
                        <image src="/static/mall_icon/select_avtive.png"></image>默认地址
                    </view>
                </block>
            </view>
            
            <view class="address-tool" wx:if="{{addressType == 'selectAddress'}}">
                <view class="address-tool-btn" bindtap="selectAddress" data-index="{{addressIndex}}">选择地址</view>
            </view>
            <view class="address-tool" wx:else>
                <navigator hover-class="none" url="/pages/mall/mall_address_form/mall_address_form?type=Compile&id={{item.address_id}}&default={{item.default}}">
                    <image src="/static/mall_icon/mallAddress_modify.png"></image>
                </navigator>
                <image bindtap="addressRemove" data-index="{{addressIndex}}" data-id="{{item.address_id}}" src="/static/mall_icon/mallAddress_del.png"></image>

            </view>
        </view>
    </view>
</view>

<view class="pack-center pages-hint" wx:else>
	<image src="/static/images/null_icon.png"></image>
	<view>还未添加收货地址</view>
</view>

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