feat(distribution): 完善分销站与主站业务数据及权益风控隔离,修复历史商品归属

This commit is contained in:
yml2213
2026-09-08 15:25:46 +08:00
parent 0fcb6a513f
commit fd4e490ed3
16 changed files with 221 additions and 35 deletions
+14
View File
@@ -409,6 +409,11 @@
color: #ea580c;
}
.pc-growth-badge.is-distribution {
background: #ecfdf5;
color: #059669;
}
.pc-realname-badge.is-verified,
.dropdown-status.is-verified {
background: #ecfdf3;
@@ -512,6 +517,15 @@
white-space: nowrap;
}
.dropdown-growth-panel.is-distribution > div {
background: #f0fdf4;
border: 1px solid rgba(167, 243, 208, 0.5);
}
.dropdown-growth-panel.is-distribution strong {
color: #059669;
}
.dropdown-status {
display: inline-flex;
align-items: center;
+33 -8
View File
@@ -48,12 +48,17 @@ const buyerServiceItems = [
{ label: '使用中', icon: VideoPlay, to: { path: '/orders', query: { tab: 'renting' } } },
{ label: '已完成', icon: Finished, to: { path: '/orders', query: { tab: 'completed' } } },
]
const sellerServiceItems = [
{ label: '发布商品', icon: CirclePlus, to: '/seller/listings/create' },
{ label: '我的商品', icon: Shop, to: '/seller/listings' },
{ label: '提号记录', icon: Switch, to: '/seller/pickups' },
{ label: '提现/账单', icon: Wallet, to: '/wallet' },
]
const sellerServiceItems = computed(() => {
const items = [
{ label: '发布商品', icon: CirclePlus, to: '/seller/listings/create' },
{ label: '我的商品', icon: Shop, to: '/seller/listings' },
]
if (!siteStore.isDistribution) {
items.push({ label: '提号记录', icon: Switch, to: '/seller/pickups' })
}
items.push({ label: '提现/账单', icon: Wallet, to: '/wallet' })
return items
})
const showUserDropdown = ref(false)
const supportLoading = ref(false)
@@ -220,7 +225,17 @@ async function handleSupportClick() {
<span v-else class="pc-avatar-text">{{ session.avatarText }}</span>
</span>
<span class="pc-user-name">{{ session.displayName }}</span>
<span class="pc-growth-badge" :class="`is-${growthBadgeTone}`">
<span
v-if="siteStore.isDistribution"
class="pc-growth-badge is-distribution"
>
分销专享
</span>
<span
v-else
class="pc-growth-badge"
:class="`is-${growthBadgeTone}`"
>
{{ session.renterGrowthLevelName }}
</span>
<span class="pc-realname-badge" :class="`is-${realnameBadge.tone}`">
@@ -234,7 +249,17 @@ async function handleSupportClick() {
<Transition name="dropdown">
<div v-if="showUserDropdown" class="pc-user-dropdown-container">
<div class="pc-user-dropdown">
<div class="dropdown-growth-panel">
<div v-if="siteStore.isDistribution" class="dropdown-growth-panel is-distribution">
<div>
<span>所属商城</span>
<strong>{{ siteStore.siteName || '专属分销站' }}</strong>
</div>
<div>
<span>会员权益</span>
<strong>渠道特惠直租</strong>
</div>
</div>
<div v-else class="dropdown-growth-panel">
<div>
<span>租客成长等级</span>
<strong>{{ session.renterGrowthLevelName }}</strong>