<!-- 无收货地址提醒页面 -->
<view class="topbcolor"></view>
<view class="nothing" wx:if="{{is_address_read && addresses.length<=0}}">
    <view class="image flex-level">
        <image src="{{iurl}}/miniapp/images/nothingaddress.png"></image>
    </view>

    <view class="nothingaddress flex-level">
        <view>暂无收货地址</view>
    </view>

    <view class="address flex jc_sb" style="width:76%; margin-left:12%">

        <navigator bindtap="get_wx" class="ye">
            <view class="add">+</view>
            <view class="addAddress">获取微信地址</view>
        </navigator>

        <navigator bindtap="go_url" data-url="/packageF/pages/user/add_address/add_address">
            <view class="add">+</view>
            <view class="addAddress">新建收货地址</view>
        </navigator>


    </view>
</view>

        <!-- 收货地址页面集合框架 -->
<view class="container" wx:if="{{addresses.length>0}}">
    <!-- 所有的收货地址框架 -->
    <view class="address-box">

        <!-- 单个收货地址框架 -->
        <view class="address-user" wx:for="{{addresses}}" wx:key="index">
            <!-- 选择icon
            <view class="icon">
              <icon type="success" color="red" size="33rpx" wx:if="{{item.is_pickup==1}}"  bindtap="add_is_pickup" data-icon="{{index}}"></icon>
              <icon class="no_xuanze" color="white" wx:if="{{item.is_pickup==0}}"  bindtap="add_is_pickup" data-icon="{{index}}"></icon>
            </view>-->

            <!-- 收货地址全部信息 -->
            <view class="address" bindtap="add_is_pickup" data-ind="{{index}}">
                <!-- 个人直接信息 -->
                <view class="user">
                    <!-- 名字 -->
                    <view class="userName">{{item.consignee}}</view>
                    <!-- 电话 -->
                    <view class="userPhone">{{item.mobile}}</view>
                    <view class="default" wx:if="{{item.is_default}}">默认地址</view>
                </view>

                <!-- 收货地址 -->
                <view class="ShippingAddress ellipsis-2 ">{{item.more_address}} {{item.address}}</view>
            </view>

            <!-- 编辑地址图片 -->
            <view class="edit" bindtap="editAddress" data-id="{{item.address_id}}">
                <image src="{{iurl}}/miniapp/images/dpr.png"></image>
            </view>
        </view>

    </view>
    <view style="height:210rpx"></view>

    <!-- 新建收货地址 -->
    <view class="new flex jc_sb">
        <navigator bindtap="get_wx" class="ye">
            <view class="add">+</view>
            <view class="addAddress">获取微信地址</view>
        </navigator>

        <navigator bindtap="go_url" data-url="/packageF/pages/user/add_address/add_address">
            <view class="add">+</view>
            <view class="addAddress">新建收货地址</view>
        </navigator>
    </view>
</view>
<warn id="warn"></warn>