Commit 78442e35 by doszhang

dos

parent a11a1e3d
......@@ -163,21 +163,25 @@ function submitInfo() {
if (name.match(/^\s*$/)) {
$('#notification_area').remove();
my_notify('请输入姓名')
submitLock = false
return false;
}
if (tel.match(/^\s*$/)) {
$('#notification_area').remove();
my_notify('请输入电话')
submitLock = false
return false;
}
if (!tel.match(/^1\d{10}$/)) {
$('#notification_area').remove();
my_notify('电话号码输入有误')
submitLock = false
return false;
}
if (address.match(/^\s*$/)) {
$('#notification_area').remove();
my_notify('请输入地址')
submitLock = false
return false;
}
......@@ -201,6 +205,7 @@ function submitInfo() {
}, 2000)
} else {
submitLock = false
$('#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