Authored by Aiden Xu

分期订单

... ... @@ -354,6 +354,13 @@ const orderDetail = (req, res, next) => {
return options.inverse(this);
},
isRefundedAll: function(status, options) {
if (status === 5) { // 已退款
return options.fn(this);
}
return options.inverse(this);
},
greaterThanZero: function(value, options) {
if (value && parseFloat(value) > 0) {
return options.fn(this);
... ...
... ... @@ -80,8 +80,9 @@
</ul>
</div>
{{/order}}
{{> installment/repayment-bottom}}
{{#if isRefundedAll}}
{{/if}}
{{#isRefundedAll status}}
<div class="refunded-all">已退款</div>
{{/isRefundedAll}}
</div>
... ...
... ... @@ -46,7 +46,7 @@ repayment.setFee(0);
*/
$('.status').each(function() {
var text = $(this).text().trim();
var fade = text.match(/已退货|结清|已取消/) || [];
var fade = text.match(/已退款|已结清|已取消/) || [];
var expire = text.match(/已逾期/) || [];
if (fade.length > 0) {
... ...
... ... @@ -2,6 +2,18 @@
background: #f0f0f0;
font-weight: 300;
.refunded-all {
text-align: center;
bottom: 0;
position: fixed;
height: 115px;
font-size: 33px;
line-height: 115px;
background: #fff;
width: 100%;
border-top: 1px solid #e1e1e1;
}
.order-info {
position: fixed;
width: 100%;
... ...