diff --git a/index.html b/index.html index 167b6a9..a1a0051 100644 --- a/index.html +++ b/index.html @@ -1168,7 +1168,31 @@ //发送二维码 $('#sendRegCode').click(function () { - Btnsettimeou() + + if(!$("#mobile").val()){ + Swal.fire({ + title: '提示', + text: '请填写联系方式!', + icon: 'error', // 可选:'success', 'error', 'warning', 'info', 'question' + confirmButtonText: '确定' + }); + + return; + } + if($("#mobile").val().length != 11){ + Swal.fire({ + title: '提示', + text: '请填写正确联系方式!', + icon: 'error', // 可选:'success', 'error', 'warning', 'info', 'question' + confirmButtonText: '确定' + }); + + return; + } + + Btnsettimeou() + + })