|
@@ -13,6 +13,16 @@ |
|
@@ -13,6 +13,16 @@ |
13
|
</footer>
|
13
|
</footer>
|
14
|
|
14
|
|
15
|
{{!-- 对应订单状态的操作逻辑 --}}
|
15
|
{{!-- 对应订单状态的操作逻辑 --}}
|
|
|
16
|
+
|
|
|
17
|
+ {{!-- 完成和取消订单显示删除按钮 --}}
|
|
|
18
|
+ {{#unless unpaid}}
|
|
|
19
|
+ {{#unless unreceived}}
|
|
|
20
|
+ <div class="order-opt">
|
|
|
21
|
+ <span class="btn del">删除订单</span>
|
|
|
22
|
+ </div>
|
|
|
23
|
+ {{/unless}}
|
|
|
24
|
+ {{/unless}}
|
|
|
25
|
+
|
16
|
{{#if unpaid}}
|
26
|
{{#if unpaid}}
|
17
|
<div class="order-opt">
|
27
|
<div class="order-opt">
|
18
|
<span class="btn cancel">取消订单</span>
|
28
|
<span class="btn cancel">取消订单</span>
|
|
@@ -20,27 +30,9 @@ |
|
@@ -20,27 +30,9 @@ |
20
|
</div>
|
30
|
</div>
|
21
|
{{/if}}
|
31
|
{{/if}}
|
22
|
|
32
|
|
23
|
- {{#with unreceived}}
|
|
|
24
|
- <div class="order-opt">
|
|
|
25
|
- <a class="check-logistics" href="{{.}}">查看物流</a>
|
|
|
26
|
- </div>
|
|
|
27
|
- {{/with}}
|
|
|
28
|
-
|
|
|
29
|
- {{#with unshipped}}
|
|
|
30
|
- <div class="order-opt">
|
|
|
31
|
- <a class="check-logistics" href="{{.}}">查看物流</a>
|
|
|
32
|
- </div>
|
|
|
33
|
- {{/with}}
|
|
|
34
|
-
|
|
|
35
|
- {{#if canceled}}
|
|
|
36
|
- <div class="order-opt">
|
|
|
37
|
- <span class="btn del">删除订单</span>
|
|
|
38
|
- </div>
|
|
|
39
|
- {{/if}}
|
|
|
40
|
-
|
|
|
41
|
- {{#if completed}}
|
33
|
+ {{#if unreceived}}
|
42
|
<div class="order-opt">
|
34
|
<div class="order-opt">
|
43
|
- <span class="btn del">删除订单</span>
|
35
|
+ <a class="check-logistics" href="{{logisticsUrl}}">查看物流</a>
|
44
|
</div>
|
36
|
</div>
|
45
|
{{/if}}
|
37
|
{{/if}}
|
46
|
</div> |
38
|
</div> |