Authored by biao

update for btns

... ... @@ -514,6 +514,8 @@ const getOrderDetail = (uid, code) => {
title: '订单详情'
};
let btns = [];
detail.orderGoods.forEach(good => {
let cnAlphabet = good.cnAlphabet ? good.cnAlphabet : '';
... ... @@ -534,7 +536,12 @@ const getOrderDetail = (uid, code) => {
if (detail.isCancel !== 'Y') {
detail.steps = _getStepByOrderStatus(st);
detail.btns = statusMap[st].btns;
statusMap[st].btns.forEach(function(btn) {
btns.push(btn);
});
detail.btns = btns;
_.forEach(detail.btns, btn => {
if (btn.isPayBtn) {
... ...