🎈 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 [offlinePayShow, setofflinePayShow] = useState(false)
|
||||||
const onShowOfflinePay = () => {
|
const onShowOfflinePay = async() => {
|
||||||
|
await openSubscriptionMessage({ orderId: orderInfo?.id, scenes: ToPay.value })
|
||||||
setofflinePayShow(true)
|
setofflinePayShow(true)
|
||||||
// onClose?.()
|
// onClose?.()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 扫码支付
|
// 扫码支付
|
||||||
const [scanPayShow, setScanPayShow] = useState(false)
|
const [scanPayShow, setScanPayShow] = useState(false)
|
||||||
const onShowScanPay = () => {
|
const onShowScanPay = async() => {
|
||||||
|
await openSubscriptionMessage({ orderId: orderInfo?.id, scenes: ToPay.value })
|
||||||
setScanPayShow(true)
|
setScanPayShow(true)
|
||||||
onClose?.()
|
onClose?.()
|
||||||
}
|
}
|
||||||
@ -91,7 +93,8 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) =
|
|||||||
const advanceSelectData = useCallback((val) => {
|
const advanceSelectData = useCallback((val) => {
|
||||||
setSubmitData(e => ({ ...e, payment_method: val }))
|
setSubmitData(e => ({ ...e, payment_method: val }))
|
||||||
}, [])
|
}, [])
|
||||||
const changeSelect = () => {
|
const changeSelect = async() => {
|
||||||
|
await openSubscriptionMessage({ orderId: orderInfo?.id, scenes: ToPay.value })
|
||||||
advanceRef.current.onSelectEven()
|
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 { 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 (
|
return (
|
||||||
<View className={styles.payment_main}>
|
<View className={styles.payment_main}>
|
||||||
@ -232,7 +239,7 @@ const Payment = ({ show = false, onClose, orderInfo, onSubmitSuccess }: Param) =
|
|||||||
onClose={() => advanceSelectData(null)}
|
onClose={() => advanceSelectData(null)}
|
||||||
/>
|
/>
|
||||||
</View>
|
</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={styles.payment_list_item_left}>
|
||||||
<View className={classnames(styles.miconfont)}><IconFont name="icon-weixin" size={70} /></View>
|
<View className={classnames(styles.miconfont)}><IconFont name="icon-weixin" size={70} /></View>
|
||||||
<View className={styles.payment_list_item_left_name}>
|
<View className={styles.payment_list_item_left_name}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user