Authored by xuqi

order status

... ... @@ -993,11 +993,14 @@
orderStatus: '订单成功', //订单取消...等订单状态
orderNum: '',
orderTime: '',
orderCancel: true, //是否是取消的订单
orderCompleted: true, //是否是已完成订单
//如果是取消订单,以下物流信息参数不用传
//订单状态
canceled: true, //是否是取消的订单
completed: true, //是否是已完成订单
unpaid: true, //是否是未支付订单
unreceived: true, //是否是未收货订单
//如果是待收货(未发货和未收货),传物流信息参数
logisticsUrl: '',
logisticsCompany: '',
logisticsNum: '',
... ... @@ -1013,9 +1016,7 @@
freight: ''
coupon: ''
yohoCoin: ''
price: '',
assessUrl: '' //对于已经完成的订单 传评价url
price: ''
}
}
... ...
... ... @@ -24,7 +24,7 @@
<span>下单时间:{{orderTime}}</span>
</p>
</div>
{{#unless orderCancel}}
{{#if unreceived}}
<a class="logistics sub" href="{{logisticsUrl}}">
<span class="iconfont">&#xe630;</span>
<p class="beside-icon sub-content">
... ... @@ -34,7 +34,7 @@
</p>
<span class="iconfont">&#xe614;</span>
</a>
{{/unless}}
{{/if}}
</section>
<section class="goods block">
... ... @@ -71,11 +71,22 @@
</ul>
<div class="opt block">
<span class="btn btn-del">删除订单</span>
{{#unless unreceived}}
{{#unless unpaid}}
<span class="btn btn-del">删除订单</span>
{{/unless}}
{{/unless}}
{{#if unpaid}}
<span class="btn btn-cancel">取消订单</span>
<a href="{{payUrl}}">
<span class="btn btn-pay">立即付款</span>
</a>
{{/if}}
{{#if orderCompleted}}
<a href="{{assessUrl}}">
<span class="btn btn-assess">评价商品</span>
{{#if unreceived}}
<a href="{{logisticsUrl}}">
<span class="btn btn-check-logistics">查看物流</span>
</a>
{{/if}}
</div>
... ...