集中配置四端品牌展示名称
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user