修改了经理端部分代码

This commit is contained in:
2025-08-07 11:45:28 +08:00
parent 3996895c0d
commit d1b4fa8ca3
11 changed files with 61 additions and 66 deletions

View File

@ -21,12 +21,14 @@ Page({
passwordType: true,
role: '', // 登录角色
showRole: '',
isShowRegister: true
},
onLoad(options) {
const role = options.role || ''
const showRole = roleMap.get(role) || ''
this.setData({ role, showRole })
if (role === 'manager') this.setData({isShowRegister: false})
},
// 切换到“密码登录”,只清空表单字段