feat(src): 新增文章、地址和经销商申请相关页面

- 新增文章添加/编辑页面(add.tsx)
- 新增用户地址添加/编辑页面(add.tsx)
- 新增经销商申请页面(add.tsx)
- 添加相关配置文件(.editorconfig, .eslintrc, .gitignore)
This commit is contained in:
2025-08-24 13:10:52 +08:00
commit 3d5b77ae51
522 changed files with 74442 additions and 0 deletions

50
src/pages/user/user.tsx Normal file
View File

@@ -0,0 +1,50 @@
import {useEffect} from 'react'
import UserCard from "./components/UserCard";
import UserOrder from "./components/UserOrder";
import UserCell from "./components/UserCell";
import UserFooter from "./components/UserFooter";
import {useUser} from "@/hooks/useUser";
import './user.scss'
import IsDealer from "./components/IsDealer";
function User() {
const {
isAdmin
} = useUser();
useEffect(() => {
}, []);
/**
* 门店核销管理
*/
if (isAdmin()) {
return <>
<div className={'w-full'} style={{
background: 'linear-gradient(to bottom, #e9fff2, #f9fafb)'
}}>
<UserCard/>
<UserOrder/>
<IsDealer/>
<UserCell/>
<UserFooter/>
</div>
</>
}
return (
<>
<div className={'w-full'} style={{
background: 'linear-gradient(to bottom, #e9fff2, #f9fafb)'
}}>
<UserCard/>
<UserOrder/>
<IsDealer/>
<UserCell/>
<UserFooter/>
</div>
</>
)
}
export default User