集中配置四端品牌展示名称
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<button class="vip-card" type="button" @click="handleMenuClick('vip')">
|
||||
<span class="vip-card__glow"></span>
|
||||
<span class="vip-card__copy">
|
||||
<span class="section-eyebrow">甲屿云会员</span>
|
||||
<span class="section-eyebrow">{{ BRAND_CONFIG.appName }}会员</span>
|
||||
<strong>会员柔光礼遇</strong>
|
||||
<small>查看会员等级、余额和专属优惠</small>
|
||||
</span>
|
||||
|
||||
@@ -175,7 +175,7 @@ Page({
|
||||
navTitle,
|
||||
greeting: isLoggedIn ? '欢迎回来' : '游客模式',
|
||||
displayName: isLoggedIn
|
||||
? ((userInfo && userInfo.nickname) || 'Yumi 用户')
|
||||
? ((userInfo && userInfo.nickname) || BRAND_CONFIG.defaultUserName)
|
||||
: '先逛逛喜欢的款式和门店',
|
||||
bannerImages: isLoggedIn ? [] : this.data.bannerImages
|
||||
})
|
||||
|
||||
@@ -45,7 +45,7 @@ const sessionSwitch = require('../../utils/session-switch')
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const theme = require('../../utils/theme')
|
||||
const { DEFAULT_AVATAR } = require('../../utils/config')
|
||||
const { DEFAULT_AVATAR, BRAND_CONFIG } = require('../../utils/config')
|
||||
const { runWithLoading } = require('../../utils/loading')
|
||||
|
||||
function formatGrowthSummary(summary) {
|
||||
@@ -76,7 +76,8 @@ Page({
|
||||
wishlistCount: 0,
|
||||
unreadMessageCount: 0,
|
||||
growthSummary: null,
|
||||
defaultAvatar: DEFAULT_AVATAR
|
||||
defaultAvatar: DEFAULT_AVATAR,
|
||||
defaultUserName: BRAND_CONFIG.defaultUserName
|
||||
}),
|
||||
|
||||
/**
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<view class="profile-top">
|
||||
<image class="avatar" src="{{userInfo.avatar || defaultAvatar}}" mode="aspectFill" lazy-load="{{true}}" binderror="handleAvatarError"></image>
|
||||
<view class="profile-copy">
|
||||
<view class="nickname">{{userInfo.nickname || 'Yumi 用户'}}</view>
|
||||
<view class="nickname">{{userInfo.nickname || defaultUserName}}</view>
|
||||
<view class="account">{{userInfo.account}}</view>
|
||||
<view wx:if="{{userInfo.signature}}" class="signature">{{userInfo.signature}}</view>
|
||||
</view>
|
||||
|
||||
@@ -23,7 +23,7 @@ const navigation = require('../../utils/navigation')
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const theme = require('../../utils/theme')
|
||||
const { DEFAULT_AVATAR } = require('../../utils/config')
|
||||
const { DEFAULT_AVATAR, BRAND_CONFIG } = require('../../utils/config')
|
||||
const { getDraftValue, clearDraft, scheduleDraftSave, clearDraftTimer } = require('../../utils/form-draft')
|
||||
const { runWithLoading } = require('../../utils/loading')
|
||||
const {
|
||||
@@ -71,6 +71,7 @@ Page({
|
||||
activeSecurityPanel: '',
|
||||
userInfo: null,
|
||||
defaultAvatar: DEFAULT_AVATAR,
|
||||
defaultUserName: BRAND_CONFIG.defaultUserName,
|
||||
form: {
|
||||
nickname: '',
|
||||
signature: ''
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<view class="profile-preview">
|
||||
<image class="avatar" src="{{userInfo.avatar || defaultAvatar}}" mode="aspectFill" lazy-load="{{true}}" binderror="handleAvatarError"></image>
|
||||
<view class="profile-preview-copy">
|
||||
<view class="preview-name">{{userInfo.nickname || 'Yumi 用户'}}</view>
|
||||
<view class="preview-name">{{userInfo.nickname || defaultUserName}}</view>
|
||||
<view class="preview-account">{{userInfo.account}}</view>
|
||||
<view class="preview-phone">{{userInfo.phone || '未绑定手机号'}}</view>
|
||||
</view>
|
||||
|
||||
@@ -127,6 +127,13 @@ const DEFAULT_DOMAINS = {
|
||||
release: 'https://yunail.art'
|
||||
}
|
||||
|
||||
const DEFAULT_BRAND_CONFIG = {
|
||||
appName: 'Jayu Artist',
|
||||
appNameEn: 'Jiayu Designer',
|
||||
appTitle: 'Jayu Artist',
|
||||
defaultUserName: 'Yumi 用户'
|
||||
}
|
||||
|
||||
/**
|
||||
* Purpose: DOMAIN_MAP supports config.js by holding or executing the domain map page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
@@ -157,9 +164,10 @@ const API_DOMAIN = ensureHttps(
|
||||
ENV_VERSION
|
||||
)
|
||||
const BRAND_CONFIG = {
|
||||
appName: String(localOverride.appName || 'Jayu Artist'),
|
||||
appNameEn: String(localOverride.appNameEn || 'Jiayu Designer'),
|
||||
appTitle: String(localOverride.appTitle || 'Jayu Artist')
|
||||
appName: String(localOverride.appName || DEFAULT_BRAND_CONFIG.appName),
|
||||
appNameEn: String(localOverride.appNameEn || DEFAULT_BRAND_CONFIG.appNameEn),
|
||||
appTitle: String(localOverride.appTitle || DEFAULT_BRAND_CONFIG.appTitle),
|
||||
defaultUserName: String(localOverride.defaultUserName || DEFAULT_BRAND_CONFIG.defaultUserName)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
module.exports = {
|
||||
developTarget: 'local',
|
||||
// 这里集中覆盖用户端小程序展示名称。
|
||||
appName: 'Jayu Artist',
|
||||
appNameEn: 'Jiayu Designer',
|
||||
appTitle: 'Jayu Artist',
|
||||
defaultUserName: 'Yumi 用户',
|
||||
requestTimeout: 10000,
|
||||
enableRequestSigning: true,
|
||||
domains: {
|
||||
|
||||
@@ -4,3 +4,8 @@ VITE_DEV_PROXY_TARGET=http://dev.yunail.art:18888
|
||||
VITE_APP_NAME=Jayu Salon
|
||||
VITE_APP_TITLE=Jayu Salon
|
||||
VITE_APP_SHORT_NAME=指
|
||||
VITE_APP_TAGLINE=美甲店预约排班管理
|
||||
VITE_ABOUT_NAME=甲屿云
|
||||
VITE_ABOUT_DESCRIPTION=专为美甲店店长设计的预约排班日历子系统
|
||||
VITE_DEFAULT_SHOP_NAME=甲屿店务
|
||||
VITE_REGISTER_SHOP_PLACEHOLDER=例如:Jayu Artist
|
||||
|
||||
@@ -3,3 +3,8 @@ VITE_ADMIN_API_BASE_URL=https://yunail.art/admin/api
|
||||
VITE_APP_NAME=Jayu Salon
|
||||
VITE_APP_TITLE=Jayu Salon
|
||||
VITE_APP_SHORT_NAME=指
|
||||
VITE_APP_TAGLINE=美甲店预约排班管理
|
||||
VITE_ABOUT_NAME=甲屿云
|
||||
VITE_ABOUT_DESCRIPTION=专为美甲店店长设计的预约排班日历子系统
|
||||
VITE_DEFAULT_SHOP_NAME=甲屿店务
|
||||
VITE_REGISTER_SHOP_PLACEHOLDER=例如:Jayu Artist
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
||||
<meta name="theme-color" content="#f8f5ef" />
|
||||
<link rel="icon" type="image/png" href="%BASE_URL%assets/images/app-icon.png" />
|
||||
<title>Jayu Salon</title>
|
||||
<title>%VITE_APP_NAME%</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -21,6 +21,7 @@ import { computed } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { ChevronLeft } from 'lucide-vue-next'
|
||||
import TabBar from '@/components/TabBar.vue'
|
||||
import { BRAND_CONFIG } from '@/config/brand'
|
||||
|
||||
const props = defineProps<{
|
||||
title?: string
|
||||
@@ -33,7 +34,7 @@ const router = useRouter()
|
||||
|
||||
const showTab = computed(() => Boolean(route.meta.tab))
|
||||
const showHeader = computed(() => !props.hideHeader && !showTab.value)
|
||||
const title = computed(() => props.title || String(route.meta.title || 'Jayu Salon'))
|
||||
const title = computed(() => props.title || String(route.meta.title || BRAND_CONFIG.appName))
|
||||
|
||||
const goBack = (): void => {
|
||||
if (window.history.length > 1) {
|
||||
|
||||
@@ -8,5 +8,3 @@ const DEFAULT_ADMIN_API_BASE_URL = import.meta.env.DEV ? '/admin/api' : 'https:/
|
||||
|
||||
export const API_BASE_URL = normalizeBaseUrl(import.meta.env.VITE_API_BASE_URL, DEFAULT_API_BASE_URL)
|
||||
export const ADMIN_API_BASE_URL = normalizeBaseUrl(import.meta.env.VITE_ADMIN_API_BASE_URL, DEFAULT_ADMIN_API_BASE_URL)
|
||||
export const APP_NAME = String(import.meta.env.VITE_APP_NAME || 'Jayu Salon')
|
||||
export const APP_SHORT_NAME = String(import.meta.env.VITE_APP_SHORT_NAME || '指')
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
function normalizeBrandValue(value: string | undefined, fallbackValue: string): string {
|
||||
const target = String(value || fallbackValue).trim()
|
||||
return target || fallbackValue
|
||||
}
|
||||
|
||||
const DEFAULT_APP_NAME = 'Jayu Salon'
|
||||
const DEFAULT_APP_SHORT_NAME = '指'
|
||||
const DEFAULT_APP_TAGLINE = '美甲店预约排班管理'
|
||||
const DEFAULT_ABOUT_NAME = '甲屿云'
|
||||
const DEFAULT_ABOUT_DESCRIPTION = '专为美甲店店长设计的预约排班日历子系统'
|
||||
const DEFAULT_SHOP_NAME = '甲屿店务'
|
||||
const DEFAULT_REGISTER_SHOP_PLACEHOLDER = '例如:Jayu Artist'
|
||||
|
||||
export const BRAND_CONFIG = {
|
||||
appName: normalizeBrandValue(import.meta.env.VITE_APP_NAME, DEFAULT_APP_NAME),
|
||||
appShortName: normalizeBrandValue(import.meta.env.VITE_APP_SHORT_NAME, DEFAULT_APP_SHORT_NAME),
|
||||
appTagline: normalizeBrandValue(import.meta.env.VITE_APP_TAGLINE, DEFAULT_APP_TAGLINE),
|
||||
aboutName: normalizeBrandValue(import.meta.env.VITE_ABOUT_NAME, DEFAULT_ABOUT_NAME),
|
||||
aboutDescription: normalizeBrandValue(import.meta.env.VITE_ABOUT_DESCRIPTION, DEFAULT_ABOUT_DESCRIPTION),
|
||||
defaultShopName: normalizeBrandValue(import.meta.env.VITE_DEFAULT_SHOP_NAME, DEFAULT_SHOP_NAME),
|
||||
registerShopPlaceholder: normalizeBrandValue(import.meta.env.VITE_REGISTER_SHOP_PLACEHOLDER, DEFAULT_REGISTER_SHOP_PLACEHOLDER)
|
||||
}
|
||||
@@ -2,9 +2,12 @@ import { createApp } from 'vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import App from './App.vue'
|
||||
import router from './router'
|
||||
import { BRAND_CONFIG } from './config/brand'
|
||||
import { installKeyboardInset } from './utils/keyboard-inset'
|
||||
import './styles/base.css'
|
||||
|
||||
document.title = BRAND_CONFIG.appName
|
||||
|
||||
const app = createApp(App)
|
||||
|
||||
installKeyboardInset()
|
||||
|
||||
@@ -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[] }> = [
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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 || {}
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"pages/about/index"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTitleText": "Jayu Salon",
|
||||
"navigationBarTitleText": "",
|
||||
"navigationBarBackgroundColor": "#F8F5EF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"backgroundColor": "#F8F5EF",
|
||||
|
||||
@@ -101,7 +101,8 @@ Page({
|
||||
shopSelectVisible: false,
|
||||
shopSelectMode: '',
|
||||
shopOptions: [],
|
||||
switchingShop: false
|
||||
switchingShop: false,
|
||||
appTagline: BRAND_CONFIG.appTagline
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="brand">
|
||||
<image class="logo" src="/assets/images/app-icon.png" mode="aspectFill"></image>
|
||||
<text class="brand-name">{{appName}}</text>
|
||||
<text class="brand-sub">美甲店预约排班管理</text>
|
||||
<text class="brand-sub">{{appTagline}}</text>
|
||||
</view>
|
||||
|
||||
<view class="card auth-card">
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
}
|
||||
},
|
||||
"condition": {},
|
||||
"projectname": "Jayu Salon",
|
||||
"projectname": "JY-Salon-WeChat",
|
||||
"simulatorType": "wechat",
|
||||
"simulatorPluginLibVersion": {},
|
||||
"editorSetting": {},
|
||||
|
||||
@@ -131,6 +131,14 @@ const DEFAULT_DOMAINS = {
|
||||
release: 'https://yunail.art'
|
||||
}
|
||||
|
||||
const DEFAULT_BRAND_CONFIG = {
|
||||
appName: 'Jayu Salon',
|
||||
appTagline: '美甲店预约排班管理',
|
||||
productName: 'Jayu Artist',
|
||||
defaultShopName: 'Jayu Artist',
|
||||
registerShopPlaceholder: '例如:Jayu Artist'
|
||||
}
|
||||
|
||||
const DOMAIN_MAP = mergeDomains(DEFAULT_DOMAINS, localOverride.domains)
|
||||
const DEFAULT_DEVELOP_TARGET = IS_DEVTOOLS ? 'local' : 'dev-remote'
|
||||
const DEVELOP_TARGET = Object.prototype.hasOwnProperty.call(localOverride, 'developTarget')
|
||||
@@ -139,10 +147,11 @@ const DEVELOP_TARGET = Object.prototype.hasOwnProperty.call(localOverride, 'deve
|
||||
const BASE_DOMAIN = resolveDomain(DOMAIN_MAP, ENV_VERSION, DEVELOP_TARGET)
|
||||
const brandOverride = localOverride.brand || {}
|
||||
const BRAND_CONFIG = {
|
||||
appName: String(brandOverride.appName || 'Jayu Salon'),
|
||||
productName: String(brandOverride.productName || 'Jayu Artist'),
|
||||
defaultShopName: String(brandOverride.defaultShopName || 'Jayu Artist'),
|
||||
registerShopPlaceholder: String(brandOverride.registerShopPlaceholder || '例如:Jayu Artist')
|
||||
appName: String(brandOverride.appName || DEFAULT_BRAND_CONFIG.appName),
|
||||
appTagline: String(brandOverride.appTagline || DEFAULT_BRAND_CONFIG.appTagline),
|
||||
productName: String(brandOverride.productName || DEFAULT_BRAND_CONFIG.productName),
|
||||
defaultShopName: String(brandOverride.defaultShopName || DEFAULT_BRAND_CONFIG.defaultShopName),
|
||||
registerShopPlaceholder: String(brandOverride.registerShopPlaceholder || DEFAULT_BRAND_CONFIG.registerShopPlaceholder)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -2,8 +2,10 @@ module.exports = {
|
||||
developTarget: 'local',
|
||||
requestTimeout: 10000,
|
||||
enableRequestSigning: true,
|
||||
// 这里集中覆盖店务小程序运行时展示名称。
|
||||
brand: {
|
||||
appName: 'Jayu Salon',
|
||||
appTagline: '美甲店预约排班管理',
|
||||
productName: 'Jayu Artist',
|
||||
defaultShopName: 'Jayu Artist',
|
||||
registerShopPlaceholder: '例如:Jayu Artist'
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# 四端品牌展示名称配置说明
|
||||
|
||||
更新时间:2026-07-02
|
||||
|
||||
## 背景
|
||||
|
||||
前端与两个小程序中存在应用名、产品名、默认门店名和登录页副标题等展示文案硬编码。为支持后续品牌名称一键替换,本次将四端运行时展示名称集中到各自配置入口。
|
||||
|
||||
## 配置入口
|
||||
|
||||
- 店务 Web:`JY-Salon-Front/src/config/brand.ts` 统一读取 `VITE_APP_NAME`、`VITE_APP_TAGLINE`、`VITE_ABOUT_NAME`、`VITE_DEFAULT_SHOP_NAME`、`VITE_REGISTER_SHOP_PLACEHOLDER` 等环境变量;开发与生产默认值分别写在 `.env.development` 和 `.env.production`。
|
||||
- 用户 Web:`JY-Artist-Frontend/src/config/brand.ts` 统一读取 `VITE_APP_NAME`、`VITE_APP_NAME_EN`、`VITE_APP_TITLE`、`VITE_ADMIN_APP_NAME` 和 `VITE_APP_SHORT_NAME`。
|
||||
- 店务小程序:`JY-Salon-WeChat/utils/config.js` 的 `BRAND_CONFIG` 管理 `appName`、`appTagline`、`productName`、`defaultShopName` 和 `registerShopPlaceholder`;本地覆盖写在 `utils/config.local.js`,模板见 `utils/config.local.example.js`。
|
||||
- 用户小程序:`JY-Artist-WeChat/utils/config.js` 的 `BRAND_CONFIG` 管理 `appName`、`appNameEn`、`appTitle` 和 `defaultUserName`;本地覆盖写在 `utils/config.local.js`,模板见 `utils/config.local.example.js`。
|
||||
|
||||
## 影响范围
|
||||
|
||||
本次只调整运行时展示名称相关配置和页面引用,不调整 API 域名、图片域名、默认密码、业务角色名称和数据库配置。微信小程序的 `app.json` 和 `project.config.json` 是静态元数据,不能直接引用 `utils/config.js`,因此运行时页面展示以 `BRAND_CONFIG` 为准。
|
||||
|
||||
## 验证方式
|
||||
|
||||
修改品牌配置后,分别运行对应端构建或语法检查,确认页面可正常读取配置。店务 Web 和用户 Web 应运行 `npm run build`;小程序端应至少用 Node 加载 `utils/config.js`,确认 `BRAND_CONFIG` 能正确导出。
|
||||
Reference in New Issue
Block a user