shipped.wxml 3.1 KB
<view class="payboxs">
    <view bindtap="payment">
        <text>待付款</text>
    </view>
    <view bindtap="delivery">
        <text>待发货</text>
    </view>
    <view class="payactive">
        <text>已发货</text>
    </view>
    <view bindtap="completed">
        <text>已完成</text>
    </view>
</view>
<view class="pays" wx:if="{{!orders}}">
    <text class="nooders">暂无已发货订单</text>
</view>
<view class="pays" wx:else>
    <view class="paypay" data-id="{{item.id}}" wx:for="{{orders}}" wx:key="{{item.id}}">
        <view class="payorder">
            <text>订单编号: {{item.num}}</text>
        </view>
        <view wx:if="item.tracking_num&&item.tracking_code">
            <view class="payorder">
                <text>物流编号:{{item.tracking_num}}</text>
            </view>
            <view class="payorder">
                <view>
                    <text>配送方式:</text>
                    <text wx:if="{{item.tracking_code=='ZTO'}}">中通快递</text>
                    <text wx:elif="{{item.tracking_code=='YTO'}}">圆通快递</text>
                    <text wx:elif="{{item.tracking_code=='YD'}}">韵达速递</text>
                    <text wx:elif="{{item.tracking_code=='YZPY'}}">邮政快递包裹</text>
                    <text wx:elif="{{item.tracking_code=='EMS'}}">EMS</text>
                    <text wx:elif="{{item.tracking_code=='JD'}}">京东物流</text>
                    <text wx:elif="{{item.tracking_code=='QFKD'}}">全峰快递</text>
                    <text wx:elif="{{item.tracking_code=='GTO'}}">国通快递</text>
                    <text wx:elif="{{item.tracking_code=='UC'}}">优速快递</text>
                    <text wx:elif="{{item.tracking_code=='DBL'}}">德邦</text>
                    <text wx:elif="{{item.tracking_code=='FAST'}}">快捷快递</text>
                    <text wx:elif="{{item.tracking_code=='ZJS'}}">宅急送</text>
                    <text wx:else>快递</text>
                </view>
            </view>
        </view>
        <view class="paylist" wx:for="{{item.details}}" wx:for-item="i" wx:key="{{i}}">
            <navigator url="../../index/paydetail/paydetail?id={{item.id}}&type=2">
                <image src="{{i.thumb}}"></image>
            </navigator>
            <view class="payright">
                <view>
                    <text class="payname">{{i.name}}</text>
                </view>
                <text class="standard">{{i.standard?i.standard:''}}</text>
                <view class="payprice">
                    <text class="rightprice">¥{{i.pprice}}</text>
                    <text class="rightnum">数量:{{i.count}}</text>
                </view>
            </view>
        </view>
        <view class="gopay">
            <navigator hoverClass="none" url="../logistic/logistic?tracking_code={{item.tracking_code}}&tracking_num={{item.tracking_num}}&num={{item.num}}&oders={{orders}}">
                <text wx:if="item.tracking_num&&item.tracking_code">查看物流</text>
            </navigator>
            <text bindtap="pay_order" data-id="{{item.id}}" data-index="{{index}}">确认收货</text>
        </view>
    </view>
</view>