配置化平台品牌名称
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
const { BRAND_CONFIG } = require('../../utils/config')
|
||||
|
||||
Page({
|
||||
data: {
|
||||
shopName: 'Fingertip Designer',
|
||||
shopName: BRAND_CONFIG.defaultShopName,
|
||||
phone: '店长端',
|
||||
menus: [
|
||||
{ title: '店铺设置', url: '/pages/shop-settings/index' },
|
||||
@@ -13,7 +15,7 @@ Page({
|
||||
onShow() {
|
||||
const app = getApp()
|
||||
this.setData({
|
||||
shopName: app.globalData.shopName || '指尖管理师',
|
||||
shopName: app.globalData.shopName || BRAND_CONFIG.appName,
|
||||
phone: (app.globalData.userInfo && (app.globalData.userInfo.phone || app.globalData.userInfo.account)) || '店长端'
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user