注册修改为绑定

This commit is contained in:
2025-10-21 21:51:51 +08:00
parent 5ee4e077fb
commit be2323074b
28 changed files with 729 additions and 211 deletions

View File

@@ -148,16 +148,16 @@ Page({
if (!phone.trim()) {
this.setData({
errorMessage: '请输入手机号'
errorMessage: '请输入员工工号'
});
return false;
}
// 简单的手机号格式验证
const phoneRegex = /^1[3-9]\d{9}$/;
// 简单的号格式验证
const phoneRegex = /^\d+$/;
if (!phoneRegex.test(phone)) {
this.setData({
errorMessage: '请输入正确的手机号格式'
errorMessage: '工号只能包含数字'
});
return false;
}