|
@@ -304,14 +304,14 @@ const orderDetail = (req, res, next) => { |
|
@@ -304,14 +304,14 @@ const orderDetail = (req, res, next) => { |
304
|
isCurrFee: true,
|
304
|
isCurrFee: true,
|
305
|
helpers: {
|
305
|
helpers: {
|
306
|
isPaymentComplete: function(status, options) {
|
306
|
isPaymentComplete: function(status, options) {
|
307
|
- if (status === 2) { // 已结清
|
307
|
+ if (status === 2 || status ===4 || status === 5) { // 已结清/已取消
|
308
|
return options.fn(this);
|
308
|
return options.fn(this);
|
309
|
}
|
309
|
}
|
310
|
|
310
|
|
311
|
return options.inverse(this);
|
311
|
return options.inverse(this);
|
312
|
},
|
312
|
},
|
313
|
isPaymentIncomplete: function(status, options) {
|
313
|
isPaymentIncomplete: function(status, options) {
|
314
|
- if (status !== 2) { // 其他状态
|
314
|
+ if (status !== 2 && status !== 4 && status !== 5) { // 其他状态
|
315
|
return options.fn(this);
|
315
|
return options.fn(this);
|
316
|
}
|
316
|
}
|
317
|
|
317
|
|