功能:重建指尖管理师规划系统
This commit is contained in:
@@ -39,6 +39,7 @@ const auth = require('../../utils/auth')
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const navigation = require('../../utils/navigation')
|
||||
const sessionSwitch = require('../../utils/session-switch')
|
||||
/**
|
||||
* Purpose: theme supports index.js by holding or executing the theme 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.
|
||||
@@ -153,6 +154,10 @@ Page({
|
||||
navigation.openAuth('/pages/profile/index')
|
||||
},
|
||||
|
||||
handleOpenAdminLogin() {
|
||||
sessionSwitch.openAdminLogin()
|
||||
},
|
||||
|
||||
/**
|
||||
* `handleOpenSettings` page method. Use this from WXML event bindings or lifecycle hooks.
|
||||
* Call guide: read or update page data with `this.setData(...)` inside the method when state changes.
|
||||
|
||||
@@ -106,6 +106,10 @@
|
||||
<text>设置中心</text>
|
||||
<text class="menu-arrow">></text>
|
||||
</view>
|
||||
<view class="menu-item admin-entry-item" bindtap="handleOpenAdminLogin">
|
||||
<text>进入管理后台</text>
|
||||
<text class="menu-arrow">></text>
|
||||
</view>
|
||||
<view class="menu-item logout-item" bindtap="handleLogout">
|
||||
<text>退出登录</text>
|
||||
<text class="menu-arrow">></text>
|
||||
|
||||
@@ -253,6 +253,15 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.admin-entry-item {
|
||||
color: var(--theme-primary-action);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.admin-entry-item .menu-arrow {
|
||||
color: var(--theme-primary-action);
|
||||
}
|
||||
|
||||
.logout-item .menu-arrow {
|
||||
color: var(--theme-primary);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user