| | |
| | | if (!value) { |
| | | callback(new Error("用户密码不能为空")); |
| | | } else { |
| | | const rep = /^\w+$/; |
| | | if (!rep.test(value)) { |
| | | callback(new Error("密码只能是以数字、26个英文字母或者下划线组成的字符串")); |
| | | } else { |
| | | callback(); |
| | | if (value.length < 6 || value.length > 16){ |
| | | callback(new Error("用户密码长度不合法")); |
| | | }else { |
| | | const rep = /^\w+$/; |
| | | if (!rep.test(value)) { |
| | | callback(new Error("密码只能是以数字、26个英文字母或者下划线组成的字符串")); |
| | | } else { |
| | | callback(); |
| | | } |
| | | } |
| | | } |
| | | }; |
| | |
| | | // nickName: user.nickName, |
| | | sex: `${user.sex}`, |
| | | password: user.password, |
| | | userType: `${user.userType}`, |
| | | userType: user.userType, |
| | | username: user.username, |
| | | zj: user.zjarea + `${user.zjnumber}` + user.zjother, |
| | | nickName: user.nickName |
| | | // departName:user.departName, |
| | | }).then(res => { |
| | | if (res.code === 200) { |
| | |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | </style> |