🎈 perf(ID1000877服务通知触发位置调整):
This commit is contained in:
parent
28bd494e93
commit
bf8866e1a5
@ -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 (
|
||||
<View className={styles.payment_main}>
|
||||
@ -232,7 +239,7 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) =
|
||||
onClose={() => advanceSelectData(null)}
|
||||
/>
|
||||
</View>
|
||||
<View className={styles.payment_list_item} onClick={pullBank}>
|
||||
<View className={styles.payment_list_item} onClick={openBank}>
|
||||
<View className={styles.payment_list_item_left}>
|
||||
<View className={classnames(styles.miconfont)}><IconFont name="icon-weixin" size={70} /></View>
|
||||
<View className={styles.payment_list_item_left_name}>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user