Commit 53e2de3f authored by yanzg's avatar yanzg

手机哈

parent 10d01568
...@@ -22,20 +22,20 @@ $(function(){ ...@@ -22,20 +22,20 @@ $(function(){
$mnGuojiNext.click(function(){ $mnGuojiNext.click(function(){
let channelId = $channel.val();//购票渠道 let channelId = $channel.val();//购票渠道
let phone = getMobile($mnInput2.val());//手机号码 let phone = getMobile(); //手机号码
if(!channelId){ if(!channelId){
$channelTip.show() $channelTip.show()
return; return;
}else{ }else{
$channelTip.hide() $channelTip.hide()
} }
if(phone.length!=11||phone.substr(0,1)!=1){ let msg = Check.isNull(phone) || Check.isPhone(phone);
if (msg) {
$phoneTip.show() $phoneTip.show()
return; return;
}else{ }else{
$phoneTip.hide() $phoneTip.hide()
} }
// 通过时间来显示必须重刷身份证等信息 // 通过时间来显示必须重刷身份证等信息
resetData(); resetData();
let channelSelect = $channel.val(); let channelSelect = $channel.val();
...@@ -45,7 +45,7 @@ $(function(){ ...@@ -45,7 +45,7 @@ $(function(){
cache.channelId =channels.channelId; cache.channelId =channels.channelId;
cache.saleId = channels.saleId; cache.saleId = channels.saleId;
cache.buyNum = $mnInput.val(); cache.buyNum = $mnInput.val();
cache.mobile = getMobile(); cache.mobile = phone;
$mnInput2.val("");//清空输入框的电话号码 $mnInput2.val("");//清空输入框的电话号码
$mnInput.val(1);//清空输入框的电话号码 $mnInput.val(1);//清空输入框的电话号码
showResPage(null,"/page/lhgj/workScanCode.html"); showResPage(null,"/page/lhgj/workScanCode.html");
......
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 to comment