|
|
<template name="orderItem">
|
|
|
<view class="order" data-order_code="{{item.order_code}}" bindtap="navToOrderDetail">
|
|
|
<view class="header">
|
|
|
订单编号:{{item.order_code}}
|
|
|
<view class="order-status">{{item.status_str}}</view>
|
|
|
</view>
|
|
|
<view class="order-goods">
|
|
|
<block wx:for="{{item.order_goods}}" wx:for-item="good" wx:key="product_id">
|
|
|
<view class="order-good" data-id="">
|
|
|
<view class="thumb-wrap">
|
|
|
<image class="thumb" src="{{good.goods_image}}"></image>
|
|
|
<image wx:if="{{good.goods_type=='gift' || good.goods_type=='price_gift'}}"class='productTag' src="{{good.goods_type=='gift'?'images/zp-lab@2x.png':'images/jjg-lab@2x.png'}}"></image>
|
|
|
</view>
|
|
|
<view class="deps">
|
|
|
<view class="name row">{{good.product_name}}</view>
|
|
|
<view class="row">
|
|
|
<view class="color">
|
|
|
颜色:{{good.color_name}}
|
|
|
</view>
|
|
|
<view class="size">
|
|
|
尺码:{{good.size_name}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="row price-wrap">
|
|
|
<view class="price">
|
|
|
¥{{good.real_pay_price}}
|
|
|
</view>
|
|
|
<view wx:if="{{good.sales_price}}" class="count" style='text-decoration:line-through;'>
|
|
|
¥{{good.sales_price}}
|
|
|
</view>
|
|
|
<view class="count">
|
|
|
× {{good.buy_number}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<block wx:if="{{good.expect_arrival_time}}">
|
|
|
<text class="order-tip" >上市期:{{good.expect_arrival_time}}</text>
|
|
|
</block>
|
|
|
</view>
|
|
|
</block>
|
|
|
</view>
|
|
|
<view class="footer">
|
|
|
共{{item.buy_total}}件商品 实付
|
|
|
<view class="sum-cost">¥{{item.amount}}</view>
|
|
|
(含运费¥{{item.shipping_cost}})
|
|
|
</view>
|
|
|
<view wx:if="{{item.attribute == 9}}" class="order-opt" style='font-size:28rpx;color:#444444'>*此订单只能在APP端操作</view>
|
|
|
<view wx:elif="{{item.links.length > 0}}" class="order-opt">
|
|
|
<block wx:if="{{item.counter_flag == 'Y' && item.is_cancel != 'Y' && item.pay_lefttime > 0}}">
|
|
|
<view class="counterView">
|
|
|
<image class="timeIcon" src='../../../static/images/shijian@3x.png'></image>
|
|
|
<text class="counter">剩余 {{item.time_left}}</text>
|
|
|
</view>
|
|
|
</block>
|
|
|
|
|
|
<block wx:for="{{item.links}}" wx:for-item="link" wx:key="order_code">
|
|
|
<block wx:if="{{link == 'closeOrder'}}">
|
|
|
<view class="btn" formType="submit" type="default" size="{{defaultSize}}" plain='true'
|
|
|
catchtap="cancelOrder" data-code="{{item.order_code}}">取消订单</view>
|
|
|
</block>
|
|
|
<block wx:if="{{link == 'buyNow'}}">
|
|
|
<view class="btn pay" catchtap="payNow" data-code="{{item.order_code}}"
|
|
|
data-amount="{{item.amount}}">立即付款
|
|
|
</view>
|
|
|
</block>
|
|
|
<block wx:if="{{link == 'delOrder'}}">
|
|
|
<view class="btn cancel" catchtap="delOrder" data-code="{{item.order_code}}">删除订单</view>
|
|
|
</block>
|
|
|
<block wx:if="{{link == 'getExpress'}}">
|
|
|
<view class="btn cancel" catchtap="expressDetail" data-code="{{item.order_code}}">查看物流</view>
|
|
|
</block>
|
|
|
<block wx:if="{{link == 'confirm'}}">
|
|
|
<view class="button pay" catchtap="confirmReceive" data-code="{{item.order_code}}">确认收货
|
|
|
</view>
|
|
|
</block>
|
|
|
<block wx:if="{{link == 'refundApply'}}">
|
|
|
<view class="button cancel" catchtap="refundOrder" data-code="{{item.order_code}}">申请退款
|
|
|
</view>
|
|
|
</block>
|
|
|
</block>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template> |
...
|
...
|
|