Showing
1 changed file
with
8 additions
and
1 deletions
@@ -514,6 +514,8 @@ const getOrderDetail = (uid, code) => { | @@ -514,6 +514,8 @@ const getOrderDetail = (uid, code) => { | ||
514 | title: '订单详情' | 514 | title: '订单详情' |
515 | }; | 515 | }; |
516 | 516 | ||
517 | + let btns = []; | ||
518 | + | ||
517 | detail.orderGoods.forEach(good => { | 519 | detail.orderGoods.forEach(good => { |
518 | let cnAlphabet = good.cnAlphabet ? good.cnAlphabet : ''; | 520 | let cnAlphabet = good.cnAlphabet ? good.cnAlphabet : ''; |
519 | 521 | ||
@@ -534,7 +536,12 @@ const getOrderDetail = (uid, code) => { | @@ -534,7 +536,12 @@ const getOrderDetail = (uid, code) => { | ||
534 | 536 | ||
535 | if (detail.isCancel !== 'Y') { | 537 | if (detail.isCancel !== 'Y') { |
536 | detail.steps = _getStepByOrderStatus(st); | 538 | detail.steps = _getStepByOrderStatus(st); |
537 | - detail.btns = statusMap[st].btns; | 539 | + |
540 | + statusMap[st].btns.forEach(function(btn) { | ||
541 | + btns.push(btn); | ||
542 | + }); | ||
543 | + | ||
544 | + detail.btns = btns; | ||
538 | 545 | ||
539 | _.forEach(detail.btns, btn => { | 546 | _.forEach(detail.btns, btn => { |
540 | if (btn.isPayBtn) { | 547 | if (btn.isPayBtn) { |
-
Please register or login to post a comment