<!--packageG/supplierDist/supplierDriver/supplierDriver.wxml-->
<view class="supplierDriver">
    <view class="driver">
        <view class="driverUser">
            <view class="driverUserImg">
                <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/supplierDist/toux.png" alt="" />
            </view>
            <view class="driverUsetDetail">
                <view class="name">{{ info.consigneeInfo.realname }}</view>
                <view class="phone">{{ info.consigneeInfo.mobile }}
                    <!-- 详情内容 -->
                    <icon class="iconfont icon-zx_map_tel" wx:if="{{!isCode}}" catchtap="callPhone"></icon>
                    <!-- 详情内容 -->
                </view>
            </view>
        </view>
        <view class="loaction">
            <view class="loactionDetail">
                <icon class="iconfont icon-icon_location"></icon>
                <view class="toponyms">{{ info.deliveryInfo.has_one_relevance_order.address }}</view>
            </view>
            <!-- 详情内容 -->
            <icon class="iconfont icon-fontclass-tuiguang2" wx:if="{{!isCode}}" catchtap="goToAdress" data-item="{{info.deliveryInfo.has_one_relevance_order}}"></icon>
            <!-- 详情内容 -->
        </view>
    </view>
    <!-- 详情内容 -->
    <view class="detail" wx:if="{{!isCode}}">
        <view class="detail_box">
            <view class="text_1">订单号</view>
            <view class="text">{{ info.deliveryInfo.order_sn }}</view>
        </view>
        <view class="detail_box">
            <view class="text_1">发货时间</view>
            <view class="text">{{ info.deliveryInfo.scan_time }}</view>
        </view>
        <view class="detail_box">
            <view class="text_1">状态</view>
            <view class="text">{{ info.deliveryInfo.delivery_status_text }}</view>
        </view>
    </view>
    <!-- 详情内容 -->
    <view class="products" wx:if="{{info.orderGoodsInfo}}">
        <!-- <view class="productTxt">配送商品</view> -->
        <shop-list infoData="{{info.orderGoodsInfo}}"></shop-list>
    </view>
    <block wx:if="{{!isCode}}">
        <view class="products_img products" wx:if="{{info.deliveryInfo && info.deliveryInfo.confirm_credentials}}">
        <view class="shop_title">图片</view>
        <view class="imgbox">
          <view class="minImgBox" wx:for="{{info.deliveryInfo.confirm_credentials}}" wx:key="ind">
            <image src="{{item}}" alt="" />
          </view>
        </view>
      </view>
    </block>
    <view class="btn">
        <!-- is_send == 1可以发货 -->
        <view class="btnBox" catchtap="sureTap" wx:if="{{isCode && info.is_send == 1}}">确认</view>
        <view class="btnBox" catchtap="sureTap_iscode" data-id="{{info.deliveryInfo.id}}" wx:if="{{!isCode && info.deliveryInfo.delivery_status == 1}}">确认收货</view>
    </view>
</view>

<van-popup show="{{show}}" position="bottom" custom-style="height:17.59rem" bind:close="onClose">
    <view class="popBox">
        <view class="popTop">
            <view></view>
            <view class="span">确认收货</view>
            <icon class="iconfont icon-close11" catchtap="showPop"></icon>
        </view>
        <view class="photoBox">
            <yz_uploader bind:updateImages="updateImages"></yz_uploader>
        </view>
        <view class="btn" catchtap="confirm">确认收货</view>
    </view>
</van-popup>