feat(index): 添加首页快捷服务组件

- 在首页添加 QuickActions 组件展示常用功能
- 实现 2x2 网格布局的快捷操作卡片
- 集成分销商、客户管理、邀请好友、钱包等功能入口
- 添加登录验证机制确保功能访问安全
- 创建详细的项目长期记忆文档 MEMORU.md
- 实现响应式设计和交互反馈效果
This commit is contained in:
2026-03-30 19:55:21 +08:00
parent 6e8d6b1c0d
commit 9281fb9df3
4 changed files with 244 additions and 0 deletions

View File

@@ -0,0 +1,93 @@
.quick-actions {
margin: 16px 16px 0;
padding: 20px 16px 16px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
&__title-row {
display: flex;
flex-direction: column;
margin-bottom: 20px;
padding-left: 4px;
}
&__title {
font-size: 18px;
font-weight: 600;
color: #1a1a1a;
line-height: 1;
}
&__subtitle {
font-size: 13px;
color: #999999;
margin-top: 6px;
line-height: 1;
}
&__grid {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
&__item {
width: calc(50% - 6px);
display: flex;
flex-direction: column;
align-items: center;
padding: 18px 8px 14px;
background: #f9fafb;
border-radius: 14px;
transition: background 0.2s;
position: relative;
overflow: hidden;
&:active {
background: #f3f4f6;
}
}
&__icon-wrap {
position: relative;
width: 52px;
height: 52px;
margin-bottom: 10px;
}
&__icon-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 16px;
opacity: 1;
}
&__icon-inner {
position: relative;
z-index: 1;
width: 52px;
height: 52px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 16px;
}
&__item-title {
font-size: 15px;
font-weight: 600;
color: #1a1a1a;
line-height: 1.2;
margin-bottom: 4px;
}
&__item-subtitle {
font-size: 12px;
color: #999999;
line-height: 1.2;
}
}