集中配置四端品牌展示名称

This commit is contained in:
2026-07-02 23:15:57 +08:00
parent d999af7a81
commit 2c23d764a1
27 changed files with 117 additions and 33 deletions
+4 -3
View File
@@ -2,9 +2,9 @@
<MobileShell title="关于">
<div class="about-page">
<section class="card brand-card">
<img class="logo" :src="appIconUrl" alt="甲屿云" />
<strong>甲屿云</strong>
<span>专为美甲店店长设计的预约排班日历子系统</span>
<img class="logo" :src="appIconUrl" :alt="BRAND_CONFIG.aboutName" />
<strong>{{ BRAND_CONFIG.aboutName }}</strong>
<span>{{ BRAND_CONFIG.aboutDescription }}</span>
</section>
<section class="card about-list section">
@@ -50,6 +50,7 @@
<script setup lang="ts">
import MobileShell from '@/components/MobileShell.vue'
import { BRAND_CONFIG } from '@/config/brand'
const appIconUrl = `${import.meta.env.BASE_URL}assets/images/app-icon.png`
const versionRecords: Array<{ version: string; date: string; title: string; items: string[] }> = [
+4 -4
View File
@@ -2,9 +2,9 @@
<MobileShell plain hide-header>
<div class="auth-page">
<section class="brand-block">
<img class="brand-block__logo" :src="appIconUrl" alt="Jayu Salon" />
<h1>{{ APP_NAME }}</h1>
<p>美甲店预约排班管理</p>
<img class="brand-block__logo" :src="appIconUrl" :alt="BRAND_CONFIG.appName" />
<h1>{{ BRAND_CONFIG.appName }}</h1>
<p>{{ BRAND_CONFIG.appTagline }}</p>
</section>
<section class="card auth-card">
@@ -93,7 +93,7 @@ import { onBeforeUnmount, onMounted, reactive, ref } from 'vue'
import { useRouter } from 'vue-router'
import BaseModal from '@/components/BaseModal.vue'
import MobileShell from '@/components/MobileShell.vue'
import { APP_NAME } from '@/config/api'
import { BRAND_CONFIG } from '@/config/brand'
import { authApi, type PasswordLoginRequest, type PhoneLoginRequest } from '@/api/auth'
import type { IdType, LegalAgreement, LoginResponse, LoginShop } from '@/types/common'
import { useSessionStore } from '@/stores/session'
+3 -2
View File
@@ -90,6 +90,7 @@ import MobileShell from '@/components/MobileShell.vue'
import { authApi } from '@/api/auth'
import { fileApi } from '@/api/file'
import { userApi } from '@/api/user'
import { BRAND_CONFIG } from '@/config/brand'
import { useSessionStore } from '@/stores/session'
import { useToastStore } from '@/stores/toast'
import type { UserInfo } from '@/types/common'
@@ -217,8 +218,8 @@ const roleText = computed(() => {
if (role === 4) return '管理员'
return '管理端'
})
const shopName = computed(() => userInfo.value?.shopName || '甲屿云')
const phoneText = computed(() => userInfo.value?.contactPhone || userInfo.value?.phone || userInfo.value?.account || '店长端')
const shopName = computed(() => userInfo.value?.shopName || BRAND_CONFIG.aboutName)
const phoneText = computed(() => userInfo.value?.contactPhone || userInfo.value?.phone || userInfo.value?.account || BRAND_CONFIG.appTagline)
const syncProfileToSession = (profile: UserInfo): void => {
const currentUserInfo: Partial<UserInfo> = session.userInfo || {}
+2 -1
View File
@@ -14,7 +14,7 @@
</div>
<div class="field">
<label class="required">店铺名称</label>
<input v-model.trim="form.shopName" placeholder="例如:Jayu Artist" />
<input v-model.trim="form.shopName" :placeholder="BRAND_CONFIG.registerShopPlaceholder" />
</div>
<div class="field">
<label class="required">昵称</label>
@@ -54,6 +54,7 @@ import { onBeforeUnmount, onMounted, reactive, ref } from 'vue'
import { useRouter } from 'vue-router'
import MobileShell from '@/components/MobileShell.vue'
import { authApi } from '@/api/auth'
import { BRAND_CONFIG } from '@/config/brand'
import { useSessionStore } from '@/stores/session'
import { useToastStore } from '@/stores/toast'
import type { LegalAgreement } from '@/types/common'
@@ -141,6 +141,7 @@ import MobileShell from '@/components/MobileShell.vue'
import PageSection from '@/components/PageSection.vue'
import TimePickerField from '@/components/TimePickerField.vue'
import { managerShopApi } from '@/api/managerShop'
import { BRAND_CONFIG } from '@/config/brand'
import type { ShopScheduleException } from '@/types/manager'
import { formatDate } from '@/utils/date'
import { useToastStore } from '@/stores/toast'
@@ -173,7 +174,7 @@ const loading = ref(false)
const saving = ref(false)
const exceptions = ref<ShopScheduleException[]>([])
const form = reactive({
shopName: '甲屿店务',
shopName: BRAND_CONFIG.defaultShopName,
startTime: '10:00',
endTime: '22:00',
defaultDuration: '60',