Commit 215b4721 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

fix: 修改营销活动跳转销售订单的路由地址

parent 4af264b9
......@@ -268,8 +268,8 @@ const DetialLayout = () => {
dataIndex: 'orderId',
render: (_text, _r) => (
<>
{_r.recordType === 1 && <Button type='link' target='_blank' onClick={() => history.push(`/memberCenter/tranactionAbility/saleOrder/orderList/preview?id=${_r.skuId}`)}>{_r.orderNo}</Button>}
{_r.recordType === 2 && <Button type='link' target='_blank' onClick={() => history.push(`/memberCenter/afterService/returnManage/returnQuery/detail?id=${_text}`)}>{_r.orderNo}</Button>}
{_r.recordType === 1 && <Button type='link' target='_blank' href={`/memberCenter/order/saleOrder/orderList/preview?id=${_r.skuId}`} >{_r.orderNo}</Button>}
{_r.recordType === 2 && <Button type='link' target='_blank' href={`/memberCenter/afterService/returnManage/returnQuery/detail?id=${_text}`}>{_r.orderNo}</Button>}
</>
)
},
......
......@@ -267,8 +267,8 @@ const DetialLayout = () => {
dataIndex: 'orderId',
render: (_text, _r) => (
<>
{_r.recordType === 1 && <Button type='link' target='_blank' onClick={() => history.push(`/memberCenter/tranactionAbility/saleOrder/orderList/preview?id=${_r.skuId}`)}>{_r.orderNo}</Button>}
{_r.recordType === 2 && <Button type='link' target='_blank' onClick={() => history.push(`/memberCenter/afterService/returnManage/returnQuery/detail?id=${_text}`)}>{_r.orderNo}</Button>}
{_r.recordType === 1 && <Button type='link' target='_blank' href={`/memberCenter/order/saleOrder/orderList/preview?id=${_r.skuId}`}>{_r.orderNo}</Button>}
{_r.recordType === 2 && <Button type='link' target='_blank' href={`/memberCenter/afterService/returnManage/returnQuery/detail?id=${_text}`}>{_r.orderNo}</Button>}
</>
)
},
......
......@@ -72,11 +72,7 @@ const SignUpForm = () => {
setRefundDisabled(true);
postPurchaseOnlineBiddingOnlineSignup(_params).then(res => {
if (res.code === 1000) {
if (history.goBack() === undefined) {
history.push('/memberCenter/procurementAbility/onlineBid/search')
return
}
history.goBack()
history.replace('/memberCenter/procurementAbility/onlineBid/search')
} else {
setBtnLoading(false);
setRefundDisabled(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment