feat(distribution): 独立分销后台账号体系、多租户隔离与主站后台分销管理GUI

- 独立账号鉴权:分销后台支持独立登录页面、Bearer+Cookie 双模鉴权与租户资料接口
- 多租户隔离:分销商成员强制锁定自身站点数据范围,防止横向越权;平台超管享有全局视界
- 一键开通分销商:平台端支持一键录入站点、管理员账号、分配角色并原子化初始化佣金规则
- 主后台分销分组:在主站后台增加「分销管理」导航分组,提供站点管理、规则配置、订单监控与结算管理 GUI
- 门禁与联调:补充完整单测,全量代码门禁 check.sh 100% 通过,dev.sh 支持前后端与分销后台一键同启
This commit is contained in:
yml2213
2026-09-07 15:45:53 +08:00
parent 0c37c7e659
commit 550b42eb22
28 changed files with 3192 additions and 117 deletions
+123 -9
View File
@@ -1,9 +1,123 @@
:root { font-family: Inter, "PingFang SC", sans-serif; color: #1f2937; background: #f5f7fa; }
* { box-sizing: border-box; }
body { margin: 0; }
.app { min-height: 100vh; }
.brand { height: 64px; padding: 20px 18px; color: #fff; font-weight: 600; letter-spacing: 0; }
.header { display: flex; align-items: center; background: #fff; padding: 0 24px; border-bottom: 1px solid #edf0f5; }
.page { width: 100%; padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
@media (max-width: 720px) { .page { padding: 16px; } .stats { grid-template-columns: 1fr; } }
:root {
font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
color: #1f2937;
background: #f5f7fa;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
.app {
min-height: 100vh;
}
.brand {
height: 64px;
padding: 20px 20px;
color: #fff;
font-size: 16px;
font-weight: 600;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 10px;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
background: #fff;
padding: 0 24px;
border-bottom: 1px solid #edf0f5;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.header-left {
display: flex;
align-items: center;
gap: 12px;
}
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
.user-profile {
display: flex;
align-items: center;
gap: 8px;
}
.page {
width: 100%;
padding: 24px;
}
.stats {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
width: 100%;
}
/* Login Page Styles */
.login-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
padding: 20px;
}
.login-card {
width: 100%;
max-width: 420px;
border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
background: #ffffff;
padding: 12px 8px;
}
.login-header {
text-align: center;
margin-bottom: 28px;
}
.login-logo {
width: 56px;
height: 56px;
margin: 0 auto 8px;
background: #e6f4ff;
border-radius: 14px;
display: flex;
align-items: center;
justify-content: center;
}
.login-footer {
text-align: center;
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid #f0f0f0;
}
@media (max-width: 720px) {
.page {
padding: 16px;
}
.stats {
grid-template-columns: 1fr;
}
.header {
padding: 0 12px;
}
}