功能:重建指尖管理师规划系统
This commit is contained in:
@@ -28,6 +28,7 @@ const actionGuard = require('../../utils/action-guard')
|
||||
* 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.
|
||||
@@ -457,6 +458,10 @@ Page({
|
||||
})
|
||||
},
|
||||
|
||||
handleOpenAdminLogin() {
|
||||
sessionSwitch.openAdminLogin()
|
||||
},
|
||||
|
||||
/**
|
||||
* `handleInputChange` 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.
|
||||
|
||||
@@ -302,6 +302,8 @@
|
||||
|
||||
<view class="primary-btn submit-btn" bindtap="handleResetPassword">确认重置密码</view>
|
||||
</view>
|
||||
|
||||
<view class="admin-switch-link" bindtap="handleOpenAdminLogin">管理后台登录</view>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{keyboardVisible}}" class="keyboard-spacer" style="height: {{keyboardInsetRpx}}rpx;"></view>
|
||||
|
||||
@@ -408,3 +408,14 @@
|
||||
width: 100%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.admin-switch-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 72rpx;
|
||||
margin-top: 24rpx;
|
||||
color: var(--theme-primary-action);
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
@@ -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