feat(admin): 完成门店核销功能

- 新增管理员页面和相关组件
- 实现用户认证和权限控制
- 添加用户订单、积分等功能
- 优化用户卡片和用户页面布局
- 实现礼品卡核销功能
This commit is contained in:
2025-08-17 15:00:58 +08:00
parent 79aeca87cc
commit 591df84568
13 changed files with 920 additions and 67 deletions

View File

@@ -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 <>
<div className={'w-full'} style={{
background: 'linear-gradient(to bottom, #e9fff2, #f9fafb)'
}}>
<UserCard/>
<UserOrder/>
<UserCell/>
<UserFooter/>
</div>
</>
}
return (
<>
<div className={'w-full'} style={{
background: 'linear-gradient(to bottom, #e9fff2, #f9fafb)'
}}>
<UserCard />
<UserOrder />
<UserCell />
<UserCard/>
<UserOrder/>
<UserCell/>
<UserFooter/>
</div>
</>