Authored by Aiden Xu

分期订单

... ... @@ -368,6 +368,12 @@ const orderDetail = (req, res, next) => {
return options.inverse(this);
},
isRepaymentAllCompleted: function(status, options) {
if (status === 2) { // 已结清/已取消
return options.fn(this);
}
return options.inverse(this);
},
greaterThanZero: function(value, options) {
if (value && parseFloat(value) > 0) {
return options.fn(this);
... ...
... ... @@ -83,8 +83,12 @@
{{> installment/repayment-bottom}}
{{#isRefundedAll status}}
<div class="refunded-all">已退款</div>
{{#isRefundedAll order.status}}
<div class="all-completed">已退款</div>
{{/isRefundedAll}}
{{#isRepaymentAllCompleted order.status}}
<div class="all-completed">已结清</div>
{{/isRepaymentAllCompleted}}
</div>
... ...
... ... @@ -2,7 +2,7 @@
background: #f0f0f0;
font-weight: 300;
.refunded-all {
.all-completed {
text-align: center;
bottom: 0;
position: fixed;
... ...