feat(registration): 优化经销商注册流程并增加地址定位功能

- 修改导航栏标题从“邀请注册”为“注册成为会员”
- 修复重复提交问题并移除不必要的submitting状态
- 增加昵称和头像的必填验证提示
- 添加用户角色缺失时的默认角色写入机制
- 集成地图选点功能,支持经纬度获取和地址解析
- 实现微信地址导入功能,自动填充基本信息
- 增加定位权限检查和错误处理机制
- 添加.gitignore规则忽略备份文件夹src__bak
- 移除已废弃的银行卡和客户管理页面代码
- 优化表单验证规则和错误提示信息
- 实现经销商注册成功后自动跳转到“我的”页面
- 添加用户信息缓存刷新机制确保角色信息同步
```
This commit is contained in:
2026-03-01 12:35:41 +08:00
parent 945351be91
commit eee4644d06
296 changed files with 28845 additions and 6664 deletions

View File

@@ -0,0 +1,186 @@
.logistics-page {
min-height: 100vh;
background-color: #f5f5f5;
padding-bottom: 80px;
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 50vh;
.loading-text {
margin-top: 16px;
color: #666;
}
}
.logistics-header {
background: white;
padding: 20px;
margin-bottom: 12px;
border-radius: 8px;
margin: 12px;
.express-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
padding-bottom: 16px;
border-bottom: 1px solid #f0f0f0;
.company-name {
font-weight: 600;
color: #333;
}
.express-no {
color: #666;
background: #f5f5f5;
padding: 4px 8px;
border-radius: 4px;
}
}
.status-info {
.status {
display: block;
font-weight: 500;
color: #1890ff;
margin-bottom: 8px;
}
.location {
display: block;
color: #666;
margin-bottom: 4px;
}
.estimated-time {
display: block;
color: #999;
}
}
}
.logistics-track {
background: white;
margin: 12px;
border-radius: 8px;
overflow: hidden;
.track-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid #f0f0f0;
.track-title {
font-weight: 500;
color: #333;
}
}
.track-list {
padding: 0 20px;
.track-item {
position: relative;
display: flex;
padding: 16px 0;
border-left: 2px solid #e8e8e8;
margin-left: 8px;
&.current {
border-left-color: #1890ff;
.track-dot {
background: #1890ff;
border-color: #1890ff;
}
.track-status {
color: #1890ff;
font-weight: 500;
}
}
&:last-child {
border-left-color: transparent;
}
.track-dot {
position: absolute;
left: -6px;
top: 20px;
width: 10px;
height: 10px;
border-radius: 50%;
background: #e8e8e8;
border: 2px solid #e8e8e8;
}
.track-content {
flex: 1;
margin-left: 20px;
.track-info {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
.track-status {
font-weight: 500;
color: #333;
}
.track-time {
color: #999;
}
}
.track-location {
display: block;
color: #666;
margin-bottom: 4px;
}
.track-description {
display: block;
color: #999;
line-height: 1.4;
}
}
}
}
}
.logistics-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: white;
padding: 12px 16px;
border-top: 1px solid #f0f0f0;
z-index: 100;
}
}
/* 适配不同屏幕尺寸 */
@media (max-width: 375px) {
.logistics-page {
.logistics-header {
margin: 8px;
padding: 16px;
}
.logistics-track {
margin: 8px;
}
}
}