navTo('/user/store/verification', true)} />}
+
navTo('/user/profile/profile', true)}>
{'个人资料'}
@@ -223,7 +228,11 @@ function UserCard() {
navTo('/user/wallet/wallet', true)}>
余额
- ¥ {userInfo?.balance || '0.00'}
+ {userInfo?.balance || '0.00'}
+
+
+ 积分
+ {pointsCount}
navTo('/user/coupon/index', true)}>
@@ -235,10 +244,6 @@ function UserCard() {
礼品卡
{giftCount}
-
- 积分
- {pointsCount}
-
diff --git a/src/pages/user/user.tsx b/src/pages/user/user.tsx
index a18bad0..f67404d 100644
--- a/src/pages/user/user.tsx
+++ b/src/pages/user/user.tsx
@@ -2,20 +2,42 @@ import {useEffect} from 'react'
import UserCard from "./components/UserCard";
import UserOrder from "./components/UserOrder";
import UserCell from "./components/UserCell";
-import './user.scss'
import UserFooter from "./components/UserFooter";
+import {useUser} from "@/hooks/useUser";
+import './user.scss'
+
function User() {
+ const {
+ isAdmin
+ } = useUser();
useEffect(() => {
}, []);
+
+ /**
+ * 门店核销管理
+ */
+ if (isAdmin()) {
+ return <>
+