Commit 227014f9 by doszhang

dos

parent 401e8f66
......@@ -132,18 +132,18 @@ function backToHome() {
function checkInfo() {
let name = $('input[name=name]').val();
let business = $('input[name=business]').val();
name = '张三三';
business = '1234567890';
// if (name.match(/^\s*$/)) {
// $('#notification_area').remove();
// my_notify('请填写姓名');
// return false;
// }
// if (!business.match(/^\d{10}$/)) {
// $('#notification_area').remove();
// my_notify('业务号填写有误');
// return false;
// }
// name = '张三三';
// business = '1234567890';
if (name.match(/^\s*$/)) {
$('#notification_area').remove();
my_notify('请填写姓名');
return false;
}
if (!business.match(/^\d{10}$/)) {
$('#notification_area').remove();
my_notify('业务号填写有误');
return false;
}
if ($('input[name=btn-upload]').val() == '') {
$('#notification_area').remove();
my_notify('请上传头像');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment