From 2b329397bce9c6c43091fd6b760db2eaa50a4b43 Mon Sep 17 00:00:00 2001 From: zou Date: Sat, 8 Aug 2026 11:48:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(F006):=20=E4=BC=81=E4=B8=9A=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E4=BC=98=E5=8C=96=20-=20=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=90=8D=E6=97=81=E6=98=BE=E7=A4=BA=E6=A0=87=E7=AD=BE=20+=20?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E5=BA=97=E9=93=BA=E6=8C=89=E9=92=AE=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=20/v2/shop/:id=20(pc-=E5=89=8D=E7=AB=AF-v2=20shop/:id?= =?UTF-8?q?=20=E8=B7=AF=E7=94=B1=E5=B7=B2=E8=A1=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/enterprise/EnterpriseDetailView.vue | 53 +++++++++++-------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/src/modules/user/enterprise/EnterpriseDetailView.vue b/src/modules/user/enterprise/EnterpriseDetailView.vue index 784a249..7da305c 100644 --- a/src/modules/user/enterprise/EnterpriseDetailView.vue +++ b/src/modules/user/enterprise/EnterpriseDetailView.vue @@ -10,6 +10,7 @@ */ import { ref, computed, onMounted } from 'vue' import { useRoute, useRouter } from 'vue-router' +import { Shop } from '@element-plus/icons-vue' import { httpGet } from '@/utils/request' import PageHeader from '@/components/PageHeader/PageHeader.vue' @@ -86,6 +87,12 @@ async function load() { } catch { performanceList.value = [] } } +function goStore() { + const eid = detail.value.enterpriseId || detail.value.id + if (!eid) return + window.open(`/v2/shop/${eid}`, '_blank') +} + onMounted(load) @@ -104,6 +111,7 @@ onMounted(load)

{{ detail.enterpriseName || '--' }}

+ {{ t }} {{ STATUS_MAP[detail.status].label }} 已禁用
@@ -112,23 +120,25 @@ onMounted(load) {{ registerYear }} 成立 信用代码 {{ detail.creditCode }}
-
- {{ t }} -
-
-
-
{{ LEVEL_MAP[detail.supplierLevel as number] || '--' }}
-
供应商等级
-
-
-
{{ detail.currentScore ?? '--' }}
-
当前评分
-
-
-
{{ detail.enterpriseRate ?? '--' }}
-
企业评级
+
+
+
+
{{ LEVEL_MAP[detail.supplierLevel as number] || '--' }}
+
供应商等级
+
+
+
{{ detail.currentScore ?? '--' }}
+
当前评分
+
+
+
{{ detail.enterpriseRate ?? '--' }}
+
企业评级
+
+ + 进入店铺 +
@@ -290,19 +300,20 @@ onMounted(load) .logo-img { width: 100%; height: 100%; } .logo-fallback { color: #fff; font-size: 32px; font-weight: 700; } .header-main { flex: 1; min-width: 0; } -.header-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } +.header-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; } .ent-name { font-size: 22px; font-weight: 700; margin: 0; color: var(--ink); } +.name-tag { + background: var(--primary-soft, #e0ecff); color: var(--primary); + font-size: 12px; padding: 2px 12px; border-radius: 20px; white-space: nowrap; +} .header-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; margin-bottom: 10px; } .meta-item::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 6px; vertical-align: middle; } -.header-tags { display: flex; gap: 8px; flex-wrap: wrap; } -.tag-chip { - background: var(--primary-soft, #e0ecff); color: var(--primary); - font-size: 12px; padding: 2px 12px; border-radius: 20px; -} +.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; } .header-stats { display: flex; gap: 32px; } .stat-cell { text-align: center; } .stat-value { font-size: 20px; font-weight: 700; color: var(--ink); } .stat-label { font-size: 12px; color: var(--ink-3); margin-top: 4px; } +.store-btn { font-weight: 600; } /* ===== Tabs ===== */ .tab-nav {