feat(pages): 添加管理页面功能和配置

- 创建 .editorconfig 文件统一代码风格配置
- 配置 .eslintrc 使用 taro/react 规则集
- 完善 .gitignore 忽略编译产物和敏感文件
- 添加 admin/article/add 页面实现文章管理功能
- 添加 dealer/apply/add 页面实现经销商申请功能
- 添加 dealer/bank/add 页面实现银行卡管理功能
- 添加 dealer/customer/add 页面实现客户管理功能
- 添加 user/address/add 页面实现用户地址管理功能
- 添加 user/chat/message/add 页面实现消息功能
- 添加 user/gift/add 页面实现礼品管理功能
- 配置各页面导航栏标题和样式
- 实现表单验证和数据提交功能
- 集成图片上传和头像选择功能
- 添加日期选择和数据校验逻辑
- 实现编辑和新增模式切换
- 集成用户权限和角色管理功能
This commit is contained in:
2026-02-08 12:15:31 +08:00
commit ec252beb4b
548 changed files with 76314 additions and 0 deletions

94
src/app.scss Normal file
View File

@@ -0,0 +1,94 @@
/* ./src/index.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
page{
background-color: #f5f5f5;
background-repeat: no-repeat;
background-size: 100%;
background-position: bottom;
}
// 在全局样式文件中添加
button {
&::after {
border: none !important;
}
}
// 去掉 Grid 组件的边框
.no-border-grid {
.nut-grid-item {
border: none !important;
border-right: none !important;
border-bottom: none !important;
&::after {
border: none !important;
}
}
.nut-grid {
border: none !important;
&::after {
border: none !important;
}
}
}
// 微信授权按钮的特殊样式
button[open-type="getPhoneNumber"] {
background: none !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
line-height: inherit !important;
border-radius: 0 !important;
}
button[open-type="chooseAvatar"] {
background: none !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
line-height: inherit !important;
border-radius: 0 !important;
}
.buy-btn{
height: 70px;
background: linear-gradient(to bottom, #1cd98a, #24ca94);
border-radius: 100px;
color: #ffffff;
display: flex;
align-items: center;
justify-content: space-around;
.cart-icon{
background: linear-gradient(to bottom, #bbe094, #4ee265);
border-radius: 100px 0 0 100px;
height: 70px;
}
.cart-add{
background: #e9fff2;
color: #333333;
border-radius: 20px 0 0 20px;
display: flex;
align-items: center;
justify-content: center;
height: 80px;
}
.cart-buy{
background: linear-gradient(-45deg, #1fbfa2, #94e0ce);
color: #ffffff;
border-radius: 0 20px 20px 0;
display: flex;
align-items: center;
justify-content: center;
height: 80px;
}
}
image {
margin: 0; /* 全局设置图片的 margin */
}