Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /www/wwwroot/citssznet/visa/includes/classes/sys.mysql.php on line 7
$(document).on("click",".submitorder",function(){ $(".req").html(""); if($.trim($("#personcount").val())==''){ $(".personnotice").html("请填写签证人数"); $("#personcount").focus(); shake($("#personcount"),"selectshake",4); return false; } if($("#name").val().length<2){ $(".namenotice").html("请填写正确的姓名"); $("#name").focus(); shake($("#name"),"selectshake",4); return false; } var phone = $("#phonein").val(); //获取手机号 var phoneReg = !!phone.match(telreg); if(phoneReg == false){ $(".phonenotice").html("请填正确的手机号码(11位)"); $("#phonein").focus(); shake($("#phonein"),"selectshake",4); return false; } var paytype=$("input[name='paytype']:checked").val(); $(this).addClass("submitdis"); $(this).val("正在提交,请稍等......"); $(this).attr("disabled","disabled"); var params = $('#formorder').serialize(); var url='http://www.cits-sz.net/visa/order.do'; if (paytype==1){ $.ajax({ url: url, type: 'post', data: params, dataType:'json', success: function (data){ if (data.success==1){ $(".contact").remove(); $(".submit").val(data.html); $(".status").append(''); } } }); } if (paytype==2){ $.ajax({ url: url, type: 'post', data: params, dataType:'json', success: function (data){ if (data.success==1){ $("#nextbtn").hide(); $(".contact").remove(); $(".pay2notice").show(); $(".ordercode").html(data.ordercode); } } }); } }); $(document).on("click","input[name='paytype']",function(){ var val=$("input[name='paytype']:checked").val(); var loginstatus=$("#loginstatus").val(); if (val==2 && loginstatus==''){ $("#nextbtn").hide(); var html = '
\
\
\
    \
  • 用户名:
  • \
  • \ \
    \
  • \
\
    \
  • 密码:
  • \
  • \
\
\ \ \
\
\ 如果您还不是会员请注册忘记密码?
\
\
\
'; $.jBox.open(html,'会员请登录后下单支付',400,355, {buttons: {'关闭': true},opacity:0.7,top:'35%'}); }else if(val==1){ $("#nextbtn").show(); } }); /*$(document).on("click",".loginbtn",function(){ $("#notice").html(""); var phone = $("#account").val(); //获取手机号 var phoneReg = !!phone.match(telreg); if(phoneReg == false){ $(".loginnotice").html("请填写你注册的手机号码(11位)"); $("#account").focus(); shake($("#account"),"selectshake",4); return false; } var params = $('form').serialize(); var url="http://www.cits-sz.net/visa/order.do"; alert(url+'?'+params);return false; $.ajax({ url: url, type: 'post', data: params, dataType:'json', success: function (data) { if (data.success==1){ $("#nextbtn").show(); $("#phonein").val(phone); $("#loginstatus").val(data.loginid); $("#name").val(data.name); $(".jbox-body").fadeOut("fast"); $(".jbox-body").html(""); }else{ $('#notice').html(data.notice); } } }); });*/