Showing
4 changed files
with
24 additions
and
4 deletions
@@ -354,6 +354,13 @@ const orderDetail = (req, res, next) => { | @@ -354,6 +354,13 @@ const orderDetail = (req, res, next) => { | ||
354 | 354 | ||
355 | return options.inverse(this); | 355 | return options.inverse(this); |
356 | }, | 356 | }, |
357 | + isRefundedAll: function(status, options) { | ||
358 | + if (status === 5) { // 已退款 | ||
359 | + return options.fn(this); | ||
360 | + } | ||
361 | + | ||
362 | + return options.inverse(this); | ||
363 | + }, | ||
357 | greaterThanZero: function(value, options) { | 364 | greaterThanZero: function(value, options) { |
358 | if (value && parseFloat(value) > 0) { | 365 | if (value && parseFloat(value) > 0) { |
359 | return options.fn(this); | 366 | return options.fn(this); |
@@ -80,8 +80,9 @@ | @@ -80,8 +80,9 @@ | ||
80 | </ul> | 80 | </ul> |
81 | </div> | 81 | </div> |
82 | {{/order}} | 82 | {{/order}} |
83 | - {{> installment/repayment-bottom}} | ||
84 | - {{#if isRefundedAll}} | ||
85 | - {{/if}} | 83 | + |
84 | + {{#isRefundedAll status}} | ||
85 | + <div class="refunded-all">已退款</div> | ||
86 | + {{/isRefundedAll}} | ||
86 | </div> | 87 | </div> |
87 | 88 |
@@ -46,7 +46,7 @@ repayment.setFee(0); | @@ -46,7 +46,7 @@ repayment.setFee(0); | ||
46 | */ | 46 | */ |
47 | $('.status').each(function() { | 47 | $('.status').each(function() { |
48 | var text = $(this).text().trim(); | 48 | var text = $(this).text().trim(); |
49 | - var fade = text.match(/已退货|结清|已取消/) || []; | 49 | + var fade = text.match(/已退款|已结清|已取消/) || []; |
50 | var expire = text.match(/已逾期/) || []; | 50 | var expire = text.match(/已逾期/) || []; |
51 | 51 | ||
52 | if (fade.length > 0) { | 52 | if (fade.length > 0) { |
@@ -2,6 +2,18 @@ | @@ -2,6 +2,18 @@ | ||
2 | background: #f0f0f0; | 2 | background: #f0f0f0; |
3 | font-weight: 300; | 3 | font-weight: 300; |
4 | 4 | ||
5 | + .refunded-all { | ||
6 | + text-align: center; | ||
7 | + bottom: 0; | ||
8 | + position: fixed; | ||
9 | + height: 115px; | ||
10 | + font-size: 33px; | ||
11 | + line-height: 115px; | ||
12 | + background: #fff; | ||
13 | + width: 100%; | ||
14 | + border-top: 1px solid #e1e1e1; | ||
15 | + } | ||
16 | + | ||
5 | .order-info { | 17 | .order-info { |
6 | position: fixed; | 18 | position: fixed; |
7 | width: 100%; | 19 | width: 100%; |
-
Please register or login to post a comment