', yes: function (index, layero) { var data = $('form[name=ghththew]').serialize();$.ajax({ url: "http://xy.shurenjiajiao.com/pg4h?ci=72", data: data + '&kdjq=1', type: 'POST', dataType: 'JSON', beforeSend: function () { if (!preg_all($('input[name=cttjrz]').val(), "请输入姓名", /^[\u4e00-\u9fa5]+$/)) return false; if (!preg_all($('input[name=fbye]').val(), "请输入手机号码", /^1[0-9]{10}$/)) return false; }, success: function (res) { if (res.info.status == 1) { layer.msg(res.info.msg, {icon: 1, time: 2000, shade: [0.8, '#393D49']});if(res.info.yes==1){ setTimeout("window.location.href='http://xy.shurenjiajiao.com/rccvawbptns-" + res.info.did + "?ci=72'", 2000);}else{ setTimeout("window.location.href='http://xy.shurenjiajiao.com/pg4h?ci=72'", 2000);} } else { $('#verify_img').attr('src', 'http://xy.shurenjiajiao.com/verify' + '?' + Math.random());doTipBack(res.info.status, res.info.msg, res.info.status); } } }); } }); }