2026-08-19 16:45:51 +08:00
|
|
|
<script setup lang="ts">
|
2026-09-14 20:03:27 +08:00
|
|
|
import '@/styles/adminDensity.css'
|
2026-08-19 16:45:51 +08:00
|
|
|
import { ArrowLeft } from '@lucide/vue'
|
|
|
|
|
import AdminPage from '@/shared/components/AdminPage.vue'
|
|
|
|
|
import ContractPendingNotice from './ContractPendingNotice.vue'
|
|
|
|
|
|
2026-08-20 09:10:36 +08:00
|
|
|
withDefaults(defineProps<{
|
2026-08-19 16:45:51 +08:00
|
|
|
title: string
|
2026-09-14 20:03:27 +08:00
|
|
|
dense?: boolean
|
2026-08-19 16:45:51 +08:00
|
|
|
referenceLabel: string
|
|
|
|
|
referenceValue: string
|
|
|
|
|
backLabel: string
|
|
|
|
|
domain: string
|
2026-08-20 09:10:36 +08:00
|
|
|
pending?: boolean
|
|
|
|
|
statusText?: string
|
|
|
|
|
}>(), { pending: true, statusText: '接口待接入' })
|
2026-08-19 16:45:51 +08:00
|
|
|
|
|
|
|
|
defineEmits<{ back: [] }>()
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-09-14 20:03:27 +08:00
|
|
|
<AdminPage as="div" class="overseas-detail-page" :class="{ 'admin-density': dense }">
|
2026-08-19 16:45:51 +08:00
|
|
|
<header class="overseas-detail-head">
|
2026-09-14 20:03:27 +08:00
|
|
|
<el-button :class="{ 'density-back': dense }" :link="dense" :aria-label="backLabel" @click="$emit('back')"><ArrowLeft :size="16" />返回</el-button>
|
2026-08-19 16:45:51 +08:00
|
|
|
<div class="overseas-detail-title">
|
|
|
|
|
<h1>{{ title }}</h1>
|
2026-08-27 15:56:13 +08:00
|
|
|
<p>{{ referenceLabel }} <strong><slot name="reference">{{ referenceValue }}</slot></strong></p>
|
2026-08-19 16:45:51 +08:00
|
|
|
</div>
|
2026-08-20 09:10:36 +08:00
|
|
|
<span class="overseas-detail-status" :class="{ 'is-live': !pending }" role="status">{{ statusText }}</span>
|
2026-08-19 16:45:51 +08:00
|
|
|
</header>
|
|
|
|
|
|
2026-08-20 09:10:36 +08:00
|
|
|
<ContractPendingNotice v-if="pending" :domain="domain" />
|
2026-08-19 16:45:51 +08:00
|
|
|
<slot />
|
|
|
|
|
</AdminPage>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.overseas-detail-page { min-width: 0; }
|
|
|
|
|
.overseas-detail-head { display: flex; min-height: 44px; align-items: center; gap: 12px; }
|
|
|
|
|
.overseas-detail-title { min-width: 0; flex: 1; }
|
|
|
|
|
.overseas-detail-title h1 { margin: 0; color: var(--cc-text); font-size: 20px; line-height: 1.35; }
|
2026-08-27 15:56:13 +08:00
|
|
|
.overseas-detail-title p { display: flex; min-width: 0; align-items: baseline; gap: 4px; margin: 3px 0 0; color: var(--cc-muted); font-size: 12px; line-height: 1.5; }
|
|
|
|
|
.overseas-detail-title strong { min-width: 0; max-width: 100%; color: var(--cc-text); }
|
2026-08-19 16:45:51 +08:00
|
|
|
.overseas-detail-status { display: inline-flex; min-height: 26px; align-items: center; padding: 3px 10px; border: 1px solid #f3d19e; border-radius: 999px; background: #fdf6ec; color: #b88230; font-size: 12px; font-weight: 600; white-space: nowrap; }
|
2026-08-20 09:10:36 +08:00
|
|
|
.overseas-detail-status.is-live { border-color: var(--el-color-success-light-7); background: var(--el-color-success-light-9); color: var(--el-color-success-dark-2); }
|
2026-09-14 20:03:27 +08:00
|
|
|
.overseas-detail-page.admin-density { background: var(--admin-surface); border: 1px solid var(--cc-border); gap: 0; }
|
|
|
|
|
.admin-density .overseas-detail-head { padding: var(--admin-space-3) var(--admin-space-5); gap: var(--admin-space-5); border-bottom: 1px solid var(--cc-border); flex-wrap: wrap; }
|
|
|
|
|
.admin-density .overseas-detail-title { display: flex; flex: 0 1 auto; align-items: baseline; flex-wrap: wrap; gap: var(--admin-space-5); }
|
|
|
|
|
.admin-density .overseas-detail-title h1 { font-size: var(--admin-font-section); font-weight: 500; }
|
|
|
|
|
.admin-density .overseas-detail-title p { margin: 0; font-size: var(--admin-font-caption); }
|
|
|
|
|
.admin-density .overseas-detail-title strong { font-size: var(--admin-font-title); overflow-wrap: anywhere; }
|
|
|
|
|
.admin-density .overseas-detail-status { font-size: var(--admin-font-caption); }
|
2026-08-19 16:45:51 +08:00
|
|
|
</style>
|