commission--yt-commit

This commit is contained in:
2025-06-09 19:33:21 +08:00
parent a576bacae2
commit 179f70b65d
9 changed files with 24 additions and 9 deletions

View File

@ -52,6 +52,16 @@ Page({
wx.showToast({ title: '手机号格式不正确', icon: 'none' });
return;
}
// 正则表达式,匹配非汉字字符
const reg = /[^\u4e00-\u9fa5]/;
// 判断输入的值是否含有非汉字字符
if (reg.test(salespersonName)) {
wx.showToast({
title: '姓名必须为汉字',
icon: 'none',
});
return false;
}
wx.showLoading({
title: '申请中',