commission--yt-commit
This commit is contained in:
@ -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: '申请中',
|
||||
|
Reference in New Issue
Block a user