Commit 9543e856 by doszhang

dos

parent b210cbcd
...@@ -111,7 +111,7 @@ let canvasArr = [ ...@@ -111,7 +111,7 @@ let canvasArr = [
let posterCanvas; let posterCanvas;
let posterCtx; let posterCtx;
$('input[name=tel]').attr('type', 'tel'); // $('input[name=tel]').attr('type', 'tel');
$(document).ready(function () { $(document).ready(function () {
// $('.page').on('touchmove', function (e) { // $('.page').on('touchmove', function (e) {
// e.preventDefault(); // e.preventDefault();
...@@ -283,9 +283,9 @@ function submit() { ...@@ -283,9 +283,9 @@ function submit() {
my_notify('请填写姓名'); my_notify('请填写姓名');
submitStatus = true; submitStatus = true;
return false; return false;
} else if (!tel.match(/^1\d{10}$/)) { } else if (tel.match(/^\s*$/)) {
$('#notification_area').remove(); $('#notification_area').remove();
my_notify('电话填写有误'); my_notify('请填写电话号');
submitStatus = true; submitStatus = true;
return false; return false;
} }
......
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