feat(distribution): 独立分销前台商城多租户体系、货源与订单数据严格隔离

This commit is contained in:
yml2213
2026-09-07 17:18:14 +08:00
parent 550b42eb22
commit ecaf15417b
34 changed files with 2397 additions and 119 deletions
@@ -40,8 +40,20 @@ import HomeStats from '../components/HomeStats.vue'
import HomeFilters from '../components/HomeFilters.vue'
import HomeZones from '../components/HomeZones.vue'
import ListingCard from '../components/ListingCard.vue'
import { useDistributionSiteStore } from '@/stores/distributionSite'
const siteStore = useDistributionSiteStore()
const announcements = ref<string[]>(defaultHomeAnnouncements)
const displayAnnouncements = computed(() => {
if (siteStore.isDistribution) {
return [
`【${siteStore.siteName}】官方认证独立分销站:账号实时同步主站,官方质检,安全秒交接!`,
...announcements.value,
]
}
return announcements.value
})
const banners = ref<HomeBannerSlide[]>(defaultHomeBanners)
const awRecycle = ref<AWRecycleConfig>({ ...defaultAWRecycleConfig })
const awRecycleDialogVisible = ref(false)
@@ -354,9 +366,46 @@ loadHome()
<template>
<section class="pc-home-redesign">
<HomeAnnouncement :announcements="announcements" />
<HomeAnnouncement :announcements="displayAnnouncements" />
<main class="home-content">
<!-- 分销站专属标识 Banner -->
<div v-if="siteStore.isDistribution" class="dist-portal-banner">
<div class="dist-portal-content">
<div class="dist-portal-tag">
<span class="dist-pulse"></span>
官方分销认证
</div>
<h2 class="dist-portal-title">{{ siteStore.siteName }} 专区</h2>
<p class="dist-portal-desc">
全站上架账号均由平台统一质检与自动交付,订单数据独立隔离,为您提供安全无忧的租号体验。
</p>
</div>
<div class="dist-portal-badges">
<div class="dist-badge-item">
<span class="badge-icon">🛡️</span>
<div class="badge-text">
<strong>官方质检</strong>
<small>账号状态实时同步</small>
</div>
</div>
<div class="dist-badge-item">
<span class="badge-icon">⚡</span>
<div class="badge-text">
<strong>极速交付</strong>
<small>自动交接 快速上号</small>
</div>
</div>
<div class="dist-badge-item">
<span class="badge-icon">📑</span>
<div class="badge-text">
<strong>独立账单</strong>
<small>专属订单 隐私隔离</small>
</div>
</div>
</div>
</div>
<div class="hero-section">
<HomeBanner :banners="banners" />
<HomeStats :stats="statCards" />
@@ -367,7 +416,7 @@ loadHome()
<strong>租号大厅</strong>
<small>高哈夫币 · 安全交接 · 随租随玩</small>
</RouterLink>
<RouterLink class="biz-entry crash" to="/crash">
<RouterLink v-if="!siteStore.isDistribution" class="biz-entry crash" to="/crash">
<strong>撞车 <em>NEW</em></strong>
<small>选购商品 · 支付后进群联系客服</small>
</RouterLink>
@@ -697,4 +746,112 @@ loadHome()
font-weight: 800;
cursor: pointer;
}
.dist-portal-banner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
padding: 24px 32px;
border-radius: 20px;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
color: #ffffff;
}
.dist-portal-content {
display: flex;
flex-direction: column;
gap: 8px;
max-width: 600px;
}
.dist-portal-tag {
display: inline-flex;
align-items: center;
gap: 6px;
width: fit-content;
padding: 3px 10px;
border-radius: 999px;
background: rgba(20, 119, 255, 0.2);
border: 1px solid rgba(20, 119, 255, 0.4);
color: #60a5fa;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.5px;
}
.dist-pulse {
width: 6px;
height: 6px;
border-radius: 50%;
background: #38bdf8;
box-shadow: 0 0 8px #38bdf8;
}
.dist-portal-title {
margin: 0;
font-size: 24px;
font-weight: 800;
color: #f8fafc;
letter-spacing: -0.5px;
}
.dist-portal-desc {
margin: 0;
font-size: 14px;
line-height: 1.5;
color: #94a3b8;
}
.dist-portal-badges {
display: flex;
align-items: center;
gap: 16px;
}
.dist-badge-item {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 18px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
backdrop-filter: blur(8px);
}
.badge-icon {
font-size: 22px;
}
.badge-text {
display: flex;
flex-direction: column;
gap: 2px;
}
.badge-text strong {
font-size: 14px;
font-weight: 700;
color: #f1f5f9;
}
.badge-text small {
font-size: 11px;
color: #64748b;
}
@media (max-width: 960px) {
.dist-portal-banner {
flex-direction: column;
align-items: flex-start;
}
.dist-portal-badges {
width: 100%;
flex-direction: column;
align-items: stretch;
}
}
</style>