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

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
+13 -4
View File
@@ -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'