修改了经理端部分代码
This commit is contained in:
@ -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})
|
||||
},
|
||||
|
||||
// 切换到“密码登录”,只清空表单字段
|
||||
|
Reference in New Issue
Block a user