style(小程序): 我的页身份胶囊与菜单重组、审核面板重构、客户新增悬浮按钮等页面视觉对齐设计稿
自动发布开发环境 Nacos 配置 / publish (push) Successful in 22s
自动发布开发环境 Nacos 配置 / publish (push) Successful in 22s
This commit is contained in:
@@ -14,9 +14,17 @@ function resolveRoleText(type) {
|
||||
return '管理端'
|
||||
}
|
||||
|
||||
function resolveIdentityRole(type) {
|
||||
const role = Number(type)
|
||||
if (role === 2) return 'manager'
|
||||
if (role === 3) return 'artist'
|
||||
return ''
|
||||
}
|
||||
|
||||
Page({
|
||||
data: {
|
||||
roleText: '管理端',
|
||||
identityRole: '',
|
||||
profileCard: buildProfileCard({}, BRAND_CONFIG.defaultShopName),
|
||||
overviewLoading: false,
|
||||
overview: {
|
||||
@@ -31,11 +39,9 @@ Page({
|
||||
},
|
||||
menus: [
|
||||
{ title: '个人信息', url: '/pages/profile-edit/index' },
|
||||
{ title: '账号设置', url: '/pages/account-settings/index' },
|
||||
{ title: '店铺设置', url: '/pages/shop-settings/index' },
|
||||
{ title: '数据导出', url: '/pages/export/index' },
|
||||
{ title: '用户协议', url: '/pages/legal/index?type=USER_TERMS' },
|
||||
{ title: '隐私政策', url: '/pages/legal/index?type=PRIVACY_POLICY' },
|
||||
{ title: '店铺信息', url: '/pages/shop-settings/index' },
|
||||
{ title: '账号安全', url: '/pages/account-settings/index' },
|
||||
{ title: '订单数据', url: '/pages/export/index' },
|
||||
{ title: '关于系统', url: '/pages/about/index' }
|
||||
]
|
||||
},
|
||||
@@ -84,6 +90,7 @@ Page({
|
||||
const fallbackShopName = app.globalData.shopName || BRAND_CONFIG.defaultShopName
|
||||
this.setData({
|
||||
roleText: resolveRoleText(userInfo.type),
|
||||
identityRole: resolveIdentityRole(userInfo.type),
|
||||
profileCard: buildProfileCard(userInfo, fallbackShopName)
|
||||
})
|
||||
},
|
||||
@@ -145,6 +152,7 @@ Page({
|
||||
})
|
||||
this.setData({
|
||||
roleText: resolveRoleText(nextUserInfo.type),
|
||||
identityRole: resolveIdentityRole(nextUserInfo.type),
|
||||
profileCard: buildProfileCard(nextUserInfo, BRAND_CONFIG.defaultShopName)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user