diff --git a/src/pages/orderDetails/index.tsx b/src/pages/orderDetails/index.tsx index 5c15666..c46923d 100644 --- a/src/pages/orderDetails/index.tsx +++ b/src/pages/orderDetails/index.tsx @@ -615,6 +615,14 @@ export default () => { } }) }, [infoObj]) + //待接单、配布中、已配布状态时,叫预估金额,其他状态叫合计金额。 + const payFont = useMemo(() => { + if (infoObj?.status === 0 || infoObj?.status === 1 || infoObj?.status === 2) { + return "预估金额" + } else { + return "合计金额" + } + }, [infoObj]) return ( @@ -644,7 +652,7 @@ export default () => { - 合计金额 + {payFont} {/* */} ¥{formatPriceDiv(infoObj.bill_total_sale_price)}