feat(registration): 优化经销商注册流程并增加地址定位功能 - 修改导航栏标题从“邀请注册”为“注册成为会员” - 修复重复提交问题并移除不必要的submitting状态 - 增加昵称和头像的必填验证提示 - 添加用户角色缺失时的默认角色写入机制 - 集成地图选点功能,支持经纬度获取和地址解析 - 实现微信地址导入功能,自动填充基本信息 - 增加定位权限检查和错误处理机制 - 添加.gitignore规则忽略备份文件夹src__bak - 移除已废弃的银行卡和客户管理页面代码 - 优化表单验证规则和错误提示信息 - 实现经销商注册成功后自动跳转到“我的”页面 - 添加用户信息缓存刷新机制确保角色信息同步 ```
245 lines
4.0 KiB
SCSS
245 lines
4.0 KiB
SCSS
.refund-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;
|
|
}
|
|
}
|
|
|
|
.order-info {
|
|
background: white;
|
|
padding: 16px 20px;
|
|
margin-bottom: 12px;
|
|
|
|
.order-no {
|
|
display: block;
|
|
color: #666;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.order-amount {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: #ff6b35;
|
|
}
|
|
}
|
|
|
|
.goods-section {
|
|
background: white;
|
|
margin-bottom: 12px;
|
|
|
|
.section-title {
|
|
padding: 16px 20px 0;
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.goods-item {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.goods-info {
|
|
display: flex;
|
|
margin-bottom: 12px;
|
|
|
|
.goods-image {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 6px;
|
|
margin-right: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.goods-detail {
|
|
flex: 1;
|
|
|
|
.goods-name {
|
|
display: block;
|
|
font-weight: 500;
|
|
color: #333;
|
|
line-height: 1.4;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.goods-sku {
|
|
display: block;
|
|
color: #999;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.goods-price {
|
|
display: block;
|
|
font-weight: 600;
|
|
color: #ff6b35;
|
|
}
|
|
}
|
|
}
|
|
|
|
.refund-control {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
.control-label {
|
|
color: #333;
|
|
}
|
|
|
|
.max-num {
|
|
color: #999;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.description-section,
|
|
.evidence-section {
|
|
background: white;
|
|
margin-bottom: 8px;
|
|
padding: 12px 20px;
|
|
|
|
.section-title {
|
|
font-weight: 500;
|
|
color: #333;
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
|
|
.refund-amount {
|
|
font-weight: 600;
|
|
color: #ff6b35;
|
|
}
|
|
|
|
.submit-section {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: white;
|
|
padding: 12px 16px;
|
|
border-top: 1px solid #f0f0f0;
|
|
z-index: 100;
|
|
}
|
|
}
|
|
|
|
/* NutUI 组件样式覆盖 */
|
|
.refund-page {
|
|
.nut-cell-group {
|
|
margin-bottom: 8px;
|
|
|
|
.nut-cell-group__title {
|
|
padding: 12px 20px 6px;
|
|
font-weight: 500;
|
|
color: #333;
|
|
}
|
|
|
|
.nut-cell {
|
|
padding: 6px 20px;
|
|
min-height: 40px;
|
|
}
|
|
|
|
// 退款原因选项特殊样式
|
|
.reason-cell {
|
|
padding: 4px 20px !important;
|
|
min-height: 36px !important;
|
|
}
|
|
|
|
// 其他选项样式
|
|
.option-cell {
|
|
padding: 8px 20px !important;
|
|
min-height: 44px !important;
|
|
}
|
|
}
|
|
|
|
.nut-radio {
|
|
.nut-radio__label {
|
|
color: #333;
|
|
}
|
|
}
|
|
|
|
.nut-checkbox {
|
|
.nut-checkbox__label {
|
|
color: #333;
|
|
}
|
|
}
|
|
|
|
.nut-textarea {
|
|
border: 1px solid #e8e8e8;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
background: #fafafa;
|
|
min-height: 80px;
|
|
|
|
&:focus {
|
|
border-color: #1890ff;
|
|
background: white;
|
|
}
|
|
}
|
|
|
|
.nut-uploader {
|
|
.nut-uploader-slot {
|
|
border: 2px dashed #e8e8e8;
|
|
border-radius: 8px;
|
|
background: #fafafa;
|
|
|
|
&:hover {
|
|
border-color: #1890ff;
|
|
}
|
|
}
|
|
|
|
.nut-uploader-preview {
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.nut-inputnumber {
|
|
.nut-inputnumber-input {
|
|
width: 60px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* 适配不同屏幕尺寸 */
|
|
@media (max-width: 375px) {
|
|
.refund-page {
|
|
.goods-section {
|
|
.goods-item {
|
|
padding: 12px 16px;
|
|
|
|
.goods-info {
|
|
.goods-image {
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
}
|
|
|
|
.refund-control {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.description-section,
|
|
.evidence-section {
|
|
padding: 12px 16px;
|
|
}
|
|
}
|
|
}
|