CINXE.COM

置换购车

<!DOCTYPE html> <html> <head> <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" /> <meta content="always" name="referrer"> <script type="text/javascript" src="//js.3conline.com/js/jquery-1.4.2.min.js" charset="GBK"></script> <!-- 20190401 更新新样式表 --> <link href="//js.3conline.com/pcautonew2/pc/2018/xdj/scrk_v3_c.min.css" rel="stylesheet" type="text/css" /> <style> .dealer-online { display: inline-block; width: 70px; height: 20px; line-height: 20px; border: 1px solid #CB1B00; border-radius: 2px; font-size: 12px !important; text-align: center; } .store li { border-bottom: 0; } .store dl.dLeft, .store dl { width: 395px; margin-left: 10px; display: inline; } .store dd { width: 372px; _width: 368px; } .sBtns .red { font-weight: bold; } .sBtns span { float: left; height: 36px; line-height: 36px; } .sBtns .sBtnsDown { float: left; height: 36px; line-height: 36px; width: 9px; background: url(//www1.pcauto.com.cn/2013/automall/bm/images/20140620/jt20140620_1.png) 0 15px no-repeat; vertical-align: middle; } .sBtns .sBtnsUp { float: left; height: 36px; line-height: 36px; width: 9px; background: url(//www1.pcauto.com.cn/2013/automall/bm/images/20140620/jt20140620_2.png) 0 15px no-repeat; vertical-align: middle; } .sBtns span, .sBtns em { _position: relative; top: -10px; } .subTipTxt { color: #999999; padding-bottom: 15px; } .bmBox .tipTxt { padding-bottom: 0; } .infoRight { float: left; } .infoRight em { font-size: 14px; padding-left: 14px; } .infoRight em i { color: #cc0000; font-weight: bold; } .form .btnarea span { margin-top: 0; float: none; display: block; } </style> <style> .contscro { position: absolute; width: 357px; height: 304px; background: url(//www1.pcauto.com.cn/20160905/ative/images/xjsc_bg.jpg) no-repeat; right: -2px; bottom: -48px; } .contscro .culbx { position: absolute; overflow: hidden; width: 282px; height: 140px; left: 39px; top: 145px; } .contscro ul { width: 282px; height: 140px; } .contscro li { height: 20px; line-height: 20px; padding-bottom: 8px; font-size: 14px; color: #502900; *float: left; *width: 100%; } .contscro li i, .contscro li span, .contscro li em { float: left; line-height: 20px; } .contscro li span { margin: 0 8px; } .mainaddni .addboxtag .adultag { width: 500px; } .potost { position: absolute; width: 130px; height: 106px; background: url(//www1.pcauto.com.cn/20160905/ative/images/pontost.png) no-repeat; left: 443px; bottom: 6px; } .covers { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; filter: progid:DXImageTransform.Microsoft.gradient(enabled='true', startColorstr='#7F000000', endColorstr='#7F000000'); background: rgba(0, 0, 0, 0.5); z-index: 301; display: none; } .popsuec { position: fixed; left: 50%; top: 50%; width: 338px; padding-right: 20px; height: 393px; margin: -185px 0px 0px -169px; z-index: 302; background: url(//www1.pcauto.com.cn/20160905/ative/images/popsuec_bg.png) no-repeat; display: none; } .popsuec span { display: block; text-align: center; font-size: 14px; line-height: 24px; padding: 24px 0px 13px 0px; margin-top: 90px; } .popsuec span i { color: #f00; } .popsuec img { display: block; width: 150px; height: 150px; margin: 0 auto; } .popsuec em { position: absolute; width: 40px; height: 40px; cursor: pointer; right: 0px; top: 0px; } .posirts { position: relative; width: 937px; } .store li { *width: 900px; } </style> <script src="//www.pcauto.com.cn/3g/wap2013/intf/1305/intf1727.js" type="text/javascript" charset="utf-8" class=" defer"></script> <script type="text/javascript"> deviceJump.init({ 'wap_3g': 'https://qdfront.pcauto.com.cn/order/wap/ask.xsp?sgid=27631' }); </script> </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=7218&screen=" + screen.width + "*" + screen.height + "&__uuid=27631: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:#a89d9d;"> <!--头部--> <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 mainaddni"> <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"></img> </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="javascript:" onclick='location.replace("order_detail.xsp?t=0&amp;sgid=27631")' class=&#34;white&#34;>询问底价</a> <a href="javascript:" onclick='location.replace("order_detail.xsp?t=2&amp;sgid=27631")' class=&#34;white&#34;>预约试驾</a> <a href="javascript:" onclick='location.replace("//jr.pcauto.com.cn/autofinance/commorders/order.jsp?sgid=27631#ad=8303")'>分期购车</a> <a href="javascript:" class="cur">置换购车</a> <a href="//mall.pcauto.com.cn/import/data.html?sgid=27631#ad=11343">定制进口车</a> </div> <!-- 订单详情 --> <div class="bmBox clearfix bmBoxchange"> <form id="mainForm" action="" method="post"> <div id="ajaxMsg"><span id="ajaxResult"></span></div> <input type="hidden" name="dealerId" id="dealerId" value="" /> <input type="hidden" name="domainName" value="DealerReplace" /> <input type="hidden" id="referer" name="referer" value="" /> <input type="hidden" id="refererType" name="refererType" value="1" /> <input type="hidden" name="origin" value="1" /> <input type="hidden" id="isAllot" name="isAllot" value="0" /> <input type="hidden" id="regionId" name="regionId" value="0" /> <input type="hidden" id="provinceId" name="provinceId" value="0" /> <input type="hidden" id="areaId" name="areaId" value="0" /> <input type="hidden" id="buyDate" name="buyDate" value="" /> <input type="hidden" id="orderPortal" name="orderPortal" value="" /> <input type="hidden" id="entryid" name="entryid" value="0" /> <input type="hidden" name="needGuard" value="1" /> <input type="hidden" id="verifyStatus" name="verifyStatus" value="0"/> <input type="hidden" name="entryPortal" value="16" /> <input type="hidden" id="salesUsedcar" name="salesUsedcar" value="0" /> <!-- 是否选择了贷款购车 1:是,0:否 --> <input type="hidden" id="loanCarFlag" name="loanCarFlag" value="" /> <div class="form formchangewy xdjfromver"> <div class="xdjfromver-main"> <div class="xdjfromver-box"> <!-- 20190401 微信在线咨询 S --> <!-- 微信在线咨询 E --> <!-- 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:buttonAd(3209);" 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"> </div> <div class="form-sg-lp" id="form-sg-lp"> </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> <!-- 20181115 增加 form-sg --> <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"> <input type="hidden" id="original_brandId" name="original_brandId" /> <input type="hidden" id="original_serialGroupId" name="original_serialGroupId" /> <li class="tit"><em class="red">* </em>现有车系:</li> <li> <a id="selectOldSg" class="cBtn ipTxt" href="javascript:void(0)"> <span>选择车系</span> <em class="icon-drop"></em> </a> <em id="original_carTips" class="err" style="display: none"></em><span id="original_carErrTips" class="red fl" style="display: none">请选择车系</span> </li> </ul> <ul class="formoption zIndexFix"> <li class="tit"><em class="red">* </em>购车城市:</li> <li> <a id="changeCityBtn" class="cBtn ipTxt" href="javascript:buttonAd(3211);"><span>切换城市</span><em class="icon-drop"></em></a> <div class="layCityBox hide" id="changeCityBox"></div> </li> </ul> <ul class="formoption"> <li class="tit"><em class="red">* </em>姓<span class="t1"></span>名:</li> <li class="options"> <input type="text" name="name" id="name" maxlength="" value="请输入称呼(如李先生)" class="ipTxt" onclick="buttonAd(3213);if(this.value=='请输入称呼(如李先生)'){this.value='';this.className='ipTxt on'}" onblur="if(this.value==''){this.value='请输入称呼(如李先生)';this.className='ipTxt'}" /> <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"> <li class="tit"><em class="red">* </em>手机号码:</li> <li class="options"> <input type="text" name="phone" id="phone" value="请输入手机号码" maxlength="" class="ipTxt" onclick="buttonAd(3215);if(this.value=='请输入手机号码'){this.value='';this.className='ipTxt on'}" onblur="if(this.value==''){this.value='请输入手机号码';this.className='ipTxt'}" /> <em id="phoneTips" class="err" style="display: none"></em><span id="phoneErrTips" class="red fl" style="display: none"></span> </li> </ul> <!-- 20200609增加短信验证码 s --> <style type="text/css"> .verBut { border: 1px solid #ff9900; border-radius: 5px; height: 48px; width: 227px; 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> <!-- =============zhenglichun-start================ --> <ul id="vfCodeBox" style="display: none;" class="formoption mb15"> <li class="tit"><em class="red">* </em>验<i class="t2"></i>证<i class="t2"></i>码:</li> <li class="options"> <input type="text" name="verCode" id="verCode" value="请输入短信验证码" maxlength="" class="ipTxt" onclick="buttonAd(3219);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="buttonAd(3217);sendVerificationCode()" value="获取验证码"> <em id="verCodeTips" class="err" style="display: none"></em><span id="verCodeErrTips" class="red fl" style="display: none"></span> </li> </ul> <!-- =============zhenglichun-end================ --> <!-- 20200609增加短信验证码 e --> <ul id="pmTr" class="formoption" style="display:none"> <li class="tit"><em class="red">* </em>购车方式:</li> <li class="options"> <label> <input name="payType" type="radio" value="0" checked="checked" class="radio" onclick="buyCarType(1);" id="payType1" /><span class="fl">全款购车</span> </label> <label> <input name="payType" type="radio" value="1" class="radio" style="margin-left: 20px;" onclick="buyCarType(2);" id="payType2" /><span class="fl">贷款购车</span> </label> </li> </ul> <div class="addboxtag clearfix" id="buyCarDate" style="display:none"> <em><i>* </i>购车时间:</em> <ul class="adultag"> <li id="buyCarDate1"><a href="javascript:void(0)">3个月以内<i></i></a></li> <li id="buyCarDate2"><a href="javascript:void(0)">3个月以上<i></i></a></li> <li class="defultli" id="defultli1"><b></b><span class="red fl">请选择一项</span></li> </ul> </div> <!-- =============zhenglichun-start================ --> <style> .formoptionchanges { margin-bottom: 5px; margin-top: -10px; } .addboxtag { margin-bottom: 5px; } .addboxtag em { float: left; width: 87px; white-space: nowrap; padding-right: 6px; height: 40px; line-height: 40px; color: #777; font-size: 15px; } .addboxtag em i { color: #c00; display: none; } .addboxtag .adultag { float: left; width: 650px; overflow: hidden; *padding-bottom: 10px; } .addboxtag .adultag li { float: left; height: 20px; line-height: 20px; margin: 1px 10px 10px 0; float: left; width: 120px; height: 38px; border: 1px solid #ddd; border-radius: 5px; overflow: hidden; } .addboxtag .adultag li a { width: 120px; height: 38px; line-height: 38px; position: relative; overflow: hidden; background: #fff; display: block; text-align: center; color: #333; cursor: pointer; text-decoration: none; } .addboxtag .adultag li a i { background: url(//www1.pcauto.com.cn/price/gz20151009/xunjia/images/icons.png) no-repeat; width: 11px; height: 11px; overflow: hidden; background-position: 0 0; position: absolute; right: 0; bottom: 0; display: none; } .addboxtag .adultag li.cur { border: 1px #ff4444 solid; } .addboxtag .adultag li.cur a i { display: block; } .addboxtag .adultag li.defultli { color: #777; cursor: text; border: 0 none; height: 22px; line-height: 22px; padding-top: 9px; font-size: 15px; width: auto; } .addboxtag .adultag li.defultli b { float: left; display: inline; width: 14px; color: #c00; background: url(//www1.pcauto.com.cn/2013/automall/bm/images/bg.png) no-repeat 0 -19px; height: 14px; overflow: hidden; margin: 4px 8px 0px 0px; } .floatBox { margin: -100px 0 0 -39px } .statement .formoption .options,.statement .formoption .options label{ display: flex; align-items: center; } </style> <div class="btnarea"> <a href="javascript:void(0);" id="subtn" class="btn"> 提 交 </a> <a href="javascript:void(0);" id="subtn_disabled" class="btn btn-disabled"> 提 交 </a> </div> <!--声明--> <div class="statement"> <ul class="formoption"> <li class="options"> <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> </li> </ul> </div> <!-- =============zhenglichun-end================ --> <p style="font-size: 12px; width: 400px; height: 50px; line-height: 24px; padding: 0; padding-left: 92px; color: #777; position:relative;"> <input type="checkbox" checked style="position:absolute; top: 6px;" id="usedCar"/> <span style="padding-left: 16px;">高价售卖旧车(提交后二手车商会尽快与您联系)</span> </p> </div> </div> <div id="dealerInfos" style="display:none"> <ul class="formoption"> <li class="tit"><em class="red">* </em>经 销 商:</li> <li class="options" id="dTip">您可同时选择<strong class="red">3</strong>家经销商进行置换购车</li> <li id="noSelect"> <em style="display: none;" class="err" id="noSelectIcon"></em><span style="display: none;" class="red" id="noSelectTxt"></span> </li> <li id="msgMorethan3"> <em style="display: none;" class="err" id="dealerTips"></em><span style="display: none;" class="red" id="dealerErrTips"></span> </li> </ul> <div id="Jstore" class="Jstore"> <em class="emArrow"></em> <ul class="store" id="Jstore_ul"> 经销商列表 </ul> <div id="showToggle"> <div class="sBtns"><span style="padding-left:350px;">显示剩余<i class="red"></i>经销商</span><em class="sBtnsDown"></em></div> </div> </div> </div> </div> </form> <input id="changeMId" name="changeMId" type="hidden" /> </div> <!-- 20190401 新增js --> <script> // =============zhenglichun-start================ $(function(){ $.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){ // 需要验证码 $("#vfCodeBox").show() } if(res.checkBoxNeedVerify == 1){ $("#chkSM").attr("checked", "checked"); $('#subtn').show(); $('#subtn_disabled').hide(); $("#chkSMTips").hide(); $("#chkSmErrTips").hide(); }else{ $('#subtn').hide(); $('#subtn_disabled').show(); $("#chkSMTips").show(); $("#chkSmErrTips").show(); } }else{ console.log("获取控制状态失败") } } }); }) // =============zhenglichun-end================ $("#bmTab a").bind('click', function () { if ($(this).attr('id') == 'DealerCommOrder') { comm20200319.salesBoxShow(); } else { comm20200319.salesBoxHide(); } }); </script> <script> // 设置"显示/收起经销商" function setValve(classFlag1) { var Jstore = $("#Jstore"), aUl = $("ul", Jstore), aLi = $("li:has(dl)", Jstore); // 前面迭代如果是偶数会预加载一行li,导致5个不显示,6个显示,使用has(dl)过滤 _aDl = $("dl", Jstore); aUl.height("auto");// 清除上一次设定的高度值 Jstore.removeClass("on");// 清除class var maxRow = 3; if (aLi.length > maxRow) { var nHeight = null; for (var i = 0; i < maxRow; i++) { nHeight += aLi.eq(i).innerHeight(); } var oHeight = aUl.height(); $("#showToggle").html('<div class="sBtns"><span style="padding-left:350px;" onclick="buttonAd(3225);">显示剩余<i class="red">' + (classFlag1 - 6) + '</i>家经销商</span><em class="sBtnsDown"></em></div>'); aUl.height(nHeight); $(".sBtns").toggle(function () { // Jstore.addClass("on"); aUl.animate({ height: oHeight }); $(this).html('<span style="padding-left:400px;">收起</span><em class="sBtnsUp"></em>') }, function () { // Jstore.removeClass("on"); aUl.animate({ height: nHeight }); $(this).html('<span style="padding-left:350px;" onclick="buttonAd(3225);">显示剩余<i class="red">' + (classFlag1 - 6) + '</i>家经销商</span><em class="sBtnsDown"></em>') }); } else { $("#showToggle").html(''); } } </script> <!--页面脚本区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> <!-- 20181115 增加 插件和下面的js --> <script src="//js.3conline.com/js/ztlib/cxpop.js" charset="utf-8"></script> <!-- 20190903 提交名单解耦 --> <script src="//js.3conline.com/pcautonew2/pc/common/lib/dpl-windowname_v4_ts.js" charset="utf-8"></script> <script src="//js.3conline.com/pcautonew2/pc/2019/0618sales/saleBox20200319.js" charset="utf-8"></script> <!-- 20200616 金牌顾问埋点 --> <script> //统计事件 adviserCountThree(1913,1914,1915,1916); </script> <script> //计数 function buttonAd(id) { var img = new Image; img.src = "//count.pcauto.com.cn/count.php?channel=" + id + "&screen=" + screen.width + "*" + screen.height + "&refer=" + encodeURIComponent(document.referrer) + "&anticache=" + new Date().getTime() + "&url=" + encodeURIComponent(location.href) + "&from=event"; } </script> <script> var sgId = '27631'; var mId = ''; var mName = ''; var mPrice = ''; var manuId = '396'; var domainName = 'DealerReplace' var redirect_url1 = "";//验证码的下一个页面 var redirect_url2 = "";//验证码页 var commSg = { /** * 页面用到的接口集合请选择车型 */ action: { serial_group_infos: '//price.pcauto.com.cn/price/api/v1/serialgroup/serial_group_infos', // 获取车系信息 getLowestModelPrice4All: 'https://qdfront.pcauto.com.cn/interface/order/price/getLowestModelPrice4All.xsp', // 获取全国最低价 }, /** * 车型数据 */ 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) { } }); }, formatePrice: function (price) { var iNum; var dpNum; price = price + ''; if (price.indexOf(".") != -1) { iNum = price.split(".")[0]; //整数 dpNum = price.split(".")[1];//小数点 } else { iNum = price; dpNum = '00'; } //整数的个位数 iNum = iNum.substring(0, (iNum.length - 1)) + '?'; var html = '<span>商家底价</span>'; html += '<i>' + iNum + '</i><em>.</em>'; for (var j = 0; j < dpNum.length; j++) { html += '<i>' + dpNum[j] + '</i>'; } html += '<span>万元起</span>'; $('#form-sg-lp').html(html); }, getPriceAll: function () {// 获取车型全国最低价格 var t = this; $.ajax({ type: "get", url: t.action.getLowestModelPrice4All, data: { mid: t.modelData.modelId }, dataType: "jsonp", jsonp: "callback", jsonpCallback: 'getLowestModelPrice4All', cache: true, timeout: 0, // timeout默认是0, 当类型是jsonp时,必须要设置timeout大于0才能执行ajax的error回调 success: function (data) { if (data && data.minPrice) { t.formatePrice(data.minPrice); } else { t.formatePrice(t.modelData.price); } }, }); }, getPriceTime: 0, getPrice: function () {// 获取车型本地最低价格 var t = this; // 没有车型id,跳出 if (!t.modelData.modelId || !window.cityId) return; var param = { mid: t.modelData.modelId, rid: window.cityId } $.ajax({ type: "get", url: t.action.getLowestModelPrice4All, data: param, dataType: "jsonp", jsonp: "callback", jsonpCallback: 'getLowestModelPrice', cache: true, timeout: 0, // timeout默认是0, 当类型是jsonp时,必须要设置timeout大于0才能执行ajax的error回调 success: function (data) { if (data && data.minPrice) { t.formatePrice(data.minPrice); } else { t.getPriceAll(); } }, error: function (status) { t.getPriceAll(); } }); }, getAther: function () { var t = this; t.getPrice(); $('#lowestDiscountPriceDiv').show(); }, setVal: function () { //品牌 $('#manufacturerId').val(this.modelData.bId); $('#serialGroupId').val(this.modelData.sgId); $('#modelId').val(this.modelData.modelId); //切换对应的厂商Id $('#changeMId').val(this.modelData.mId); }, 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; t.modelData.price = data.chexing.price; mdstr.html(data.chexing.title + ' (' + data.chexing.price + ')'); } else if (dat && dat.dataC && dat.dataC.cars && dat.dataC.cars.length > 0) { if (mId > 0) { t.modelData.modelId = mId; t.modelData.modelName = mName; t.modelData.price = mPrice; mdstr.html(mName + '(' + mPrice + ')'); } else { t.modelData.modelId = dat.dataC.cars[1].id; t.modelData.modelName = dat.dataC.cars[1].text; t.modelData.price = dat.dataC.cars[1].price; mdstr.html(dat.dataC.cars[1].text + '(' + dat.dataC.cars[1].price + ')'); } } t.setVal(); t.getAther(); checkModel(); getDealerInfo(); }, openBack: function () { sgctr.addClass('form-sg-dahover'); }, closeBack: function () { sgctr.removeClass('form-sg-dahover'); if (hasHide) { hasHide = false; $("#carTips").hide(); $("#carErrTips").hide(); } } } if (sgId) { sgctr.html(sgctr.attr('data-tips1') + '<em></em>'); this.getModle(sgbox, function () { sgbox.removeClass('form-sgn'); 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; t.modelData.price = data.chexing.price; mdstr.html(data.chexing.title + ' (' + data.chexing.price + ')'); if (!hasHide) { hasHide = true; $("#carTips").hide(); $("#carErrTips").hide(); } t.setVal(); t.getAther(); checkModel(); getDealerInfo(); } } 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; sgId = data.chexi.id; t.modelData.price = data.chexing.price; mdstr.html(data.chexing.title + ' (' + data.chexing.price + ')'); t.getModle(null, function () { sgbox.removeClass('form-sgn'); t.setVal(); t.getAther(); checkModel(); getDealerInfo(); }); if (!hasHide) { hasHide = true; $("#carTips").hide(); $("#carErrTips").hide(); }; if (!hasDone) { hasDone = true; sgctr.html(sgctr.attr('data-tips1') + '<em></em>'); } } } 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); } }, init: function () { this.status(); // 根据车系id进行判断 } }; // 根据车系id判断,唯一入口 commSg.init(); </script> <!-- 声明 --> <script> function statementControl(id, id2) { $("#chkSM").click(function () { if (this.checked == true) { $(id).show(); $(id2).hide(); $("#chkSMTips").hide(); $("#chkSmErrTips").hide(); } else { $(id).hide(); $(id2).show(); } }); $(id2).click(function () { $("#chkSMTips").show(); $("#chkSmErrTips").show(); }); } statementControl('#subtn', '#subtn_disabled'); </script> <script> var isSubmit = false; //选择城市后的回调函数 function getCityData(id) { regionChange(0, id); } function getEle(id) { return document.getElementById(id); } function changeCaptcha() { getEle("imgv").src = '//captcha.pcauto.com.cn/captcha/v.jpg?' + new Date().getTime(); } var orderEntryId = 0; function actionResult(frmid, rpt, options) { var param = ""; var award = 0; var lotteryId = 0; if (rpt) { var dealerId = 0; if (rpt != 'ok') { var data = rpt; if (data.repeat) { alert("会话超时,请刷新页面重新提交!"); return; } if (data.captchaResult != undefined) { if (data.captchaResult == -1) alert('请输入验证码'); else alert('请重新输入验证码'); $("#captchaTable").show(); $("#captchaTips").show(); $("#captchaErrTips").show(); changeCaptcha(); isSubmit = false; $("#subtn").attr("disabled", false);//设置提交按钮可用 return; } if (data && data.status == 1) { var provinceId = 5; var sgId = 0; var modelId = 0; var phone = ""; var t = 0;//订单类型 var mallrId = 0;//选中的城市Id(用于给结果页调用汽车商城automall的接口) var payType = 0; if (data.dealerId != undefined && data.dealerId != null) { dealerId = data.dealerId; } if (data.provinceId != undefined && data.provinceId != null) { provinceId = data.provinceId; } else { provinceId = $("#provinceId").val(); } if (data.regionId != undefined && data.regionId != null) {//选中的城市Id mallrId = data.regionId; } else { mallrId = $("#regionId").val(); } if (data.sgId != undefined && data.sgId != null) { sgId = data.sgId; } else { sgId = $("#serialGroupId").val(); } if (data.modelId != undefined && data.modelId != null) { modelId = data.modelId; } else { modelId = $("#modelId").val(); } if (data.award != undefined && data.award != null) { award = data.award; } if (data.lotteryId != undefined && data.lotteryId != null) { lotteryId = data.lotteryId; } if (data.t != undefined && data.t != null) { t = data.t; } if (data.phone != undefined && data.phone != null) { phone = encodeURIComponent(data.phone); } if (data.payType != undefined && data.payType != null) { payType = data.payType; } param = "type=0&t=" + t + "&sg=" + sgId + "&p=" + provinceId + "&r=" + mallrId + "&m=" + modelId + "&d=" + dealerId + "&award=" + award + "&l=" + lotteryId + "&phone=" + phone + "&payType=" + data.payType + "&name=" + encodeURIComponent($("#name").val()) + "&orderEntryId=" + data.id + "&referer=" + encodeURIComponent(location.href); // 添加ad监控 var ad = ''; if ('1' == '2') { ad = '#ad=4339'; } if (ad == '') { ad = "#ad=" + '0'; var adStr = location.hash; if (adStr.indexOf("#ad") != -1) { ad = adStr.substring(4, adStr.length); } } if (ad == '12559') { ad = '#ad=12562'; } else if (ad == '8352') { ad = '#ad=12565'; } else if (ad == '8354') { ad = '#ad=12567'; } else if (ad == '12607') { ad = '#ad=12608'; } var name = $('#name').val(); redirect_url1 = 'https://qdfront.pcauto.com.cn/order/pc/common/order_detail_information.xsp?' + param + ad; redirect_url2 = 'https://qdfront.pcauto.com.cn/order/pc/common/order_detail_verify_phone.xsp?redirect_url=' + encodeURIComponent(redirect_url1) + "&t=" + t + '&orderEntryId=' + orderEntryId + "&tId=" + data.tId + "&phone=" + encodeURIComponent(data.phone) + "&modelId=" + data.modelId + "&serialGroupId=" + data.sgId + "&regionId=" + data.regionId + "&name=" + encodeURIComponent(name); //是否为拉黑手机号 $.getJSON("https://qdfront.pcauto.com.cn/interface/order/check_blacklist_by_phone.xsp?phone=" + encodeURIComponent(data.phone) + "&callback=?", function (data) { if (data && data.isBlacklist == 'true') { window.location.href = redirect_url1; } else { window.location.href = redirect_url2; } }); } } else { $("#subtn").attr("disabled", false);//设置提交按钮可用 isSubmit = false; return; } } else { showError(); $("#subtn").attr("disabled", false);//设置提交按钮可用 } isSubmit = false; } var FIRSTRUN = true; /*==============城市弹框和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 // 20190401 window.cityId = cityId; LocateAuto.setByCityId(curCityId, function (data) { //成功请求接口后执行方法 var area = data; if (area.city != "") { $("#nameList_curCity").html(area.city); // 20181115 有修改 $("#changeCityBtn span").html(area.city).addClass('blackTxt'); } var _provinceId = area.proId; var _areaId = area.cityId; regionChange(_provinceId, _areaId); //20200320 新增右侧金牌导购 comm20200319.init({ regionId: _areaId, manuId: manuId, sgId: sgId, type: 2, direction: 1 }); cityId = _areaId; getCityCodeByCityId(cityId); commSg.getPrice(); }, 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 regionChange(p, r) { $.getJSON("https://qdfront.pcauto.com.cn/qd/common/intf/getCityInfo?cityId=" + r, function (data) { if (data && data.code==0 && data.data) {//省份 $("#provinceId").val(data.data.provinceId); $("#regionId").val(r); changeAreaName(data.data.name); getDealerInfo(); var rId = $("#regionId").val(); var sgId = $("#serialGroupId").val(); var mId = $("#modelId").val(); if (domainName != 'DealerReplace') { getLowestDiscountPrice(); } } }); } if (domainName != 'DealerReplace') { //第一次进入页面,初始化最低行情价 function initInterval() { var lowestDisPriceInterval = setInterval(function () { var rId = $("#regionId").val(); var mId = $("#modelId").val(); if (rId > 0 && mId > 0) { getLowestDiscountPrice(); clearTimeout(lowestDisPriceInterval); } }, 500); } } //获得当前城市+车型 的最低行情价 function getLowestDiscountPrice() { var rId = $("#regionId").val(); var mId = $("#modelId").val(); if (rId > 0 && mId > 0) { $.ajax({ type: "get", dataType: "json", url: "https://qdfront.pcauto.com.cn/interface/order/price/getLowestNewsModelPrice.xsp", data: { rId: rId, mId: mId }, success: function (data) { if (data.result) { $("#lowestDiscountPriceDiv").css("display", "block"); if (data.lowestDiscountPrice != 0 && data.lowestDiscountPrice != '0') { $("#lowestDiscountPrice").html("<em>" + data.lowestDiscountPrice + "</em>万元"); } else { $("#lowestDiscountPrice").html("暂无报价"); } } else { $("#lowestDiscountPriceDiv").css("display", "none"); $("#lowestDiscountPrice").html(" "); } } }); } } function checkModel() { if ($("#modelId").val() == '' || $("#modelId").val() == null || ($("#modelId").val()).indexOf('+') >= 0) { $("#carTips").show(); $("#carErrTips").show(); $("#lowestDiscountPriceDiv").css("display", "none"); } else { $("#carTips").hide(); $("#carErrTips").hide(); if (domainName != 'DealerReplace') { getLowestDiscountPrice(); } var rId = $("#regionId").val(); var sgId = $("#serialGroupId").val(); var mId = $("#modelId").val(); } } function checkOriginalSerialGroup() { if ($("#original_serialGroupId").val() == '' || ($("#original_serialGroupId").val()).indexOf('+') >= 0) { $("#original_carTips").show(); $("#original_carErrTips").show(); } else { $("#original_carTips").hide(); $("#original_carErrTips").hide(); } } function checkRegion() { if ($("#regionId").val() == '') { $("#cityTips").show(); } else { $("#cityTips").hide(); } } function checkName() {//姓名判断 var showPtSg = 'false'; var reg = /^[\u4e00-\u9fa5a-zA-Z\s]{1,20}$/; if ($.trim($("#name").val()) == "请输入称呼(如李先生)" || $.trim($("#name").val()) == "请输入姓名") { if (showPtSg) { $("#nameErrTips").text("请输入您的姓名"); } else { $("#nameErrTips").text("请输入您的称呼"); } $("#nameTips").show(); $("#nameErrTips").show(); return false; } else if ($("#name").val().length > 10) { $("#nameErrTips").text("请填写10位数的称呼"); $("#nameTips").show(); $("#nameErrTips").show(); return false; } else if (!reg.test($.trim($("#name").val()))) { $("#nameErrTips").text("格式:支持中文和英文"); $("#nameTips").show(); $("#nameErrTips").show(); return false; } else { $("#nameTips").hide(); $("#nameErrTips").hide(); return true; } } function checkPhone() {//电话号码正则判断 var pattern = /^0{0,1}1[0-9]{10}$/; if ($.trim($("#phone").val()) == "请输入手机号码" || $.trim($("#phone").val()) == "") { $("#phoneErrTips").text("请输入您的手机号码"); $("#phoneTips").show(); $("#phoneErrTips").show(); return false; } else if ($("#phone").val().length > 11) { $("#phoneErrTips").text("请填写11位数的手机号码"); $("#phoneTips").show(); $("#phoneErrTips").show(); return false; } else if (!pattern.test($.trim($("#phone").val()))) { $("#phoneErrTips").text("格式:手机(135XXXXXXXX)"); $("#phoneTips").show(); $("#phoneErrTips").show(); return false; } else { $("#phoneTips").hide(); $("#phoneErrTips").hide(); return true; } } $("#name").blur(function () { checkName(); }); $("#phone").blur(function () { checkPhone(); }); //链接跳转,该种方式跳转不会丢失reffer function jumpTo(url) { var link = document.createElement("a"); link.href = url; link.style.display = 'none'; document.body.appendChild(link); link.click(); } // 更换名单列表城市信息 function changeAreaName(areaName) { if (areaName.indexOf("选择城市") == -1) { areaName = areaName.substring(areaName.indexOf(' ') + 1); $("#nameList_curCity").html(areaName); $("#lowestCityName").html(areaName); // 伪装重新加载车友名单 $("#slide").hide(); setTimeout(function () { $("#slide").show(); }, 500); } } function showMHTip() { var index = $('#Jstore_ul .miaohui').index($(this)); var left = $(this).position().left - 62; $('#Jstore_ul .info').eq(index).css({ 'left': left, 'display': 'block' }); } function hideMHTip() { var index = $('#Jstore_ul .miaohui').index($(this)); $('#Jstore_ul .info').eq(index).css('display', 'none'); } //检查车系提交的次数 function checkSgCount() { var cookieArray = document.cookie.split("; "); for (var i = 0; i < cookieArray.length; i++) { var str = cookieArray[i].split('='); var cName = $.trim(str[0]); if (cName == 'telSgCount') { try { var obj = decodeURIComponent(str[1]); var tel = $("#phone").val(); var sgId = $("#serialGroupId").val(); var jsn = eval('(' + obj + ')'); for (var k = 0; k < jsn.length; k++) { var jn = jsn[k]; if (jn[tel]) { var sgs = jn.sgs; for (var j = 0; j < sgs.length; j++) { var sg = sgs[j]; var ct = sg[sgId]; return ct; } } } } catch (e) { } } } } $(function () { var qrrId = 0; LocateAuto.init({ device: 'pc', cityCode: '', callback: function (data) { var area = data; if (area.city != "") { $("#nameList_curCity").html(area.city); $("#changeCityBtn span").html(area.city).addClass('blackTxt'); } var _provinceId = area.proId; var _areaId = area.cityId; qrrId = _areaId; regionChange(_provinceId, _areaId); // 20190401 增加默认城市 cityId = _areaId; //20200320 新增右侧金牌导购 comm20200319.init({ regionId: _areaId, manuId: manuId, sgId: sgId, type: 2, direction: 1 }); getCityCodeByCityId(cityId); commSg.getPrice(); } }); $("#subtn").click(function () { if (!commSg.modelData.sgId) { $("#carTips").show(); $("#carErrTips").show(); return; } if ($("#regionId").val() == '') { $("#cityTips").show(); return; } // 置换购车车系必选项 if ('4' == 4) { if ($("#original_serialGroupId").val() == '' || ($("#original_serialGroupId").val()).indexOf('+') >= 0) { $("#original_carTips").show(); $("#original_carErrTips").show(); return; } } if (!checkName()) { return; } if (!checkPhone()) { return; } var has = $("#payType2").attr("checked"); if (has) { var buyCarDate1 = $("#buyCarDate1").attr("class"); var buyCarDate2 = $("#buyCarDate2").attr("class"); if (buyCarDate1 == 'cur' || buyCarDate2 == 'cur') { $("#defultli1").hide(); if (buyCarDate1 == 'cur') { $("#buyDate").val("3个月以内"); } else { $("#buyDate").val("3个月以上"); } } else { $("#defultli1").show(); return; } } //贷款购车标识 if (domainName == "DealerCommOrder") { if (has) { $("#loanCarFlag").val("1"); } else { $("#loanCarFlag").val("0"); } } var domainName = 'DealerCommOrder'; if (domainName == "DealerReplace") { if ($("#original_serialGroupId").val() == '') { $("#original_carTips").show(); return; } else if (($("#original_serialGroupId").val()).indexOf('+') >= 0) { $("#original_carTips").show(); return; } } var code = $('#verCode').val(); if(code==""){ alert("请输入验证码");return } else if(/[0-9]{6}/.test(code) && code.length==6){ $.getJSON("https://qdfront.pcauto.com.cn/interface/order/verify_msg_code.xsp?phone="+$('#phone').val()+"&code="+code, function(json){ if(json && json.code==0){ $('#verifyStatus').val("1"); if (!isSubmit) { isSubmit = true;// 防止重复提交 $.blockUI({ message: '<p><img src="//www1.pcauto.com.cn/2019/dealer/images/loading.gif" />正在处理,请稍后...</p>', showOverlay: false, css: { border: 'none', padding: '15px', backgroundColor: '#000', '-webkit-border-radius': '10px', '-moz-border-radius': '10px', opacity: .5, color: '#fff' } }); var uphone = $('#phone').val(); //20210601 提交到活动好望角 if($('#usedCar').attr("checked")) { $('#salesUsedcar').val(1); } phoneEncode('https://etguard.pcauto.com.cn:81/encrypt.xsp', uphone, function (encryptPhone) { $('#phone').val(encryptPhone); var ct = checkSgCount(); if (ct >= 4) { window.location.replace('/order/pc/common/order_detail_result.xsp?ad=12048&type=0&t=0&p=' + $("#provinceId").val() + '&r=' + $("#regionId").val() + '&m=' + $("#modelId").val() + '&sg=' + $("#serialGroupId").val()) + '&phone=' + encodeURIComponent($.trim($("#phone").val()) + '&name=' + $.trim($("#name").val())); } else { var postData = $('#mainForm').serialize(); addOrder('https://qdcore.pcauto.com.cn/order/internal/replaceEntry.xsp', postData, function (d) { if (d && d.code == 0) { buttonAd(3221); orderEntryId = d.data.id; } $("#subtn").attr("disabled", true); if ('0' == '4284') { setOrderCount(); } $('#phone').val(uphone); actionResult("", d.data); $.unblockUI(); }); } }); } }else{ alert('验证码错误'); } }); }else{ var isHidden = $("#vfCodeBox").is(':hidden') if (isHidden) { $('#verifyStatus').val("1"); if (!isSubmit) { isSubmit = true;// 防止重复提交 $.blockUI({ message: '<p><img src="//www1.pcauto.com.cn/2019/dealer/images/loading.gif" />正在处理,请稍后...</p>', showOverlay: false, css: { border: 'none', padding: '15px', backgroundColor: '#000', '-webkit-border-radius': '10px', '-moz-border-radius': '10px', opacity: .5, color: '#fff' } }); var uphone = $('#phone').val(); //20210601 提交到活动好望角 if($('#usedCar').attr("checked")) { $('#salesUsedcar').val(1); } phoneEncode('https://etguard.pcauto.com.cn:81/encrypt.xsp', uphone, function (encryptPhone) { $('#phone').val(encryptPhone); var ct = checkSgCount(); if (ct >= 4) { window.location.replace('/order/pc/common/order_detail_result.xsp?ad=12048&type=0&t=0&p=' + $("#provinceId").val() + '&r=' + $("#regionId").val() + '&m=' + $("#modelId").val() + '&sg=' + $("#serialGroupId").val()) + '&phone=' + encodeURIComponent($.trim($("#phone").val()) + '&name=' + $.trim($("#name").val())); } else { var postData = $('#mainForm').serialize(); addOrder('https://qdcore.pcauto.com.cn/order/internal/replaceEntry.xsp', postData, function (d) { if (d && d.code == 0) { buttonAd(3221); orderEntryId = d.data.id; } $("#subtn").attr("disabled", true); if ('0' == '4284') { setOrderCount(); } $('#phone').val(uphone); actionResult("", d.data); $.unblockUI(); }); } }); } }else{ alert("请正确输入6位验证码");return } } }); function setOrderCount() { var img = new Image; img.src = "//count.pcauto.com.cn/count.php?channel=841&screen=" + screen.width + "*" + screen.height + "&refer=" + encodeURIComponent(document.referrer) + "&anticache=" + new Date().getTime() + "&url=" + encodeURIComponent(location.href) + "&from=event"; } var referer = document.referrer; var refererType = 1; if (referer == '') { referer = window.location.href; refererType = 2; } $("#referer").val(referer); $("#refererType").val(refererType); }); //20160428 新增 $('.addboxtag .adultag').each(function () { $(this).children('li').not('.defultli').click(function () { if ($(this).hasClass('cur')) { return; } else { $(this).addClass('cur').siblings('li').removeClass('cur'); } }) }); $("#buyCarDate").hide(); $("#houseState").hide(); $("#defultli1").hide(); $("#defultli2").hide(); function buyCarType(obj) { if (obj == 1) { $("#buyCarDate").hide(); $("#houseState").hide(); if (!$("#name").val()) { $("#name").val("请输入姓名"); } $("#chkSM").attr("checked", "true"); $("#chkSM").click(); $("#chkSM").attr("checked", "true"); $("#chkSMTips").hide(); $("#chkSmErrTips").hide(); } else { $("#buyCarDate").show(); $("#houseState").show(); if (!$("#name").val()) { $("#name").val("请输入姓名"); } $("#chkSM").removeAttrs("checked"); $("#chkSM").click(); $("#chkSM").removeAttrs("checked"); $("#buyCarDate1").attr("class", "cur"); } //当用户主动勾选贷款购车时(询问底价),需要隐藏经销商列表 var type = '4'; if ($("#payType2").attr("checked") && (type == "0")) { $("#dealerInfos").hide(); } else { $("#dealerInfos").show(); } } </script> <script> function initSlideV(obj) { // 上下文字滚动 var targetObj = $(obj).find('em'); if (targetObj.length <= 1) { return; } return new Slide({ target: targetObj, control: false, direction: 'y', effect: 'slide', height: 24, autoPlay: true, merge: true, animateTime: 300 }); } function getCookieMes(name) { var cooks = document.cookie.split(";"); for (var i = 0; i < cooks.length; i++) { var str = cooks[i].split('='); var cName = $.trim(str[0]); if (cName == name) { return unescape(str[1]); } } return ''; } </script> <script type="text/javascript"> var vipDealerIds = "";// 收费商家id串 var isComplate = false;// 收费商家id是否已经拼完 /** * 获取经销商信息 */ function getDealerInfo() { var rid = $("#regionId").val() != '' ? $("#regionId").val() : '0'; var sgid = $("#serialGroupId").val() != '' ? $("#serialGroupId").val() : '0'; var t = '4'; if (sgid.indexOf('+') != -1) {// 选中的是厂商不是车系 $("#dealerInfos").hide(); return; } if (rid !=0 && sgid != 0) { $.getScript("https://qdfront.pcauto.com.cn/interface/order/dealer/recommend_dealer.xsp?rid=" + rid + "&sgid=" + sgid + "&type=" + t + "&showNearbyDealer=1&callback=list"); } } // 选择经销商数量限制 function selectDealer(e){ buttonAd(3223); var count = 0; var checkBoxList = $('#Jstore_ul dt input[type=checkbox]'); for(var i=0;i<checkBoxList.length;i++) { var currDealer = $(checkBoxList[i]); if(currDealer.attr('checked')) count++; } if(count > 5) { $(e).attr('checked', false); alert('最多选择5个经销商'); } } //经销商信息展示 function list(data) { $("#dealerTips").hide();// 隐藏错误提示 $("#dealerErrTips").hide();// 隐藏错误提示 var t = '4'; var dealerId = ''; var content = "<li>"; var manuId = '396';//传入的厂商ID var changeMId = $("#changeMId").val() != '' ? $("#changeMId").val() : '0'; //切换时的厂商ID var vipDealerArray = new Array(); var freeDealerArray = new Array(); if (data.length < 1) {// 没有经销商数据 $("#Jstore_ul").html(""); $("#dealerInfos").hide(); $("#phone_ul").addClass("mb15"); return; } var nearbyDealerCount = 0;//异地经销商数量 var hasVip4sDealer = false;//是否有收费4s店 // 商家按收费免费分组 for (var i = 0; i < data.length; i++) { var item = data[i]; if (item.isNearbyDealer == 1) { nearbyDealerCount++; } if (item.vip >= 0) { vipDealerIds += item.dealerId + ","; vipDealerArray.push(item); if (item.agent == "4S店") { hasVip4sDealer = true; } } else { freeDealerArray.push(item); } } isComplate = true; if (data != null) { if (t == 2 || t == 4) { $("#dTip").html('您可对以下经销商进行置换购车'); } else { $("#dTip").html('建议您选择多家经销商进行对比,以便获得更全面的参考'); } if (nearbyDealerCount == data.length && data.length > 0) { $("#dTip").html('当地无该车型经销商,已为你推荐优质经销商'); } } var checkedCount = 0; var maxDealer = 5; var classFlag1 = 0; var classFlag2 = ''; // 没有收费商家默认勾选一家免费商家 if(vipDealerArray.length == 0) { maxDealer = 1; } for (var i = 0; i < data.length; i++) { var item = data[i]; var address = typeof (item.address) == "undefined" ? '' : item.address; var shortAddress = address; if (address.length > 26) { shortAddress = address.substring(0, 26); } var className = ""; //本田-广汽本田,则默认勾选5家 /*本田-广汽本田,露出新规则: 1.无收费4S店,不隐藏展厅店 2.有收费4S店,隐藏全部展厅店 3.勾选规则不影响 */ if (data[i].vip >= 0) { //收费商家 if (manuId == '3' || changeMId == '3') { if (item.agent == "展厅店" && hasVip4sDealer) { classFlag2 = 1; content += '<dl class="' + className + '" style="display:none"><dt><input type="checkbox" onclick="selectDealer(this);" name="dId" value="' + item.dealerId + '"'; } else { classFlag1++; classFlag2 = ''; content += '<dl class="' + className + '"><dt><input type="checkbox" onclick="selectDealer(this);" name="dId" value="' + item.dealerId + '"'; } if (checkedCount <= (maxDealer - 1)) { content += 'checked="checked"'; checkedCount++; } } else { classFlag1++; classFlag2 = ''; content += '<dl class="' + className + '"><dt><input type="checkbox" onclick="selectDealer(this);" name="dId" value="' + item.dealerId + '"'; if (checkedCount < (maxDealer - 1) || (checkedCount == (maxDealer - 1) && dealerId == '')) { content += 'checked="checked"'; checkedCount++; } } var phone = item.phone; if (item.phoneType == '1') { phone = phone.replace('转', '</strong> 转 <strong class="red">'); } content += `/></dt><dd> <i class="picTit"> <strong class="red f14 ${item.isOnline==1 ? 'dealer-online' : ''}">${item.isOnline==1 ? '线上直营店' : item.agent}` + '</strong> <strong class="blue f14" title="' + item.name + '">' + item.name + '</strong> <span class="smoke">' + (item.areaName?item.areaName.replace('区', ''):'') + '</span> '; if (item.isShowRZicon == 1) { content += '<img src="//www1.pcauto.com.cn/2013/automall/images/reStore.png" alt="太平洋汽车网认证经销商" title="太平洋汽车网认证经销商" />'; } content += '<a href="javascript:void(0)" class="miaohui" id="mh_' + item.dealerId + '" style="display:;" title="">询价短信秒回</a></i>' + '<i title="' + address + '"><span class="smoke">地址:</span>' + shortAddress + '</i> <i class="picTit"><span class="smoke">电话:</span><strong ' + (item.phoneType != '1' ? '' : 'class="red"') + '>' + phone + '</strong>'; if (item.phoneType == '1') { content += ' <img src="//www1.pcauto.com.cn/2013/price2013/s_renz.png" title="太平洋汽车网认证电话,请放心拨打">'; } if (item.isShow24Icon == 1) { content += ' <img src="//www1.pcauto.com.cn/2013/price2013/s_24h.png" title="24小时服务热线"> '; } if (item.range == 0) { content += ' <img src="//www1.pcauto.com.cn/2013/price2013/s_sbs.png" title="出售本市"></i> '; } else if (item.range == 1) { content += ' <img src="//www1.pcauto.com.cn/2013/price2013/s_sbsh.png" title="出售本省"></i> '; } else if (item.range == 2) { content += ' <img src="//www1.pcauto.com.cn/2013/price2013/s_sqg.png" title="出售全国"></i> '; } else if (item.range == 3) { content += ' <img src="//www1.pcauto.com.cn/2013/price2013/s_sds.png" title="出售多个城市"></i> '; } content += ' <p class="info" style="left: 127.453125px; display: none;">在提交信息后,您将会立即收到由该经销商发来的最低价短信。</p></dd></dl>'; } else { //免费商家 if (manuId == '3' || changeMId == '3') { if (vipDealerArray.length > 0 && item.agent == "展厅店" && hasVip4sDealer) { classFlag2 = 1; content += '<dl class="' + className + '" style="display:none"><dt><input type="checkbox" onclick="selectDealer(this);" name="fdId" value="' + item.dealerId + '"'; } else { classFlag1++; classFlag2 = ''; content += '<dl class="' + className + '"><dt><input type="checkbox" onclick="selectDealer(this);" name="fdId" value="' + item.dealerId + '"'; } if (vipDealerArray.length == 0 && checkedCount <= (maxDealer - 1)) { content += 'checked="checked"'; checkedCount++; } } else { classFlag1++; classFlag2 = ''; content += '<dl class="' + className + '"><dt><input type="checkbox" onclick="selectDealer(this);" name="fdId" value="' + item.dealerId + '"'; if ((vipDealerArray.length == 0 && checkedCount < maxDealer) || dealerId == item.dealerId) { content += 'checked="checked"'; checkedCount++; } } content += `/></dt><dd> <i class="picTit"> <strong class="red f14 ${item.isOnline==1 ? 'dealer-online' : ''}">${item.isOnline==1 ? '线上直营店' : item.agent}` + '</strong> <strong class="blue f14" title="' + item.name + '">' + item.name + '</strong> <span class="smoke">' + (item.areaName?item.areaName.replace('区', ''):'') + '</span></i> <i title="' + address + '"><span class="smoke">地址:</span>' + shortAddress + '</i>'; var phone = item.phone; if (item.phoneType == '1') { phone = phone.replace('转', '</strong> 转 <strong class="red">'); content += '<i class="picTit"><span class="smoke">电话:</span><strong class="red">' + phone + '</strong>' + ' <img title="太平洋汽车网认证电话,请放心拨打" src="//www1.pcauto.com.cn/2013/price2013/s_renz.png"></i>' } content += '<p class="info" style="left: 127.453125px; display: none;">在提交信息后,您将会立即收到由该经销商发来的最低价短信。</p></dd></dl>'; } if (classFlag1 % 2 == 0 && !classFlag2) { content += '</li><li>'; } } content += '</li>'; $("#Jstore_ul").html(content); $('#Jstore_ul .miaohui').hover(showMHTip, hideMHTip); $("#dealerInfos").show(); $("#phone_ul").removeClass("mb15"); setValve(classFlag1); } //检测代码--add 20141224 +function (ch, chout, now, ck, chf) { now = 1 * now || 1 * new Date(); function run(s) { try { s = s.data || s; if (s.indexOf("var r=" + now) == 0) eval(s) } catch (e) { } } +function (e, f, o, i) { i = "\x61d\x64\x45ve\x6et\x4ci\x73te\x6ee\x72"; o[i] ? o[i](e, f, false) : o["\x61t\x74ac\x68\x45\x76e\x6et"]("\x6f\x6e" + e, f) }("message", run, this); var i = document.createElement("div"); i.innerHTML = "\x3cifra\x6de\x20i\x64=" + now + "\x20\x73\x74y\x6ce=di\x73p\x6cay:\x6eo\x6ee\x20s\x72c=\x22h\x74\x74\x70\x73\x3a\x2f\x2fcou\x6et\x36\x2epc\x6fn\x6cine\x2eco\x6d\x2ecn\x2fp\x63suv\x2e\x68tm\x22\x20\x6ea\x6de=\x22ifr:" + now + ",ch:" + ch + (chout ? ",chout:" + chout : "") + (chf ? ",chf:" + chf : "") + (ck ? ",c\x6fo\x6bie:" + ck : "") + "\x22>\x3c\x2fi\x66ra\x6de\x3e"; (i = i.firstChild).onreadystatechange = function () { run(navigator[now], navigator[now] = this.undefined) }; document.getElementsByTagName("head")[0].appendChild(i); }(5587, 5588); </script> <!-- 2018.04.27 新增js --> <!--页面脚本区E--> <script type="text/javascript" src="//js.3conline.com/pcautonew2/pc/2019/dealer/jquery.validate.js" charset=""></script> <script type="text/javascript" src="//js.3conline.com/pcautonew2/pc/2019/dealer/jquery.form.js" charset=""></script> <script type="text/javascript" src="//js.3conline.com/pcautonew2/pc/common/jquery.blockUI.js" charset=""></script> <script type="text/javascript" src="//js.3conline.com/pcautonew2/pc/2019/dealer/jquery.thickbox.js" charset=""></script> <script type="text/javascript" src="//js.3conline.com/pcautonew2/pc/2019/dealer/base.js" charset=""></script> <script> // 20200213新增金点广告和改造js S var adurl = '//www.pcauto.com.cn'; var userArea; //获取城市的编号 function getCityCodeByCityId(rid) { var url = "https://qdfront.pcauto.com.cn/qd/common/intf/getCityByCode?cityId=" + rid $.getJSON(url,function(result){ if(result.code==0){ var city = result && result.data && result.data.list.length > 0 ? result.data.list[0] : {} getCityCode(city) } }); } function getCityCode(res) { if (res && res.cityCode) { userArea = res.cityCode; $.ajax({ type: "get", url: 'https://jzz.pcauto.com.cn/golden/recommend.do', data: { positionIds: "pcauto_consultation_picture", serialId: sgId, userArea: userArea }, dataType: "jsonp", jsonp: "callback", cache: false, timeout: 5000, success: function (data) { if (data && data.pcauto_consultation_picture && data.pcauto_consultation_picture.length > 0) { if (data.pcauto_consultation_picture[0].disseminatePic) { setHtml(adurl, data.pcauto_consultation_picture[0].disseminatePic); } } else { $('.ad-jd').hide(); } }, error: function (status) { console.log("点金接口网络出错"); } }); } } function setHtml(url, pic) { if (!url || !pic) return; var adHtml = '<div class="ad-jd" style="position:absolute; left: 729px; top: 49px; z-index10;"><img width="342" height="373" src="{{pic}}" alt=""></div>'; adHtml = adHtml.replace('{{url}}', url).replace('{{pic}}', pic); $('.bmBox').append(adHtml); } // 20200213新增金点广告和改造js E </script> </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"> <ul class="bmul clearfix"> <li class="odd"> <i class="tit"> <em>伍**</em> 135******86</i> <i class="time">1分钟前</i> </li><li class="even"> <i class="tit"> <em>李**</em> 133******77</i> <i class="time">1分钟前</i> </li><li class="odd"> <i class="tit"> <em>杜**</em> 151******16</i> <i class="time">1分钟前</i> </li><li class="even"> <i class="tit"> <em>陈**</em> 139******75</i> <i class="time">1分钟前</i> </li><li class="odd"> <i class="tit"> <em>刘**</em> 150******50</i> <i class="time">1分钟前</i> </li><li class="even"> <i class="tit"> <em>艾**</em> 187******68</i> <i class="time">1分钟前</i> </li><li class="odd"> <i class="tit"> <em>许**</em> 136******86</i> <i class="time">1分钟前</i> </li><li class="even"> <i class="tit"> <em>麦**</em> 137******13</i> <i class="time">1分钟前</i> </li><li class="odd"> <i class="tit"> <em>李**</em> 138******07</i> <i class="time">1分钟前</i> </li><li class="even"> <i class="tit"> <em>詹**</em> 186******13</i> <i class="time">2分钟前</i> </li><li class="odd"> <i class="tit"> <em>张**</em> 180******77</i> <i class="time">2分钟前</i> </li><li class="even"> <i class="tit"> <em>孙**</em> 139******02</i> <i class="time">2分钟前</i> </li></ul> <ul class="bmul clearfix"><li class="odd"> <i class="tit"> <em>卢**</em> 189******75</i> <i class="time">3分钟前</i> </li><li class="even"> <i class="tit"> <em>麦**</em> 136******90</i> <i class="time">4分钟前</i> </li><li class="odd"> <i class="tit"> <em>杜**</em> 186******42</i> <i class="time">6分钟前</i> </li><li class="even"> <i class="tit"> <em>苏**</em> 159******73</i> <i class="time">6分钟前</i> </li><li class="odd"> <i class="tit"> <em>毛**</em> 138******77</i> <i class="time">6分钟前</i> </li><li class="even"> <i class="tit"> <em>陈**</em> 134******54</i> <i class="time">7分钟前</i> </li><li class="odd"> <i class="tit"> <em>石**</em> 138******05</i> <i class="time">7分钟前</i> </li><li class="even"> <i class="tit"> <em>袁**</em> 158******23</i> <i class="time">8分钟前</i> </li><li class="odd"> <i class="tit"> <em>l**</em> 135******12</i> <i class="time">8分钟前</i> </li><li class="even"> <i class="tit"> <em>唐**</em> 180******00</i> <i class="time">9分钟前</i> </li><li class="odd"> <i class="tit"> <em>彭**</em> 135******64</i> <i class="time">11分钟前</i> </li><li class="even"> <i class="tit"> <em>张**</em> 186******76</i> <i class="time">11分钟前</i> </li></ul> <ul class="bmul clearfix"><li class="odd"> <i class="tit"> <em>黄**</em> 134******03</i> <i class="time">12分钟前</i> </li><li class="even"> <i class="tit"> <em>朱**</em> 150******37</i> <i class="time">12分钟前</i> </li><li class="odd"> <i class="tit"> <em>黄**</em> 158******37</i> <i class="time">12分钟前</i> </li><li class="even"> <i class="tit"> <em>廖**</em> 186******22</i> <i class="time">13分钟前</i> </li><li class="odd"> <i class="tit"> <em>吴**</em> 137******66</i> <i class="time">13分钟前</i> </li><li class="even"> <i class="tit"> <em>杨**</em> 182******12</i> <i class="time">14分钟前</i> </li><li class="odd"> <i class="tit"> <em>余**</em> 186******70</i> <i class="time">14分钟前</i> </li><li class="even"> <i class="tit"> <em>刘**</em> 134******96</i> <i class="time">14分钟前</i> </li><li class="odd"> <i class="tit"> <em>吕**</em> 181******18</i> <i class="time">15分钟前</i> </li><li class="even"> <i class="tit"> <em>购**</em> 135******40</i> <i class="time">15分钟前</i> </li><li class="odd"> <i class="tit"> <em>郭**</em> 138******20</i> <i class="time">15分钟前</i> </li><li class="even"> <i class="tit"> <em>陈**</em> 159******77</i> <i class="time">16分钟前</i> </li></ul> <ul class="bmul clearfix"><li class="odd"> <i class="tit"> <em>张**</em> 158******16</i> <i class="time">16分钟前</i> </li><li class="even"> <i class="tit"> <em>龙**</em> 157******62</i> <i class="time">16分钟前</i> </li><li class="odd"> <i class="tit"> <em>林**</em> 137******87</i> <i class="time">16分钟前</i> </li><li class="even"> <i class="tit"> <em>王**</em> 186******83</i> <i class="time">16分钟前</i> </li><li class="odd"> <i class="tit"> <em>麦**</em> 139******66</i> <i class="time">17分钟前</i> </li><li class="even"> <i class="tit"> <em>董**</em> 137******88</i> <i class="time">17分钟前</i> </li><li class="odd"> <i class="tit"> <em>时**</em> 186******95</i> <i class="time">17分钟前</i> </li><li class="even"> <i class="tit"> <em>小**</em> 185******57</i> <i class="time">17分钟前</i> </li><li class="odd"> <i class="tit"> <em>关**</em> 187******69</i> <i class="time">18分钟前</i> </li><li class="even"> <i class="tit"> <em>李**</em> 181******99</i> <i class="time">18分钟前</i> </li><li class="odd"> <i class="tit"> <em>潘**</em> 136******43</i> <i class="time">18分钟前</i> </li><li class="even"> <i class="tit"> <em>黄**</em> 138******36</i> <i class="time">19分钟前</i> </li></ul> <ul class="bmul clearfix"><li class="odd"> <i class="tit"> <em>王**</em> 158******71</i> <i class="time">19分钟前</i> </li><li class="even"> <i class="tit"> <em>张**</em> 136******00</i> <i class="time">19分钟前</i> </li><li class="odd"> <i class="tit"> <em>赖**</em> 135******38</i> <i class="time">20分钟前</i> </li><li class="even"> <i class="tit"> <em>戴**</em> 131******88</i> <i class="time">20分钟前</i> </li><li class="odd"> <i class="tit"> <em>农**</em> 157******13</i> <i class="time">20分钟前</i> </li><li class="even"> <i class="tit"> <em>刘**</em> 138******68</i> <i class="time">20分钟前</i> </li><li class="odd"> <i class="tit"> <em>萧**</em> 135******16</i> <i class="time">21分钟前</i> </li><li class="even"> <i class="tit"> <em>贺**</em> 130******88</i> <i class="time">21分钟前</i> </li><li class="odd"> <i class="tit"> <em>杨**</em> 139******32</i> <i class="time">21分钟前</i> </li><li class="even"> <i class="tit"> <em>崔**</em> 132******78</i> <i class="time">22分钟前</i> </li><li class="odd"> <i class="tit"> <em>赵**</em> 152******17</i> <i class="time">22分钟前</i> </li><li class="even"> <i class="tit"> <em>杨**</em> 151******78</i> <i class="time">23分钟前</i> </li></ul> <ul class="bmul clearfix"><li class="odd"> <i class="tit"> <em>林**</em> 186******87</i> <i class="time">23分钟前</i> </li><li class="even"> <i class="tit"> <em>昶**</em> 138******01</i> <i class="time">23分钟前</i> </li><li class="odd"> <i class="tit"> <em>王**</em> 180******18</i> <i class="time">23分钟前</i> </li><li class="even"> <i class="tit"> <em>王**</em> 136******14</i> <i class="time">23分钟前</i> </li><li class="odd"> <i class="tit"> <em>杨**</em> 138******38</i> <i class="time">24分钟前</i> </li><li class="even"> <i class="tit"> <em>张**</em> 186******12</i> <i class="time">24分钟前</i> </li><li class="odd"> <i class="tit"> <em>潘**</em> 158******92</i> <i class="time">25分钟前</i> </li><li class="even"> <i class="tit"> <em>崔**</em> 186******70</i> <i class="time">25分钟前</i> </li><li class="odd"> <i class="tit"> <em>黄**</em> 185******84</i> <i class="time">26分钟前</i> </li><li class="even"> <i class="tit"> <em>李**</em> 137******16</i> <i class="time">26分钟前</i> </li><li class="odd"> <i class="tit"> <em>贺**</em> 186******78</i> <i class="time">26分钟前</i> </li><li class="even"> <i class="tit"> <em>蔡**</em> 151******82</i> <i class="time">26分钟前</i> </li></ul> <ul class="bmul clearfix"><li class="odd"> <i class="tit"> <em>童**</em> 138******36</i> <i class="time">27分钟前</i> </li><li class="even"> <i class="tit"> <em>黄**</em> 138******66</i> <i class="time">27分钟前</i> </li><li class="odd"> <i class="tit"> <em>刘**</em> 156******27</i> <i class="time">28分钟前</i> </li><li class="even"> <i class="tit"> <em>梁**</em> 186******80</i> <i class="time">28分钟前</i> </li><li class="odd"> <i class="tit"> <em>梁**</em> 139******19</i> <i class="time">28分钟前</i> </li><li class="even"> <i class="tit"> <em>彭**</em> 138******70</i> <i class="time">28分钟前</i> </li><li class="odd"> <i class="tit"> <em>罗**</em> 181******00</i> <i class="time">30分钟前</i> </li><li class="even"> <i class="tit"> <em>宋**</em> 139******19</i> <i class="time">30分钟前</i> </li><li class="odd"> <i class="tit"> <em>阿**</em> 158******47</i> <i class="time">30分钟前</i> </li><li class="even"> <i class="tit"> <em>林**</em> 134******16</i> <i class="time">30分钟前</i> </li><li class="odd"> <i class="tit"> <em>钟**</em> 138******98</i> <i class="time">31分钟前</i> </li><li class="even"> <i class="tit"> <em>何**</em> 189******00</i> <i class="time">31分钟前</i> </li></ul> <ul class="bmul clearfix"><li class="odd"> <i class="tit"> <em>蔡**</em> 138******47</i> <i class="time">31分钟前</i> </li><li class="even"> <i class="tit"> <em>唐**</em> 135******60</i> <i class="time">31分钟前</i> </li><li class="odd"> <i class="tit"> <em>吴**</em> 136******08</i> <i class="time">31分钟前</i> </li><li class="even"> <i class="tit"> <em>高**</em> 131******16</i> <i class="time">32分钟前</i> </li><li class="odd"> <i class="tit"> <em>罗**</em> 137******78</i> <i class="time">32分钟前</i> </li><li class="even"> <i class="tit"> <em>林**</em> 139******15</i> <i class="time">32分钟前</i> </li><li class="odd"> <i class="tit"> <em>卢**</em> 133******33</i> <i class="time">32分钟前</i> </li><li class="even"> <i class="tit"> <em>杜**</em> 139******60</i> <i class="time">33分钟前</i> </li><li class="odd"> <i class="tit"> <em>杜**</em> 188******75</i> <i class="time">34分钟前</i> </li><li class="even"> <i class="tit"> <em>李**</em> 152******35</i> <i class="time">36分钟前</i> </li><li class="odd"> <i class="tit"> <em>程**</em> 137******79</i> <i class="time">36分钟前</i> </li><li class="even"> <i class="tit"> <em>顾**</em> 159******10</i> <i class="time">36分钟前</i> </li> </ul> </div> </div> </div> <script src="//js.3conline.com/min/temp/v1/dpl-jquery.slide.js"></script> <script> new Slide.marquee({ target: $( '#slide ul' ), control: false, effect: 'slide', merge: true, stay:5000, direction: 'y', autoPlay: true }); </script> </div> <!-- 询价调查问卷 begin 2015-07-25 --> <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 2015-07-25 --> <script class=" defer" src="//www.pcauto.com.cn/global/s_footer/index.html" charset="GBK"></script> <script>_submitIvyID();</script> <script src="//js.3conline.com/min/temp/v1/dpl-jquery.slide.js"></script> <script> //20200609增加短信验证码 function sendVerificationCode() { if (!checkPhone()) { return }; $.ajax({ type: "get", url: "https://qdfront.pcauto.com.cn/interface/order/send_msg_code.xsp", data: { phone: $("#phone").val() }, dataType: "jsonp", jsonp: "callback", success: function(data) { if (data.code == 0) { 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() { timeFlag = false; osendCaptcha.value = SEND_TXT; osendCaptcha.removeAttribute('disabled'); osendCaptcha.className = "verBut"; }); } else { alert(data.msg); } }, 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> </body> </html>

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