chore(frontend): 接入 ESLint、Prettier 与 Vitest 质量门禁
This commit is contained in:
@@ -355,24 +355,54 @@ const sectionMeta: Record<string, { title: string; description: string }> = {
|
||||
'/users': { title: '用户管理', description: '查看用户、实名状态与交易记录。' },
|
||||
'/finance': { title: '财务仪表盘', description: '查看收入、退款、结算与资金趋势。' },
|
||||
'/finance/dashboard': { title: '财务仪表盘', description: '查看收入、退款、结算与资金趋势。' },
|
||||
'/finance/details': { title: '财务明细', description: '按订单核对实付、退款、号主结算与平台净额。' },
|
||||
'/finance/details': {
|
||||
title: '财务明细',
|
||||
description: '按订单核对实付、退款、号主结算与平台净额。',
|
||||
},
|
||||
'/payments': { title: '支付流水', description: '核对渠道支付单、回调状态与失败原因。' },
|
||||
'/wallet-ledger': { title: '资金流水', description: '按用户、订单与业务类型核对余额变动。' },
|
||||
'/finance/disbursements': { title: '资金出款', description: '查看代管出款、提现与线下出款明细。' },
|
||||
'/finance/disbursements': {
|
||||
title: '资金出款',
|
||||
description: '查看代管出款、提现与线下出款明细。',
|
||||
},
|
||||
'/finance/operating-expenses': { title: '运营开支', description: '登记与核对日常运营支出。' },
|
||||
'/withdrawals': { title: '提现审核', description: '审核提现申请与打款确认。' },
|
||||
'/distribution/sites': { title: '分销站点管理', description: '管理分站、规则、结算与站点钱包。' },
|
||||
'/distribution/dashboard': { title: '分销看板', description: '查看站点收号、订单、利润与近 7 天趋势。' },
|
||||
'/distribution/dashboard': {
|
||||
title: '分销看板',
|
||||
description: '查看站点收号、订单、利润与近 7 天趋势。',
|
||||
},
|
||||
'/distribution/orders': { title: '分销订单', description: '核对分销订单快照与冷却期释放状态。' },
|
||||
'/distribution/settlements': { title: '结算对账', description: '生成人工批次并核对、释放站内份额。' },
|
||||
'/distribution/users': { title: '分销用户', description: '查看站点注册客户、下单客户与消费贡献。' },
|
||||
'/distribution/announcements': { title: '站点公告', description: '维护分站自己的公告中心与弹窗公告。' },
|
||||
'/distribution/listings': { title: '分销商品', description: '查看收货商品并控制账号展示与加价。' },
|
||||
'/distribution/payment-channels': { title: '支付通道', description: '为分站绑定主站支付商户配置。' },
|
||||
'/distribution/settlements': {
|
||||
title: '结算对账',
|
||||
description: '生成人工批次并核对、释放站内份额。',
|
||||
},
|
||||
'/distribution/users': {
|
||||
title: '分销用户',
|
||||
description: '查看站点注册客户、下单客户与消费贡献。',
|
||||
},
|
||||
'/distribution/announcements': {
|
||||
title: '站点公告',
|
||||
description: '维护分站自己的公告中心与弹窗公告。',
|
||||
},
|
||||
'/distribution/listings': {
|
||||
title: '分销商品',
|
||||
description: '查看收货商品并控制账号展示与加价。',
|
||||
},
|
||||
'/distribution/payment-channels': {
|
||||
title: '支付通道',
|
||||
description: '为分站绑定主站支付商户配置。',
|
||||
},
|
||||
'/distribution/wallet': { title: '站点钱包', description: '查看分站余额、结算进度与提现记录。' },
|
||||
'/distribution/rules': { title: '分销规则', description: '维护全局与站点级分账规则版本。' },
|
||||
'/distribution/qrcodes': { title: '分站二维码池', description: '按站点维护发布群二维码池与发放状态。' },
|
||||
'/distribution/qrcode-pool': { title: '分站二维码池', description: '按站点维护发布群二维码池与发放状态。' },
|
||||
'/distribution/qrcodes': {
|
||||
title: '分站二维码池',
|
||||
description: '按站点维护发布群二维码池与发放状态。',
|
||||
},
|
||||
'/distribution/qrcode-pool': {
|
||||
title: '分站二维码池',
|
||||
description: '按站点维护发布群二维码池与发放状态。',
|
||||
},
|
||||
'/distribution/sms': { title: '站点短信', description: '为分站配置独立短信签名、模板与密钥。' },
|
||||
'/distribution/invitation': { title: '邀请返利', description: '配置分站邀请好友的返利比例。' },
|
||||
'/announcements': { title: '公告管理', description: '维护主站与分站公告。' },
|
||||
@@ -583,8 +613,7 @@ export function AdminLayout() {
|
||||
{ key: 'offline', label: '离线' },
|
||||
],
|
||||
selectedKeys: [supportStatus],
|
||||
onClick: ({ key }) =>
|
||||
void handleStatusChange(key as 'online' | 'offline' | 'busy'),
|
||||
onClick: ({ key }) => void handleStatusChange(key as 'online' | 'offline' | 'busy'),
|
||||
}}
|
||||
>
|
||||
<button type="button" className="admin-sider__status">
|
||||
@@ -631,12 +660,7 @@ export function AdminLayout() {
|
||||
onClick={() => setCollapsed(value => !value)}
|
||||
aria-label={collapsed ? '展开侧栏' : '收起侧栏'}
|
||||
/>
|
||||
<Breadcrumb
|
||||
items={[
|
||||
{ title: '解忧商行' },
|
||||
{ title: currentLabel },
|
||||
]}
|
||||
/>
|
||||
<Breadcrumb items={[{ title: '解忧商行' }, { title: currentLabel }]} />
|
||||
</div>
|
||||
</Header>
|
||||
|
||||
@@ -648,7 +672,13 @@ export function AdminLayout() {
|
||||
)
|
||||
}
|
||||
|
||||
export function AdminSectionPlaceholder({ title, description }: { title: string; description: string }) {
|
||||
export function AdminSectionPlaceholder({
|
||||
title,
|
||||
description,
|
||||
}: {
|
||||
title: string
|
||||
description: string
|
||||
}) {
|
||||
return (
|
||||
<div className="admin-page">
|
||||
<div className="admin-page__head">
|
||||
|
||||
@@ -57,11 +57,7 @@ export function MobileLayout() {
|
||||
</main>
|
||||
|
||||
<div className="mobile-tabbar" hidden={hideTabbar}>
|
||||
<TabBar
|
||||
activeKey={activeTab(location.pathname)}
|
||||
onChange={key => navigate(key)}
|
||||
safeArea
|
||||
>
|
||||
<TabBar activeKey={activeTab(location.pathname)} onChange={key => navigate(key)} safeArea>
|
||||
{tabs.map(tab => (
|
||||
<TabBar.Item
|
||||
key={tab.key}
|
||||
|
||||
@@ -148,9 +148,7 @@ export function StorefrontLayout() {
|
||||
<Typography.Text type="secondary"> · JIEYOU TRADING HOUSE</Typography.Text>
|
||||
<div className="site-footer__muted">租得明白,还得安心。</div>
|
||||
</div>
|
||||
<div className="site-footer__muted">
|
||||
© 2026 解忧商行 · 备案信息与客服信息待配置
|
||||
</div>
|
||||
<div className="site-footer__muted">© 2026 解忧商行 · 备案信息与客服信息待配置</div>
|
||||
</div>
|
||||
</Footer>
|
||||
</Layout>
|
||||
|
||||
Reference in New Issue
Block a user