Authored by xuqi

order status

@@ -994,10 +994,13 @@ @@ -994,10 +994,13 @@
994 orderNum: '', 994 orderNum: '',
995 orderTime: '', 995 orderTime: '',
996 996
997 - orderCancel: true, //是否是取消的订单  
998 - orderCompleted: true, //是否是已完成订单 997 + //订单状态
  998 + canceled: true, //是否是取消的订单
  999 + completed: true, //是否是已完成订单
  1000 + unpaid: true, //是否是未支付订单
  1001 + unreceived: true, //是否是未收货订单
999 1002
1000 - //如果是取消订单,以下物流信息参数不用传 1003 + //如果是待收货(未发货和未收货),传物流信息参数
1001 logisticsUrl: '', 1004 logisticsUrl: '',
1002 logisticsCompany: '', 1005 logisticsCompany: '',
1003 logisticsNum: '', 1006 logisticsNum: '',
@@ -1013,9 +1016,7 @@ @@ -1013,9 +1016,7 @@
1013 freight: '' 1016 freight: ''
1014 coupon: '' 1017 coupon: ''
1015 yohoCoin: '' 1018 yohoCoin: ''
1016 - price: '',  
1017 -  
1018 - assessUrl: '' //对于已经完成的订单 传评价url 1019 + price: ''
1019 } 1020 }
1020 } 1021 }
1021 1022
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 <span>下单时间:{{orderTime}}</span> 24 <span>下单时间:{{orderTime}}</span>
25 </p> 25 </p>
26 </div> 26 </div>
27 - {{#unless orderCancel}} 27 + {{#if unreceived}}
28 <a class="logistics sub" href="{{logisticsUrl}}"> 28 <a class="logistics sub" href="{{logisticsUrl}}">
29 <span class="iconfont">&#xe630;</span> 29 <span class="iconfont">&#xe630;</span>
30 <p class="beside-icon sub-content"> 30 <p class="beside-icon sub-content">
@@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
34 </p> 34 </p>
35 <span class="iconfont">&#xe614;</span> 35 <span class="iconfont">&#xe614;</span>
36 </a> 36 </a>
37 - {{/unless}} 37 + {{/if}}
38 </section> 38 </section>
39 39
40 <section class="goods block"> 40 <section class="goods block">
@@ -71,11 +71,22 @@ @@ -71,11 +71,22 @@
71 </ul> 71 </ul>
72 72
73 <div class="opt block"> 73 <div class="opt block">
  74 + {{#unless unreceived}}
  75 + {{#unless unpaid}}
74 <span class="btn btn-del">删除订单</span> 76 <span class="btn btn-del">删除订单</span>
  77 + {{/unless}}
  78 + {{/unless}}
  79 +
  80 + {{#if unpaid}}
  81 + <span class="btn btn-cancel">取消订单</span>
  82 + <a href="{{payUrl}}">
  83 + <span class="btn btn-pay">立即付款</span>
  84 + </a>
  85 + {{/if}}
75 86
76 - {{#if orderCompleted}}  
77 - <a href="{{assessUrl}}">  
78 - <span class="btn btn-assess">评价商品</span> 87 + {{#if unreceived}}
  88 + <a href="{{logisticsUrl}}">
  89 + <span class="btn btn-check-logistics">查看物流</span>
79 </a> 90 </a>
80 {{/if}} 91 {{/if}}
81 </div> 92 </div>