false; } } }); } function PostPass() { var TelStr = $('#telphone').val(); //按钮倒数 if (TelStr.length > 0) { Daoshu(); //return false; } else { alert("请输入手机号!"); return false; } $.ajax({ url: '/user/XunjiaTool.aspx?type=xjyzmjson&phone=' + TelStr + '®code=10000&r=' + Math.random(), type: 'GET', dataType: 'html', timeout: 4000, beforeSend: function() { }, error: function() { }, success: function(responseData) { var returnjson = unescape(responseData); if (returnjson == "ok") { alert("校验码发送成功!"); return true; } else { alert("校验码发送失败!"); return false; } } }); } //发过验证码之后60s才能获取第二次 function Daoshu() { // $('#PostSms').disabled = true; $('#PostSms').attr('disabled', true); $('#PostSms').css("background-color", "#ddd"); $('#PostSms').css("border", "1px solid #999"); $('#PostSms').css("color", "#999"); for (i = 1; i <= 60; i++) { window.setTimeout("Update_but(" + i + ")", i * 900); } } function Update_but(num) { if (num == 60) { $('#PostSms').val("获取校验码"); $('#PostSms').attr('disabled', false); //border:1px solid #006DAB;background-color: #2D9CDD;height:28px;width:110px;font-size:12px;color: #FFFFFF; $('#PostSms').css("background-color", "#2D9CDD"); $('#PostSms').css("border", "1px solid #006DAB"); $('#PostSms').css("color", "#FFFFFF"); } else { printnr = 60 - num; $('#PostSms').val("(" + printnr + ")秒后重新获取"); } } $('#btnmessageone').on('click', function() { var d = dialog({ okValue: '确定发送信息', title: '发送购买信息', content: '
您的手机号*发送本信息免费!
 
校验码*您填写手机后收到的校验码
 
需求内容*填写完整车辆型号即可,如:SCS5070GXWD润知星吸污车,字数少于60个。
', ok: function() { var value = $('#telphone').val(); var value2 = $('#form1_content').val(); var value3 = $('#yanzhen').val(); sendmessage(value, value2, value3); if (value.length > 0) { //this.close(value + '|' + value2 + '|' + value3); this.remove(); } else { alert("请输入手机号码!"); } } }); d.addEventListener('close', function() { str = this.returnValue.split('| if (this.returnValue.split('|').length > 1) { //alert(str[0]); //sendmessage(str[0], str[1]); } }); d.show(); }); $('#btnmessagetwo').on('click', function() { var d = dialog({ okValue: '确定发送信息', title: '发送购买信息', content: '
您的手机号*发送本信息免费!
 
校验码*您填写手机后收到的校验码
 
选择经销商*
需求内容*填写完整车辆型号即可,如:SCS5070GXWD润知星吸污车,字数少于60个。
', ok: function() { var value = $('#telphone').val(); var value2 = $('#form1_content').val(); var value3 = $('#yanzhen').val(); var value4 = $("#select_jxs").val(); //alert(value4); return false; sendmessagejxs(value, value2, value3, value4); if (value.length > 0) { //this.close(value + '|' + value2 + '|' + value3); this.remove(); } else { alert("请输入手机号码!"); } } }); d.addEventListener('close', function() { str = this.returnValue.split('| if (this.returnValue.split('|').length > 1) { //alert(str[0]); //sendmessage(str[0], str[1]); } }); d.show(); }); $(document).ready(function() { $.ajax({ type: 'get', url: '/common/LoginCheck.ashx', cache: false, data: {}, error: function() { }, success: function(data) { if (data == "1") { $('#loginstate').show(); $('#nologin').hide(); } else { $('#loginstate').hide(); $('#nologin').show(); } } }); })