forked from gxwebsoft/mp-10550
```
feat(shop/orderConfirm): 优化优惠券使用后的支付逻辑当用户选择使用推荐优惠券时,现在会重新构建订单数据并递归调用支付函数, 确保传递最新的优惠券信息。同时添加了日志以便调试,并提前返回以避免重复执行支付逻辑。```
This commit is contained in:
@@ -11,7 +11,7 @@ import {TenantId} from "@/config/app";
|
|||||||
import {useUser} from "@/hooks/useUser";
|
import {useUser} from "@/hooks/useUser";
|
||||||
import {useUserData} from "@/hooks/useUserData";
|
import {useUserData} from "@/hooks/useUserData";
|
||||||
import {getStoredInviteParams} from "@/utils/invite";
|
import {getStoredInviteParams} from "@/utils/invite";
|
||||||
// import QRLoginButton from "@/components/QRLoginButton";
|
import QRLoginButton from "@/components/QRLoginButton";
|
||||||
|
|
||||||
const UserCard = forwardRef<any, any>((_, ref) => {
|
const UserCard = forwardRef<any, any>((_, ref) => {
|
||||||
const {
|
const {
|
||||||
@@ -213,9 +213,8 @@ const UserCard = forwardRef<any, any>((_, ref) => {
|
|||||||
marginTop: '30px',
|
marginTop: '30px',
|
||||||
marginRight: '10px'
|
marginRight: '10px'
|
||||||
}}>
|
}}>
|
||||||
{/*{userInfo?.userId === 33738 &&*/}
|
{/*扫码登录*/}
|
||||||
{/* <QRLoginButton/>*/}
|
<QRLoginButton/>
|
||||||
{/*}*/}
|
|
||||||
{!isAdmin() &&
|
{!isAdmin() &&
|
||||||
<Button
|
<Button
|
||||||
size={'small'}
|
size={'small'}
|
||||||
|
|||||||
Reference in New Issue
Block a user