mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
feat: 更新内容
This commit is contained in:
@@ -30,7 +30,7 @@ function CashierWeApp(props) {
|
|||||||
const { cashierPayment } = usePayment()
|
const { cashierPayment } = usePayment()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const { order_id } = $instance.router.params
|
const { order_id ,source} = $instance.router.params
|
||||||
if (order_id) {
|
if (order_id) {
|
||||||
fetch()
|
fetch()
|
||||||
}
|
}
|
||||||
@@ -80,6 +80,9 @@ function CashierWeApp(props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handlePay = async () => {
|
const handlePay = async () => {
|
||||||
|
if(source){
|
||||||
|
params.source = source
|
||||||
|
}
|
||||||
cashierPayment(params, orderInfo)
|
cashierPayment(params, orderInfo)
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user