diff --git a/src/pages/order/components/payment/index.tsx b/src/pages/order/components/payment/index.tsx index 07d535b..939b0eb 100644 --- a/src/pages/order/components/payment/index.tsx +++ b/src/pages/order/components/payment/index.tsx @@ -50,14 +50,16 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) = // 线下付款 const [offlinePayShow, setofflinePayShow] = useState(false) - const onShowOfflinePay = () => { + const onShowOfflinePay = async() => { + await openSubscriptionMessage({ orderId: orderInfo?.id, scenes: ToPay.value }) setofflinePayShow(true) // onClose?.() } // 扫码支付 const [scanPayShow, setScanPayShow] = useState(false) - const onShowScanPay = () => { + const onShowScanPay = async() => { + await openSubscriptionMessage({ orderId: orderInfo?.id, scenes: ToPay.value }) setScanPayShow(true) onClose?.() } @@ -91,7 +93,8 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) = const advanceSelectData = useCallback((val) => { setSubmitData(e => ({ ...e, payment_method: val })) }, []) - const changeSelect = () => { + const changeSelect = async() => { + await openSubscriptionMessage({ orderId: orderInfo?.id, scenes: ToPay.value }) advanceRef.current.onSelectEven() } @@ -190,6 +193,10 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) = } } const { pullBank, payStatus } = usePayBank({ merchId: payInfo?.merch_id, custMerchId: payInfo?.pay_no, callBack: bankCallBack }) + const openBank = async() => { + await openSubscriptionMessage({ orderId: orderInfo?.id, scenes: ToPay.value }) + pullBank() + } return ( @@ -232,7 +239,7 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) = onClose={() => advanceSelectData(null)} /> - +