feat(registration): 优化经销商注册流程并增加地址定位功能 - 修改导航栏标题从“邀请注册”为“注册成为会员” - 修复重复提交问题并移除不必要的submitting状态 - 增加昵称和头像的必填验证提示 - 添加用户角色缺失时的默认角色写入机制 - 集成地图选点功能,支持经纬度获取和地址解析 - 实现微信地址导入功能,自动填充基本信息 - 增加定位权限检查和错误处理机制 - 添加.gitignore规则忽略备份文件夹src__bak - 移除已废弃的银行卡和客户管理页面代码 - 优化表单验证规则和错误提示信息 - 实现经销商注册成功后自动跳转到“我的”页面 - 添加用户信息缓存刷新机制确保角色信息同步 ```
108 lines
2.1 KiB
SCSS
108 lines
2.1 KiB
SCSS
/* ./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;
|
|
}
|
|
.cart-buy-only{
|
|
border-radius: 20px;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
image {
|
|
margin: 0; /* 全局设置图片的 margin */
|
|
}
|
|
|
|
/* 管理员面板功能项交互效果 */
|
|
.admin-feature-item {
|
|
transition: transform 0.15s ease-in-out;
|
|
}
|
|
|
|
.admin-feature-item:active {
|
|
transform: scale(0.95);
|
|
}
|