backup: 紫色UI换肤前完整备份(当前橙色逍遥梦主题)
保留改造前全部页面样式与功能代码,便于回滚。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// pages/verify/verify.js
|
||||
import { createPage, request } from '../../utils/base-page.js'
|
||||
import { enterLockedRole } from '../../utils/primary-role.js'
|
||||
import { isStaffMode, restoreStaffContextAfterAuth } from '../../utils/staff-api.js'
|
||||
|
||||
const API_MAP = {
|
||||
dashou: '/yonghu/dashouzhuce',
|
||||
@@ -46,8 +47,17 @@ Page(createPage({
|
||||
this.checkStatus()
|
||||
},
|
||||
|
||||
onShow() {
|
||||
if (this.data.authType) this.checkStatus()
|
||||
async onShow() {
|
||||
if (this.data.authType) {
|
||||
if (this.data.authType === 'shangjia' && wx.getStorageSync('token')) {
|
||||
await restoreStaffContextAfterAuth();
|
||||
if (isStaffMode()) {
|
||||
enterLockedRole('shangjia', getApp());
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.checkStatus();
|
||||
}
|
||||
},
|
||||
|
||||
checkStatus() {
|
||||
|
||||
Reference in New Issue
Block a user