CINXE.COM

新车贷款

<!DOCTYPE > <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name="referrer" content="always" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>新车贷款</title> <meta name="keywords" content="汽车金融,太平洋汽车网" /> <meta name="description" content="贷款申请页-太平洋汽车网" /> <meta name="author" content="xieyongshuang_gz liuxiaoying_gz" /> <link href="//js.3conline.com/pcautonew2/pc/2018/xdj/scrk_v4_b.min.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="//js.3conline.com/js/jquery-1.4.2.min.js"></script> <style> .tabboxleft { float: left; width: 552px; } .tittxts { height: 50px; line-height: 50px; } .tittxts b { color: #cc0000; } .tableboxs { width: 550px; height: 210px; border: 1px #e5e5e5 solid; } .toplines { height: 82px; border-bottom: 1px #e5e5e5 solid; } .toplines div { float: left; border-right: 1px #e5e5e5 solid; height: 42px; margin-top: 20px; } .toplines .div01 { width: 150px; } .toplines .div01 img { display: block; margin: -5px auto 0px; width: 36px; height: 36px; } .toplines .div01 span { height: 18px; line-height: 18px; display: block; text-align: center; } .toplines .div02 { width: 120px; text-align: center; line-height: 42px; } .toplines .div03 { width: 130px; text-align: center; line-height: 42px; } .toplines .div04 { width: 146px; text-align: center; line-height: 42px; border-right: 0 none; } .centxts { width: 518px; height: 52px; line-height: 52px; padding-left: 30px; } .botttxt { height: 75px; background: #f3f3f3; } .botttxt div { float: left; padding-left: 30px; height: 42px; margin-top: 18px; } .botttxt div span { display: block; height: 16px; line-height: 16px; } .botttxt div em { display: block; height: 32px; line-height: 32px; color: #cc0000; font-size: 18px; } .botttxt .div01 { width: 245px; border-right: 1px #e5e5e5 solid; } .botttxt .div01 { width: 245px; } .enteress { display: block; height: 42px; line-height: 52px; color: #777; } .enteress a { color: #259; } .tabboxright { width: 200px; height: 218px; position: relative; float: left; margin: 51px 0px 0px 107px; background: url(//www1.pcauto.com.cn/20160504/price/images/erwimabgs.jpg) no-repeat; } .tabboxright span { position: absolute; right: 0px; top: 30px; width: 82px; height: 130px; background: url(//www1.pcauto.com.cn/20160504/price/images/kefu_rws.png) no-repeat; z-index: 4; } .tabboxright img { position: absolute; width: 88px; height: 88px; padding: 4px; border: 1px #ececec solid; background: #fff; left: 33px; top: 42px; z-index: 3; } .tabboxright em { position: absolute; width: 162px; line-height: 20px; left: 13px; top: 171px; text-align: center; } .tabboxright em i { color: #cc0000; } </style> </head> <body> <script> if (!window._addIvyID) document.write("<scr" + "ipt src='//www.pconline.com.cn/_hux_/auto/price/detail.js'><\/scr" + "ipt>"); </script> <!--栏目计数器--> <span class="spanclass"> <script> document.write("<img style=display:none src=//count.pcauto.com.cn/count.php?channel=8836&screen="+ screen.width+ "*"+ screen.height+ "&__uuid=30443:1&refer="+ encodeURIComponent(document.referrer)+ "&anticache="+ new Date().getTime()+ "&url="+ encodeURIComponent(location.href) + " >"); </script> </span> <div style="height: 28px; border-bottom: 1px solid #e3e3e3; background: #f3f3f3;"> <!--头部--> <script src="//www.pcauto.com.cn/global/navibar/index.html" charset="gbk"></script> </div> <div id="ivy_div" style="display: none;"></div> <div class="wrap"> <div class="main"> <div class="wrap1120"> <div class="logo"> <div class="mark"> <a class="fl" href="//www.pcauto.com.cn/" target="_blank"><img src="//www1.pcauto.com.cn/2013/automall/bm/images/autoLogo.jpg" alt="" /></a> <img class="fl" src="//www1.pcauto.com.cn/2013/automall/bm/images/enquirylogo.jpg" /> </div> <div class="subMark"> <ul> <li class="fir"><i><strong>国内首家</strong></i><i>垂直网站群上市企业</i></li> <li class="sec"><i><strong>全国精选</strong></i><i>万家汽车经销商合作</i></li> <li class="thi"><i><strong>百万认证</strong></i><i>车主口碑信赖</i></li> <li class="last"><i><strong>无需到店</strong></i><i>免费获悉最新优惠</i></li> </ul> </div> </div> </div> <div class="wrap-bg"></div> <div class="wrap1120"> <div class="bmTab bmTab_add"> <a href="https://qdfront.pcauto.com.cn/order/pc/common/order_detail.xsp?mid=128530&t=0" class="white">询问底价</a> <a href="https://qdfront.pcauto.com.cn/order/pc/common/order_detail.xsp?mid=128530&t=2" class="white">预约试驾</a> <a href="https://jr.pcauto.com.cn/autofinance/commorders/order.jsp?mid=128530#ad=8303" class="cur">分期购车</a> <a href="https://qdfront.pcauto.com.cn/order/pc/common/order_detail.xsp?mid=128530&t=4" class="white">置换购车</a> <a href="//mall.pcauto.com.cn/import/data.html?mid=128530#ad=11343" class="white">定制进口车</a> </div> <input type="hidden" id="source" value="" /> <input type="hidden" id="regionId" /> <input type="hidden" id="cityCode" /> <div class="bmBox clearfix" id="pageContent"> <div class="form formchbyew"> <div class="form-left fl"> <!--form-box-1--> <div class="form-box form-box-1" id="formBox1"> <!-- 20181115 增加 form-sg --> <div class="form-sg clearfix form-sgn" id="form-sg"> <dl> <dt><img src="//www1.pcauto.com.cn/zt/gz20181116/automallbm/img/mrt.jpg" id="form-sg-pic" height="90" alt=""></dt> <dd> <div class="form-sg-name clearfix"> <span id="form-sg-name"></span> <div class="form-sg-model"> <a href="javascript:" class="form-sg-da" id="form_sg_da" data-tips="请选择意向品牌车系" data-tips1="切换车型"><em></em></a> </div> </div> <div class="form-sg-md" id="form-sg-md"></div> <div class="form-sg-tag" id="form-sg-tag"> <!-- <i class="tag">abc</i> <i class="tag">abc</i> <i class="tag">abc</i> --> </div> <div class="form-sg-lp" id="form-sg-lp"> <!-- <span>商家底价</span> <i>12</i> <em>.</em> <i>?</i> <i>?</i> <span>万元起</span> --> </div> </dd> </dl> <div class="formoption cartips clearfix"> <em id="carTips" class="err" style="display: none"></em><span id="carErrTips" class="red fl" style="display: none">请选择车型</span> </div> </div> <div class="tipsAllWide" id="lowestDiscountPriceDiv" style="display:none;"> <p>填写以下信息,根据个人不同条件,匹配 0利率/超低利率/免手续费 等更省钱分期方案。</p> </div> <!--意向车型--> <ul class="formoption" style="display: none"> <li class="tit"><em class="red">* </em>意向车型:</li> <li class="options"> <input id="manufacturerId" name="manufacturerId" type="hidden" /> <input id="serialGroupId" name="serialGroupId" type="hidden" /> <input id="modelId" name="modelId" type="hidden" /> </li> </ul> <!--我的城市--> <ul class="formoption zIndexFix"> <li class="tit"><em class="red">* </em>购车城市:</li> <li> <a id="changeCityBtn" class="cBtn ipTxt" href="javascript:void(0)"><span>切换城市</span><em class="icon-drop"></em></a> <div class="layCityBox hide" id="changeCityBox"></div> </li> </ul> <!--意向购车时间--> <ul class="formoption" style="display: none"> <li class="tit">意向购车时间:</li> <li class="options"> <div class="selWrap"> <select id="time" name="time" class="newselt"> <option value="0">请选择意向购车时间</option> <option value="7" value="7">一周之内</option> <option value="30" value="30" selected="selected">一个月之内</option> <option value="90" value="90">三个月之内</option> <option value="180" value="180">六个月之内</option> <option value="200" value="200">六个月以上</option> </select> </div> </li> </ul> <!--姓名--> <ul id="name_ul" class="formoption mb15"> <li class="tit"><em class="red">* </em>姓名:</li> <!-- 20181115 改文字 --> <li class="options"> <input type="text" name="username" id="username" value="请输入姓名" class="ipTxt ipTxt400" onclick="if(this.value=='请输入姓名'){this.value='';this.className='ipTxt ipTxt400 on'}" onblur="if(this.value==''){this.value='请输入姓名';this.className='ipTxt ipTxt400'}"/ > <em id="nameTips" class="err" style="display: none"></em> <span id="nameErrTips" class="red fl" style="display: none">请输入您的姓名</span> </li> </ul> <!--手机号码--> <ul id="phone_ul" class="formoption mb15"> <!-- 20181115 改文字 --> <li class="tit"><em class="red">* </em>手机号码:</li> <li class="options"><input type="text" name="phone" id="phone" value="请输入手机号码" maxlength="11" class="ipTxt ipTxt400" onclick="if(this.value=='请输入手机号码'){this.value='';this.className='ipTxt ipTxt400 on'}" onblur="if(this.value==''){this.value='请输入手机号码';this.className='ipTxt ipTxt400'}"/ > <em id="phoneTips" class="err" style="display: none"></em> <span id="phoneErrTips" class="red fl" style="display: none"></span> </li> </ul> <style type="text/css"> .verBut { border: 1px solid #ff9900; border-radius: 5px; height: 48px; width: 260px; padding: 0 15px; line-height: 46px; font-size: 14px; float: left; margin-left: 20px; color: #ff9900; background: #fff; } .verBut.disable { color: #777; background: #f8f8f8; border: 1px solid #f8f8f8; } </style> <!--手机验证码--> <ul id="phone_VerCode" class="formoption mb15" style="display: none;"> <li class="tit"><em class="red">* </em>验证码:</li> <li class="options"> <input type="text" name="yzmCode" id="yzmCode" value="请输入短信验证码" maxlength="6" class="ipTxt" onclick="if(this.value=='请输入短信验证码'){this.value='';this.className='ipTxt on'}" onblur="if(this.value==''){this.value='请输入短信验证码';this.className='ipTxt'}" style="width: 120px;" /> <input id="verificationBut" class="verBut" type="button" onclick="sendVerificationCode()" value="获取验证码"> <em id="verCodeTips" class="err" style="display: none"></em><span id="verCodeErrTips" class="red fl" style="display: none"></span> <em id="yzmTips" class="err" style="display: none"></em> <span id="yzmErrTips" class="red fl" style="display: none"></span> </li> </ul> <div id="ajaxMsg"> <span id="ajaxResult"></span> </div> <div class="btnarea"> <a href="javascript:void(0);" id="subtn1" class="btn">立即查看省钱方案</a> <a href="javascript:void(0);" id="subtn1-disabled" class="btn btn-disabled">立即查看省钱方案</a> </div> <!--声明--> <div class="statement"> <label><input id="chkSM" class="checkbox" type="checkbox" name="isAgree" value="">已阅读并同意</label> <a href="//www1.pcauto.com.cn/zt/gz20171127/declare/pc.html" target="_blank">《个人信息披露及保护声明》</a> </div> </div> </div> </div> </div> <div class="wrap1120"> <!-- 车友询价动态 --> <div class="main"> <div class="enquiry"> <div class="th"><span class="mark"><strong id="nameList_curCity"></strong><strong>&nbsp;车友报名动态</strong></span><span class="submark"></span></div> <div class="tb" id="slide"> </div> </div> </div> </div> </div> <!--页面脚本区S--> <!--所有页面用到的js脚本都必须放到此位置,包括外链js和内嵌js--> <script src="//js.3conline.com/min/temp/v1/dpl-faker,dpl-related_select.js"></script> <script src="//js.3conline.com/min/temp/v1/dpl-dialog_v1.js"></script> <script src="//js.3conline.com/min2/temp/v2/plugin-locate,plugin-locate_auto.js" charset="utf-8"></script> <script src="//www.pcauto.com.cn/global/1603/intf8771.js" charset="gbk"></script> <script src="//js.3conline.com/pcauto/common/city/pcCityPop.js" charset="gbk"></script> <script src="//js.3conline.com/js/ztlib/cxpop.js" charset="utf-8"></script> <script src="//js.3conline.com/min/temp/v1/dpl-jquery.slide.js"></script> <script type="text/javascript" src="//js.3conline.com/pcautonew2/pc/2019/dealer/base.js"></script> <script> // =============zhenglichun-start================ var sendFlag = 0; $(function(){ // 请求判断是否使用短信验证和同意声明https://qa-front.pcauto.com.cn/interface/order/getOrderVerifyCtrl.xsp?positionId=2 $.ajax({ type: 'GET', url: "https://qdfront.pcauto.com.cn/interface/order/getOrderVerifyCtrl.xsp?positionId=25", dataType: "json", success: function (res) { console.log("res----------",res) if(res && res.status == 200){ if(res.needVerify == 1){ // 需要验证码 $("#phone_VerCode").show(); sendFlag = 1; } if(res.checkBoxNeedVerify == 1){ // 需要同意勾选 $("#chkSM").attr("checked", "checked"); $('#subtn1').show(); $('#subtn1-disabled').hide(); } }else{ console.log("获取控制状态失败"); } } }); }) // =============zhenglichun-start================ var sgId = '30443'; var mId = '128530'; var commSg = { /** * 页面用到的接口集合 */ action: { serial_group_infos: 'https://price.pcauto.com.cn/price/api/v1/serialgroup/serial_group_infos', // 获取车系信息 impressions: 'https://price.pcauto.com.cn/comment/interface/auto/serial/get_comment_impressions_sg_json.jsp', // 获取印象 getLowestModelPrice4All: 'https://qdfront.pcauto.com.cn/qd/price/intf/range/sgModelPrice', getNameListInfo: 'https://jr.pcauto.com.cn/autofinance/commorders/getNameListInfo.jsp', getDianJinAd: '//jzz.pcauto.com.cn/golden/recommend.do' }, /** * 车型数据 */ modelData: { mId: '', mName: '', bId: '', bName: '', sgId: '', sgName: '', modelId: '', modelName: '' }, /** * 旧车系数据,置换用到 */ sgData: { bId: '', bName: '', sgId: '', sgName: '' }, /** * 获取车型数据 */ getModle: function (sgbox, fn) { var t = this; // 获取车系 $.ajax({ type: "get", url: t.action.serial_group_infos, data: { sgid:sgId, ptl:1 }, dataType: "jsonp", jsonp: "callback", jsonpCallback:'seriaData', cache: true, timeout: 0, // timeout默认是0, 当类型是jsonp时,必须要设置timeout大于0才能执行ajax的error回调 success: function(data){ if (data.sgId) { $('#form-sg-pic').attr('src', data.baiPicSrc_180x135 || data.sgPhotoSrc); $('#form-sg-name').html(data.sgName); t.modelData.sgId = data.sgId; t.modelData.sgName = data.sgName; t.modelData.bId = data.bId; t.modelData.bName = data.bName; t.modelData.mId = data.manuId; t.modelData.mName = data.manuName; sgbox && sgbox.show(); fn && fn(); } }, error: function(status){ } }); }, getAther: function () { var t = this; // 印象和本地价 // 获取印象 $.ajax({ type: "get", url: t.action.impressions, data: { sgid:sgId, type: 1, ydNum: 3 }, dataType: "jsonp", jsonp: "callback", jsonpCallback:'impressions', cache: true, timeout: 0, // timeout默认是0, 当类型是jsonp时,必须要设置timeout大于0才能执行ajax的error回调 success: function(data){ if (data && data.advantage && data.advantage.length > 0) { var cla = ['bgc-blud', 'bgc-green', 'bgc-lightblue']; var ij = 0; var htm = ''; var ijd = data.advantage; for (ij = 0; ij < ijd.length; ij++) { htm += '<i class="tag '+cla[ij%3]+'">'+ ijd[ij].impressionContent +'</i>'; } $('#form-sg-tag').html(htm); } }, error: function(status){ } }); // 获取本地价格 $.ajax({ type: "get", url: t.action.getLowestModelPrice4All, data: { serialGroupId: sgId }, success: function(data){ var modelIdNum = t.modelData.modelId; if (data.code==0 && data.data.models[modelIdNum]) { var minPrice = data.data.models[modelIdNum].minPrice + ''; var html = '<span>商家底价</span>'; html += '<i>'+minPrice.split('.')[0]+'</i>'; if (minPrice.split('.')[1]) { html += '<em>.</em>'; var ii = 0; var dd = minPrice.split('.')[1]; for (ii = 0; ii < dd.length; ii++) { html += '<i>?</i>'; } } html += '<span>万元起</span>'; $('#form-sg-lp').html(html); } }, error: function(status){ } }); $('#lowestDiscountPriceDiv').show(); }, setVal: function () { $('#manufacturerId').val(this.modelData.bId); $('#serialGroupId').val(this.modelData.sId); $('#modelId').val(this.modelData.modelId); }, status: function () { var t = this; var sgbox = $('#form-sg'); var sgctr = $('#form_sg_da'); var mdstr = $('#form-sg-md'); var hasHide = false; var hasDone = false; var json = { id: 'form_sg_da', sales: false, price: true, modelShowType: 2, mrBack: function(data, dat){ if(data && data.chexing.id && data.chexing.title){ t.modelData.modelId = data.chexing.id; t.modelData.modelName = data.chexing.title; mdstr.html(data.chexing.title+'('+data.chexing.price+')'); }else if (dat && dat.dataC && dat.dataC.cars && dat.dataC.cars.length > 0) { t.modelData.modelId = dat.dataC.cars[1].id; t.modelData.modelName = dat.dataC.cars[1].text; mdstr.html(dat.dataC.cars[1].text+'('+dat.dataC.cars[1].price+')'); } t.setVal(); t.getAther(); t.getDianJinAd(); }, openBack: function () { sgctr.addClass('form-sg-dahover'); }, closeBack: function () { sgctr.removeClass('form-sg-dahover'); if (hasHide) { hasHide = false; $("#carTips").hide(); $("#carErrTips").hide(); } } } if (sgId) { this.getModle(sgbox, function () { sgbox.removeClass('form-sgn'); sgctr.html(sgctr.attr('data-tips1')+'<em></em>'); t.setVal(); }); json.defaults = ['',(sgId||''),mId];//分别是品牌id,车系id,车型id json.defaults_brand = false;//不显示品牌 json.defaults_chexi = false;//不显示车系 json.step3 = function (data) { t.modelData.modelId = data.chexing.id; t.modelData.modelName = data.chexing.title; mdstr.html(data.chexing.title + ' ('+data.chexing.price+')'); if (!hasHide) { hasHide = true; $("#carTips").hide(); $("#carErrTips").hide(); } t.setVal(); t.getAther(); t.getDianJinAd(); checkModel(); } } else { sgctr.html(sgctr.attr('data-tips')+'<em></em>'); sgbox.show(); json.step3 = function (data) { t.modelData.modelId = data.chexing.id; t.modelData.modelName = data.chexing.title; // sgctr.html(sgctr.attr('data-tips1')+'<em></em>'); sgId = data.chexi.id; mdstr.html(data.chexing.title + ' ('+data.chexing.price+')'); t.getModle(null, function () { sgbox.removeClass('form-sgn'); t.setVal(); }); if (!hasHide) { hasHide = true; $("#carTips").hide(); $("#carErrTips").hide(); }; if (!hasDone) { hasDone = true; sgctr.html(sgctr.attr('data-tips1')+'<em></em>'); } t.getAther(); t.getDianJinAd(); } } var p33 = new cxpop(json); // 置换旧车系 if (document.getElementById('selectOldSg')) { var sosBtn = $('#selectOldSg'); var json = { id: 'selectOldSg', sales: false, price: true, step: 2, openBack: function () { sosBtn.addClass('form-sg-dahover'); }, closeBack: function () { sosBtn.removeClass('form-sg-dahover'); }, step2: function (data) { t.sgData = { bId: data.brand.id, bName: data.brand.title, sgId: data.chexi.id, sgName: data.chexi.title } $('#original_brandId').val(data.brand.id); $('#original_serialGroupId').val(data.chexi.id); $('#original_carErrTips').hide(); $('#original_carTips').hide(); $('span', sosBtn).html(data.chexi.title).addClass('blackTxt'); } } var p34 = new cxpop(json); } }, slideMarquee: function () { new Slide.marquee({ target : $('#slide ul'), control : false, effect : 'slide', merge : true, stay : 5000, direction : 'y', autoPlay : true }); }, getNameList: function () { var t = this; //获取车友动态 $.ajax({ type: "get", url: t.action.getNameListInfo, dataType: "jsonp", jsonp: "callback", jsonpCallback:'callback', success: function(data){ var result = []; if (data && data.data && data.data.length > 0) { var cla = ['odd', 'even']; var htm = ''; var d = data.data; var name = ""; var phone = ""; var cTime = ""; var chunk = 12; for (var i = 0, j = d.length; i < j; i += chunk) { result.push(d.slice(i, i + chunk)); } for (var k = 0; k < result.length; k ++) { var zu = result[k]; for(var i = 0;i < zu.length;i ++){ var ming = ""; var len = 0; name = zu[i].name; phone = zu[i].phone; cTime = zu[i].cTime; len = name.length - 1; for(var ii=0;ii<len;ii++){ ming+='*'; } name = name.substring(0,1) + ming; if(i == 0){ htm += '<ul class="bmul clearfix">'; } htm += '<li class="'+cla[i%2]+'"><i class="tit"><em>' + name + '</em>' + phone + '</i><i class="time">' + cTime + '</i></li>'; if(i == zu.length-1){ htm += '</ul>'; } } } $('#slide').html(htm); t.slideMarquee(); } }, error: function(status){ } }); }, setDianJinHtml: function(url, pic){ if(!pic) return; var adHtml = '<div class="ad-jd" style="position:absolute; left: 729px; top: 49px; z-index10;">'; if(url && pic){ adHtml += '<a href="{{url}}" target="_blank"><img width="342" height="373" src="{{pic}}" alt=""></a>'.replace('{{url}}', url).replace('{{pic}}', pic); }else if(pic){ adHtml += '<img width="342" height="373" src="{{pic}}" alt="">'.replace('{{pic}}', pic); } adHtml += '</div>'; $('.bmBox').append(adHtml); }, getDianJinAd: function () { var t = this; var cityCode = $("#cityCode").val(); if(t.modelData.sgId || sgId){ $.ajax({ type: "get", url: t.action.getDianJinAd, data: { positionIds: "pcauto_consultation_picture", userArea: cityCode, serialId: t.modelData.sgId ? t.modelData.sgId : sgId }, dataType: "jsonp", jsonp: "callback", cache: false, timeout: 5000, success: function(json) { if(json && json.pcauto_consultation_picture && json.pcauto_consultation_picture.length > 0){ t.setDianJinHtml(json.pcauto_consultation_picture[0].consultationUrl, json.pcauto_consultation_picture[0].disseminatePic); // 模拟ajax获取到内容 //t.setDianJinHtml('', '//zzb.pcauto.com.cn/tools/img/?342x373'); }else{ console.log("点金没广告"); } }, error: function(status) { console.log("点金接口网络出错"); } }); } }, init: function () { this.status(); // 根据车系id进行判断 this.getNameList();//获取车友询价动态 } }; commSg.init(); </script> <script> function stateDo() { if($("#chkSM").attr('checked') == true){ $('#subtn1').show(); $('#subtn1-disabled').hide(); }else{ $('#subtn1').hide(); $('#subtn1-disabled').show(); } } stateDo(); $("#chkSM").bind('click', function() { stateDo(); }); </script> <script> var isSubmit = false; /*==============城市弹框和IP识别相关===========S*/ function droplistCallback(e) {//切换城市 var e = window.event || e, target = e.srcElement || e.target, isAnchor = target .getAttribute("data") == "anchor" ? true : false; isSearchCity = target.getAttribute("data") == "search" ? true : false; if (target.tagName.toLowerCase() === "a" || target.parentNode.tagName.toLowerCase() === "a") { if (!isAnchor) { var city; var code = target.getAttribute("data-code"); var cityId = target.getAttribute("data-mid"); if (!isSearchCity) { city = target.innerHTML; } else { city = target.childNodes[0].innerHTML; } curCity = city;//城市名 curCityId = cityId;//城市id curCode = code;//ip库城市id LocateAuto.setByCityId(curCityId, function(data) { //成功请求接口后执行方法 var area = data; if(area.city != ""){ $("#nameList_curCity").html(area.city); $("#changeCityBtn span").html(area.city).addClass('blackTxt'); } var _areaId = area.cityId; $("#regionId").val(_areaId); $("#cityCode").val(area.cityCode).change(); $("#changeCityBtn span").html(area.city).addClass('blackTxt'); }, function(data) { //该方法可选,请求接口异常执行方法,返回的数据记录了错误信息 //var cityId = data.cityId //loadCityData(cityId);//城市相关模块数据 }); e.preventDefault ? (e.preventDefault()) : (e.returnValue = false); } } }; var cityPop1 = new cityPop({ "openBtn": "changeCityBtn", //打开弹框按钮ID "cityBox": "changeCityBox", //弹层ID "searchInp": "sCity1", //搜索框ID "searchResult": "sResult1", //搜索结果层ID "hotsCity": "hotsCity1", //热门城市ID "tipNo": "tipNo1", //无结果提示ID "tipGo": "tipGo1", //直达提示ID "resultList": "resultList1", //搜索结果列表ID "closeBtn": "sClose1", //关闭按钮ID "letArea": "letArea1", //字母列表ID "cityArea": "cityArea1" //城市列表ID }, droplistCallback); function checkPhone() { var pattern = /^1[3-9]\d{9}$/; if ($.trim($("#phone").val()) == "请输入手机号码" || $.trim($("#phone").val()) == "") { $("#phoneErrTips").text("请输入您的手机号码"); $("#phoneTips").show(); $("#phoneErrTips").show(); $("#phone").addClass('error');//add 20160712 return false; } else if ($("#phone").val().length > 11) { $("#phoneErrTips").text("请输入正确的手机号"); $("#phoneTips").show(); $("#phoneErrTips").show(); $("#phone").addClass('error');//add 20160712 return false; } else if (!pattern.test($.trim($("#phone").val()))) { $("#phoneErrTips").text("请输入正确的手机号"); $("#phoneTips").show(); $("#phoneErrTips").show(); $("#phone").addClass('error');//add 20160712 return false; } else { $("#phoneTips").hide(); $("#phoneErrTips").hide(); $("#phone").removeClass('error');//add 20160712 return true; } } function checkModel() { var modelId = $.trim($("#modelId").val()); if (modelId == "" || modelId.indexOf('+') >= 0) { $("#carTips").show(); $("#carErrTips").text("请选择意向车型"); $("#carErrTips").show(); return false; } else { $("#carTips").hide(); $("#carErrTips").hide(); return true; } } function checkCode() { var pattern = /^\d{6}$/; if ($.trim($("#yzmCode").val()) == "请输入短信验证码" || $.trim($("#yzmCode").val()) == "") { $("#yzmErrTips").text("验证码不能为空"); $("#yzmTips").show(); $("#yzmErrTips").show(); $("#yzmCode").addClass('error'); return false; } else if (!pattern.test($.trim($("#yzmCode").val()))) { $("#yzmErrTips").text("请正确输入6位验证码"); $("#yzmTips").show(); $("#yzmErrTips").show(); $("#yzmCode").addClass('error'); return false; } else { $("#yzmTips").hide(); $("#yzmErrTips").hide(); $("#yzmCode").removeClass('error'); return true; } } /*add 20160712 姓名判断 S*/ function checkName(){ var val = $("#username").val() var reg = /^[A-Za-z\u4e00-\u9fa5]{1,20}$/; if(!reg.test(val)||val=="请输入姓名"){ $("#nameTips").show(); $("#nameErrTips").show(); $("#username").addClass('error'); return false; }else{ $("#nameTips").hide(); $("#nameErrTips").hide(); $("#username").removeClass('error'); return true; } } $("#username").blur(function(){ checkName(); }) /*add 20160712 E*/ $("#phone").blur(function() { checkPhone(); }); $("#yzmCode").blur(function() { checkCode(); }); $(function() { //根据IP定位网友的城市 LocateAuto.init({ device: 'pc', cityCode: '', callback:function(data){ var area = data; var _areaId = area.cityId; $("#regionId").val(_areaId); $("#cityCode").val(area.cityCode); $("#changeCityBtn span").html(area.city).addClass('blackTxt'); $("#nameList_curCity").html(data.city); } }); /*edit 20200226 S*/ $("#cityCode").change(function(){ var cityCode = $("#cityCode").val(); if(cityCode) commSg.getDianJinAd(); }); /*edit 20200226 E*/ //查看省钱方案 $("#subtn1").click(function(){ if (!commSg.modelData.sgId) { $("#carTips").show(); $("#carErrTips").show(); return; } if (!checkName()) { return; } if (!checkPhone()) { return; } if(sendFlag == 1) { if(!checkCode()){ return; } } if (!isSubmit) { isSubmit = true;// 防止重复提交 $("#subtn1").attr("disabled", true); var name = $("#username").val(); var reg = /[\u4e00-\u9fa5]/; var regEn = /[A-Za-z]/; if (reg.test(name)||!regEn.test(name)){ name = encodeURIComponent(name); } //一级订单 if (sendFlag == 1) { $.getJSON("https://jr.pcauto.com.cn/autofinance/commorders/sendCode.jsp?method=verifyCode&phone="+$('#phone').val()+"&checkCode="+$('#yzmCode').val(), function(data){ if(!data){ showError("服务繁忙,请重试!"); } if(data.code==0){ submitData(name, $("#phone").val(), sendFlag); }else{ //验证失败 $("#yzmErrTips").text(data.msg); $("#yzmTips").show(); $("#yzmErrTips").show(); $("#yzmCode").addClass('error'); } $("#subtn1").attr("disabled", false); isSubmit = false; }); } else { submitData(name, $("#phone").val(), sendFlag); } } }) }) function submitData(name, phone, sendFlag) { $.ajax({ type: "POST", url: "https://jr.pcauto.com.cn/autofinance/commorders/action/doOrderAction.jsp", data: { regionId: $("#regionId").val(), modelId: $("#modelId").val(), phone: phone, buyTime: $("#time").val(), name: name, sendFlag: sendFlag, source: $("#source").val(), level: 1 }, dataType: "json", success: function(data) { if(data.code == 1){ setCount(); //提交成功,跳转nextPage nextPage(data); } else { showError(data.msg); } isSubmit = false;// 防止重复提交 $("#subtn1").attr("disabled", false); }, error: function(){ isSubmit = false; } }); } //清除ajax结果,并hide function clearAjaxResult() { $("#ajaxResult").html(''); $("#ajaxResult").removeClass('red').removeClass('blue'); $("#ajaxMsg").hide(); } //错误提示 function showError(data) { if (data) { $("#ajaxResult").html(data); } $("#ajaxResult").removeClass('red').removeClass('blue').addClass('red'); $("#ajaxMsg").show(); } //按钮点击统计事件 function setCount() { var ad = getHashString('ad'); if (ad == null) { ad = getQueryString('ad'); } var channel = 0; if (ad == 12560) { channel = 1177; } else if (ad == 8353) { channel = 1178; } else if (ad == 8355) { channel = 1179; } if (channel > 0) { var img = new Image; img.src = "//count.pcauto.com.cn/count.php?channel="+channel+"&screen=" + screen.width + "*" + screen.height + "&refer=" + encodeURIComponent(document.referrer) + "&anticache=" + new Date().getTime() + "&url=" + encodeURIComponent(location.href) + "&from=event"; } } function getHashString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i"); var h = window.location.hash.substr(1).match(reg); if (h != null) { return h[2]; } else { return null; } } function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i"); var r = window.location.search.substr(1).match(reg); if (r!=null) { return (r[2]); } else { return null; } } function nextPage(data) { //提交成功,跳转nextPage var ad = getHashString('ad'); if (ad == null) { ad = getQueryString('ad'); } var uId = data.userId; var url = ""; if(!uId){ showError("服务器开小差了,请重新提交!"); isSubmit = false;// 防止重复提交 $("#subtn1").attr("disabled", false); return; } if(data.sendFlag == 0){ url = 'https://jr.pcauto.com.cn/autofinance/commorders/perfectOrder.jsp'; } else { url = 'https://jr.pcauto.com.cn/autofinance/commorders/sendCode.jsp'; } window.location.href = url += "?uId=" + uId + (ad == '' || ad == null || ad == undefined ? '' : '#ad=' + ad); } </script> <script> /*************************[验证码时间倒计时]********************/ function sendVerificationCode() { if (!checkPhone()) { return }; $("#yzmTips").hide(); $("#yzmErrTips").hide(); $("#yzmCode").removeClass('error'); $.ajax({ windowname: 1, type: "POST", url: "https://jr.pcauto.com.cn/autofinance/commorders/sendCode.jsp?method=sendCode", data: { phone: $("#phone").val() }, dataType: "JSON", withCookie: true, crossDomain: true, xhrFields: { withCredentials: true }, success: function(data) { var data = JSON.parse(data); if (data.code == 0) { console.log("send ok"); timeFlag = true; var osendCaptcha = document.getElementById("verificationBut"), SEND_TXT = osendCaptcha.value; osendCaptcha.setAttribute("disabled", true); setCountDown(0, 60, function(sec) { osendCaptcha.className = "verBut disable"; osendCaptcha.value = sec + '秒后再次获取'; }, function() { osendCaptcha.value = SEND_TXT; osendCaptcha.removeAttribute('disabled'); osendCaptcha.className = "verBut"; }); }else{ $("#yzmErrTips").text(data.msg); $("#yzmTips").show(); $("#yzmErrTips").show(); $("#yzmCode").addClass('error'); } }, error: function() { alert("网络超时"); } }); } var timeFlag = true; var to = null; /** * 显示倒计时 * @param {number} start 开始时间,0 表示当前时间开始 * @param {number} sec 倒计时多少秒 * @param {function} funIng 倒计时进行中的操作 * @param {function} funEnd 倒计时结束后的操作 */ function setCountDown(start, sec, funIng, funEnd) { if ('number' != typeof start || 0 > start || 'number' != typeof sec || 0 >= sec) return; if (0 == start) { start = (new Date()).getTime(); LEFT_SEC = 60; } else { DIST_SEC = ((new Date()).getTime() - start) / 1000, LEFT_SEC = parseInt(sec - DIST_SEC) || 0; } if (LEFT_SEC <= 0) { LEFT_SEC = 0; timeFlag = false; if ('function' == typeof funEnd) funEnd(); } else { if ('function' == typeof funIng) funIng(LEFT_SEC); if (timeFlag) { clearTimeout(to); to = setTimeout(function() { setCountDown(start, sec, funIng, funEnd); }, 1000); } } }; </script> <!--页面脚本区E--> </div> <!-- 询价调查问卷 begin --> <style> .floatcdDiv{position: fixed;left:50%;top:50%;margin-left:570px; _position: absolute;_top:expression(eval(document.documentElement.scrollTop));_margin-top:80px;} .floatcdDiv a{display:block;background:url(//www1.pcauto.com.cn/zt/gz20150724/icon20150724.png) no-repeat;width:80px;height:80px;} .floatcdDiv a:hover{background-position: 0 -84px;} </style> <div class="floatcdDiv"> <a href="//www.wenjuan.com/s/biY3MzM/" target="_blank"></a> </div> <!-- 询价调查问卷 end --> <script class=" defer" src="//www.pcauto.com.cn/global/s_footer/index.html" charset="gbk"></script> <script> _submitIvyID(); </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10