CINXE.COM
汽车商城-买车省钱省时省心
<!DOCTYPE html> <html> <head> <meta charset="GBK" /> <title>汽车商城-买车省钱省时省心</title> <meta name="keywords" content="汽车商城、太平洋汽车、汽车电商、汽车报价、特价车、购车优惠、平行进口车" /> <meta name="description" content="汽车商城是购车优惠平台,网友购车可以获得更多优惠。" /> <meta name="Author" content="yejunting_gz machunming_gz"> <meta content="always" name="referrer"> <link rel="stylesheet" type="text/css" href="//js.3conline.com/pcauto/2018/automall/css/index.css" /> <!--[if IE 6]><script>document.execCommand("BackgroundImageCache", false, true)</script><![endif]--> <body> <script>if(!window._addIvyID) document.write("<scr"+"ipt src='//www.pconline.com.cn/_hux_/auto/default/index.js'><\/scr"+"ipt>");</script> <!--计数器--> <span class="spanclass"> <script> document.write("<img style=display:none src=//count.pcauto.com.cn/count.php?channel=7700&screen="+screen.width+"*"+screen.height+"&refer="+encodeURIComponent(document.referrer)+"&anticache="+new Date().getTime()+"&url="+encodeURIComponent(location.href)+" >"); </script> </span> <!--头部--> <script src="//www.pcauto.com.cn/global/navibar/index.html"></script> <div class="headers"> <div class="inner clearfix"> <a href="//mall.pcauto.com.cn" class="logo"><img src="//www1.pcauto.com.cn/tuangou/20160306/images/logo.jpg" width="156" height="55" /></a> <!-- 城市弹层S --> <div class="citybox changeCity" > <div id="JcsCaptionText1" class="locact" ></div> <span class="changeBox" id="JS_city_change1" > <span class="cBtn"><em class="dropIcon"></em></span> <!-- 切换城市模块 S --> <div class="layBox" id="changeCityBox1"></div> <!-- 切换城市模块 E --> </span> </div> <!-- 城市弹层E --> <!-- 选择车系 --> <div class="selectCity" id="openPopupBFC"> <div target="_blank" method="post" action="" id="mainSNSSearchFromId"> <div class="input"><em class="text">输入要查看意向车系活动</em></div> </div> </div> </div> </div> <div class="navs" id="navs"> <div class="clearfix inner"> <span> <a href="/" class="firnav current">首页</a> <a href="/train/r0/" id="Jnav_gcq" class="">购车券</a> <a href="/chezhan/r0/" id="Jnav_czhd" class="">车展活动</a> <a href="/gct/r0/" id="Jnav_gct" class="">购车团</a> <a href="//price.pcauto.com.cn/import/" class="">平行进口车</a> </span> <em class="rnavs"> <a href="javascript:void(0)" class="burnav" onclick="checkLogin()"><strong></strong>我的订单</a> <!-- <i><a href="http://gou.pcauto.com.cn/" target="_blank">用品聚闪购</a></i> --> </em> </div> </div> <!--登录弹框 S--> <div class="loginno" style="_position:absolute; _top:expression(eval(document.documentElement.scrollTop)+400);"> <form> <div class="tit">登录<i onclick="closeLoginDialog()"></i></div> <div class="biglit"> <input type="text" value="请填写11位数字的手机号码" name="pop_phone" id="pop_phone" onfocus="if(this.value=='请填写11位数字的手机号码')this.value=''" onblur="if(this.value=='')this.value='请填写11位数字的手机号码';loginCheckPhone();" onkeyup="loginPhoneKeyup();"/> </div> <div class="smalit" id="pop_phone_err"><em style="display:none;"></em><span></span></div> <div class="biglit"> <input class="sortyzm" type="text" name="pop_captcha" id="pop_captcha" maxlength="5" value="请输入图片验证码" onfocus="if(this.value=='请输入图片验证码')this.value=''" onblur="if(this.value=='')this.value='请输入图片验证码';loginCheckCaptcha();" onkeyup="loginCaptchaKeyup();"/> <img id="imgv" src="//captcha.pcauto.com.cn/captcha/v.jpg" width="100" height="34" title="看不清 换一张" onclick="changeCaptcha(this);" class="getnum" /> </div> <div class="smalit" id="pop_captcha_err"><em style="display:none;"></em><span></span></div> <div class="biglit"> <input class="sortyzm" type="text" value="请输入六位验证码" name="pop_msgcode" id="pop_msgcode" onfocus="if(this.value=='请输入六位验证码')this.value='';" onblur="if(this.value=='')this.value='请输入六位验证码'; loginCheckMsgCode();" onkeyup="loginMsgCodeKeyup();"/> <a href="javascript:void(0)" class="getnum" id="pop_msgcode_btn">获取验证码</a> </div> <div class="smalit" id="pop_msgcode_err"><em style="display:none;"></em><span></span></div> <a href="javascript:void(0)" class="btnlogin" id="pop_btn">登录</a> <a href="javascript:void(0)" class="btnlogin btn-disabled" id="pop_btn_disabled">登录</a> <div class="statement"> <label><input id="chkSM_mall_login" class="checkbox" type="checkbox" checked="checked" name="isAgree" autocomplete="off" value="">我同意</label> <a href="//www1.pcauto.com.cn/zt/gz20171127/declare/pc.html" target="_blank">《个人信息保护声明》</a> </div> <div class="ewmdiv"> <img src="//www1.pcauto.com.cn/20140901/gouchetuan/images/about_2dc.png" width="94" height="94" /> <span>关注“口袋买车”<br>微信获取更多活动信息</span> </div> </form> </div> <!--登录弹框 E--> <!--内容开始--> <div class="indar01"> <ul id="posterAreaId"> </ul> </div> <div class="indar02"> <div class="clearfix inner" id="activitySerialgroupDiv"> <div class="th">购车券<em>截止今天,已有<i id="indexOrderCount" class="red">0</i>人使用购车券购车,送出价值<i id="indexOrderBillMoney" class="red">0</i>万奖励</em></div> <dl class="peolist clearfix" id="activityAreaId"> </dl> <div class="monidt" id="actMoreArea" style="display:none;"><a href="#" id="actMore" target="_blank">查看更多>></a></div> </div> </div> <!-- 车展活动 S--> <div class="carShow" id="carshowArea"> <div class="clearfix inner"> <div class="th">车展活动<em>享受更多线上报名专享优惠</em></div> <ul class="list" id="carshowList"> </ul> <div class="monidt"><a href="javascript:void(0)" id="carshowMore" target="_blank">查看更多>></a></div> </div> </div> <!-- 车展活动 E--> <div class="indar03"> <div class="clearfix inner"> <div class="th">购车团<em>由太平洋汽车工作人员提供导购服务</em></div> <dl class="gctdl"> <div id="superGoucheAreaId"> </div> <ul id="tuangouAreaId" class="list"></ul> </dl> <div class="monidt" id="gctMoreArea" style="display:none;"><a href="javascript:void(0);" id="gctMore" target="_blank">查看更多>></a></div> </div> </div> <div class="indar04"> <div class="clearfix inner"> <span>没有目标品牌的购车团? 可以使用</span><a target="_blank" href="//mall.pcauto.com.cn/autoMall/tgTzw/add_order.jsp?source=3" onclick="count()">团购通知我</a> </div> </div> <div class="indar05"> <div class="clearfix inner"> <div class="th">平行进口车<em>最全车型的平行进口车平台</em></div> <div class="tb"> <ul class="pictxtspus clearfix"> </ul> <div class="monidt" style="display:none;"><a href="//price.pcauto.com.cn/import/" target="_blank">查看更多>></a></div> </div> </div> </div> <!--内容结束--> <!-- 友情链接 S--> <div class="indar-links"> <div class="clearfix inner"> <div class="th">友情链接</div> <div class="tb"> <div class="tlst"> <!-- 开发注意:此部分用ssi引入 http://www.pcauto.com.cn/06fz/seonq/1709/intf11088.html--> <!--ssi[http://www.pcauto.com.cn/06fz/seonq/1709/intf11088.html]--><a href="//www.pcauto.com.cn/taglist/tagword261.html" target="_blank">新车上市</a><a href="//www.pcauto.com.cn/update/" target="_blank">最新文章</a> <a href="//www.pcauto.com.cn/chengdu/" title="成都车展" target="_blank">成都车展</a><a href="//price.pcauto.com.cn/sg26211/" title="宏光MINI EV" target="_blank">宏光MINI EV</a><a href="//price.pcauto.com.cn/sg411/" title="普拉多" target="_blank">普拉多</a><a href="//price.pcauto.com.cn/sg22973/" title="欧拉黑猫" target="_blank">欧拉黑猫</a><a href="//price.pcauto.com.cn/sg22673/" title="途达" target="_blank">途达</a><a href="//price.pcauto.com.cn/sg10710/" title="起亚嘉华" target="_blank">起亚嘉华</a><a href="//price.pcauto.com.cn/sg27341/" title="玛奇朵" target="_blank">玛奇朵</a><a href="//price.pcauto.com.cn/sg27393/" title="皇冠陆放" target="_blank">皇冠陆放</a><a href="//price.pcauto.com.cn/sg3178/" title="奔驰C级" target="_blank">奔驰C级</a><a href="//price.pcauto.com.cn/sg27804/" title="哈弗神兽" target="_blank">哈弗神兽</a><a href="//price.pcauto.com.cn/sg27834/" title="坦克600" target="_blank">坦克600</a><a href="//www.pcauto.com.cn/zt/zt5464.html" title="奥迪Q5" target="_blank">奥迪Q5</a><a href="//www.pcauto.com.cn/zt/zt5243.html" title="思域" target="_blank">思域</a><a href="//www.pcauto.com.cn/zt/zt5681.html" title="卡罗拉双擎E+" target="_blank">卡罗拉双擎E+</a><a href="//www.pcauto.com.cn/zt/zt5453.html" title="轩逸" target="_blank">轩逸</a><a href="//price.pcauto.com.cn/cars/ph/" title="高清汽车大图" target="_blank">高清汽车大图</a><a href="//price.pcauto.com.cn/usedcar/" title="二手车报价" target="_blank">二手车报价</a><a href="//www.pcauto.com.cn/motorcycle/" title="太平洋摩托" target="_blank">太平洋摩托</a><a href="//price.pcauto.com.cn/sg27421/" title="极氪001报价" target="_blank">极氪001报价</a> </div> </div> </div> </div> <!--友情链接 E--> <div class="btoms"> <div class="clearfix inner"> <span></span> <i></i> <div class="btconets" style="width: auto;"> <img style="margin-right: 20px;display: inline-block;" src="https://www1.pcauto.com.cn/20240809_mall_upload/koudai.png" alt=""> <img style="margin-right: 20px;display: inline-block;" src="https://www1.pcauto.com.cn/20240809_mall_upload/maiche.png" alt=""> <img style="margin-top: 6px;display: inline-block;" src="https://www1.pcauto.com.cn/20240809_mall_upload/shijia.png" alt=""> </div> </div> </div> <!--浮标开始--> <div class="ftool"> <a href="//www1.pcauto.com.cn/gz201604/pxjkc/help.html" target="_blank">帮助中心</a> <a href="javascript:void(0)" id="backtop" style="display: none;">返回顶部</a> </div> <!--浮标结束--> <!--二维码弹框 S--> <div class="ewmtkpop"> <i></i> <span>微信扫一扫参团!</span> <img id="qrCode" src="" width="226" height="226" /> </div> <!--二维码弹框 E--> <!--页面脚本区S--> <!--所有页面用到的js脚本都必须放到此位置,包括外链js和内嵌js--> <script src="//js.3conline.com/min/temp/v1/lib-jquery1.4.2,dpl-jquery.slide.js"></script> <!--公共js外链--> <script type="text/javascript" src="//js.3conline.com/pcauto/2016/qicheshangcheng/block/base.js"></script> <!--以下JS代码的位置请不要调整--> <script> /** * 首页海报图构造方法 * @param json 回调json对象 */ function buildPosterHtml(json){ if(json != null){ var _poster = json.poster; if(_poster != null){ var _size = _poster.length; var shtml = ''; for(var i = 0; i < _size; i++){ var _p = _poster[i]; shtml += '<li><a href="'+ _p.url +'" target="_blank"><img src="'+ _p.imgUrl.replace('http://','//') +'" width="100%" height="400" /></a></li>'; } $("#posterAreaId").html(shtml); } } } /** * 首页购车券构造方法 * @param json 回调json对象 */ function buildActivityHtml(json){ $("#actMoreArea").hide(); if(json != null){ var activitys = json.activitys; if(activitys != null){ var size = activitys.length; if(size<=0){ $("#activitySerialgroupDiv").attr("style", "display:none;"); }else{ var dl = $("<dl></dl>"); for(var i = 0; i < size; i++) { var asg = activitys[i]; var actUrl = '//mall.pcauto.com.cn/r'+REGION_ID+'/s'+asg.id+'/'; if(asg.type == 1){ //直通车 actUrl = '//mall.pcauto.com.cn/r'+REGION_ID+'/t'+asg.id+'/'; } var a = $('<a href="'+actUrl+'" target="_blank"></a>'); a.append('<em></em>'); a.append('<strong class="topbor"></strong>'); if(asg.titleLabel!=""){ a.append('<b><font>'+asg.titleLabel+'</font></b>'); } a.append('<img src="'+asg.baipic+'" width="215" height="160" />'); a.append('<p>'+asg.serialGroupName+'</p>'); a.append('<span>'+asg.title+'</span>'); a.append('<i>优惠内容:<font>'+asg.quanWorth+'</font></i>'); var btnName = "立即购买"; if(asg.status==1){ if(asg.allCount<=0){ btnName = "已售罄"; }else{ btnName = "立即购买"; } }else if(asg.status==3){ btnName = "即将开售"; } a.append('<div class="btnmoy"><div class="txtle"><strong>¥</strong>'+asg.quanPrice+'</div><button class="btn">'+btnName+'</button></div>'); if(asg.soldCount>=30){ a.append('<div class="lttxt"><span>已有<font>'+asg.soldCount+'</font>人购买</span><i>剩<font>'+asg.allCount+'</font>份</i></div>'); }else{ a.append('<div class="lttxt"><i>剩<font>'+asg.allCount+'</font>份</i></div>'); } a.append('<span class="timers" id="mallTime_'+asg.id+'">离活动结束还剩<font>0</font>天</span>'); var dd = $('<dd id="item_'+asg.id+'"></dd>'); if((i+1)%4==0){ dd.addClass('lastdd'); } if(asg.status==1 && asg.allCount<=0){ dd.addClass('noproed'); } if(asg.status==3){ dd.addClass('comings'); } dd.attr("data-begin-time", asg.beginTime); dd.attr("data-end-time", asg.endTime); dd.attr("data-asg-id", asg.id); dd.attr("data-status", asg.status); dd.append(a);//金额比较小的几十块的,但是手续费可以高的,要是愿意也可以长期开的 dl.append(dd); } $("#activityAreaId").html(dl.html()); for(var i=0;i<size;i++){ getTime(activitys[i].status, activitys[i].beginTime, activitys[i].endTime, activitys[i].id); } if(size >=8){ //更多链接 $("#actMore").attr("href","//mall.pcauto.com.cn/train/r"+REGION_ID+"/"); $("#actMoreArea").show(); }else{ $("#actMoreArea").hide(); } } }else{ $("#activityAreaId").html(""); $("#activitySerialgroupDiv").attr("style", "display:none;"); } }else{ $("#activityAreaId").html(""); $("#activitySerialgroupDiv").attr("style", "display:none;"); } } /** * 首页车展活动构造方法 * @param json 回调json对象 */ function buildCarshowHtml(json){ $("#carshowArea").hide(); if(json.total > 0){ var _carshows = json.carshows; if(_carshows != null){ var size = _carshows.length; var shtml = ''; for(var i = 0; i < size; i++){ var _carshow = _carshows[i]; var _manufacturers = _carshow.manufacturers; var _manuHtml = ''; //参与厂商 if(_manufacturers != null){ var _manuSize = _manufacturers.length; for(var j = 0; j < _manuSize; j++){ var _manu = _manufacturers[j]; _manuHtml += '<span class="picText__stit-s-i">'+ _manu.manuName +'</span>'; } } var _status = _carshow.status; shtml += '<li class="list__item">' + ' <div class="picText picText--w680'+(_status>1?' picText--ended':'')+'">' + ' <a href="//mall.pcauto.com.cn'+_carshow.url+'" target="_blank" class="picText__link clearfix">' + ' <div class="picText__pic"><img src="'+_carshow.banner.replace('http://','//')+'" width="680" height="272" /></div>' + ' <div class="picText__text">' + ' <div class="picText__tit"><span class="picText__tit-b">'+_carshow.title+'</span></div>' + ' <div class="picText__stit">' + ' <span class="picText__stit-b">车展城市:</span>' + ' <span class="picText__stit-s">'+_carshow.provinceName+' '+_carshow.regionName+'</span>' + ' </div>' + ' <div class="picText__stit">' + ' <span class="picText__stit-b">车展时间:</span>' + ' <span class="picText__stit-s">'+_carshow.carshowBeginDate+'~'+_carshow.carshowEndDate+'</span>' + ' </div>' + ' <div class="picText__stit">' + ' <span class="picText__stit-b">参与品牌:</span>' + ' <span class="picText__stit-s picText__stit-3line" title="'+_carshow.mfNames.substr(0,_carshow.mfNames.length-1)+'">'+_manuHtml+'</span>' + ' </div>' + ' <div class="picText__stit">' + ' <span class="picText__stit-b">已报名:</span>' + ' <span class="picText__stit-s"><span class="picText__text-hl">'+_carshow.orderTotalCount+'</span>人</span>' + ' </div>' + ' </div>' + ' <div class="picText__status"></div>' + ' </a>' + ' </div>' + '</li>'; } $("#carshowList").html(shtml); //更多链接 $("#carshowMore").attr("href", "//mall.pcauto.com.cn/chezhan/r" + REGION_ID + "/"); $("#carshowArea").show(); }else{ $("#carshowList").html(""); } }else{ $("#carshowList").html(""); } } /** * 首页超级购车团构造方法 * @param json 回调json对象 */ function buildSuperGoucheHtml(json){ if(json != null){ var _gouches = json.gouches; if(_gouches != null){ var _size = _gouches.length; var shtml = ''; for(var i = 0; i < _size; i++){ var _gc = _gouches[i]; var _brands = _gc.brands; var _bHtml = ''; //参与品牌 if(_brands != null){ var _bSize = _brands.length; for(var j = 0; j < _bSize; j++){ var _b = _brands[j]; _bHtml += '<font>'+ _b.name +'</font>'; } } shtml += '<dd class="teldd">' + ' <a href="javascript:void(0);" onclick="popalt('+ _gc.id +')" class="pics"><img src="' + _gc.banner.replace('http://','//') + '" width="800" height="267" /><i><font>超级购车团</font></i></a>' + ' <div class="txt">' + ' <p><i>'+ _gc.name +'</i></p>' + ' <span><b>参与品牌:</b><strong>'+ _bHtml +'</strong></span>' + ' <span><b>活动时间:</b><font>'+ _gc.activityBeginTime +'</font></span>' + ' <span><b>活动城市:</b><strong>'+ _gc.address +'</strong></span>' + ' <div class="btn"><a href="javascript:void(0)" onclick="popalt('+ _gc.id +')">我要参团</a><span><em>'+ _gc.counts +'</em>人购买</span></div>' + ' <em class="listem">'+ _gc.orderDesc +'</em>' + ' </div>' + '</dd>'; } $("#superGoucheAreaId").html(shtml); }else{ $("#superGoucheAreaId").html(""); } }else{ $("#superGoucheAreaId").html(""); } } /** * 首页购车团构造方法 * @param json 回调json对象 */ function buildTuangouHtml(json) { $("#gctMoreArea").hide(); if (json != null) { var _tuangous = json.tuangous; if (_tuangous != null) { var size = _tuangous.length; var shtml = ''; for (var i = 0; i < size; i++) { var _gct = _tuangous[i]; var _serialGroups = _gct.serialGroupNames; var _sgHtml = ''; //参与车系 var seris = []; if (_serialGroups != null) { var _sgSize = _serialGroups.length; for (var j = 0; j < _sgSize; j++) { var sgName = _serialGroups[j].sgName; seris.push(sgName); _sgHtml += '<span class="picText__stit-s-i">' + sgName + '</span>'; } } var link = '//mall.pcauto.com.cn/gct/r' + REGION_ID + '/g' + _gct.id + '/'; var _status = _gct.status; var banner=""; if(typeof(_gct.banner) != 'undefined'){ banner= _gct.banner.replace('http://','//'); } shtml += '<li class="list__item"><div class="picText picText--w500' + (_status == 2 ? ' picText--ended' : '') + '">' + ' <a href="' + link + '" target="_blank" class="picText__link clearfix">' + ' <div class="picText__pic">' + ' <img src="' + banner + '" width="500" height="200" />' + ' </div>' + ' <div class="picText__text">' + ' <div class="picText__tit">' + ' <span class="picText__tit-b">' + _gct.brandName + '</span>' + ' <span class="picText__tit-s" title="' + _gct.title + '">' + _gct.title + '</span>' + ' </div>' + ' <div class="picText__stit">' + ' <span class="picText__stit-b">参与车系:</span>' + ' <span title="' + seris + '" class="picText__stit-s picText__stit-s--nowrap">' + _sgHtml + '</span>' + ' </div>' + ' <div class="picText__stit">' + ' <span class="picText__stit-b">活动日期:</span>' + ' <span class="picText__stit-s">' + _gct.endDate + '</span>' + ' </div>' + ' <div class="picText__stit">' + ' <span class="picText__stit-b">活动城市:</span>' + ' <span class="picText__stit-s">' + REGION_NAME + '</span>' + ' </div>' + ' <div class="picText__stit">' + ' <span class="picText__stit-b">已报名:</span>' + ' <span class="picText__stit-s"><span class="picText__text-hl">' + _gct.orderCount + '人</span></span>' + ' </div>' + ' </div>' + ' <div class="picText__status"></div>' + ' </a>' + ' </div></li>'; } $("#tuangouAreaId").html(shtml); if (size >= 5) { //更多链接 $("#gctMore").attr("href", "//mall.pcauto.com.cn/gct/r" + REGION_ID + "/"); $("#gctMoreArea").show(); } else { $("#gctMoreArea").hide(); } } else { $("#tuangouAreaId").html(""); } } else { $("#tuangouAreaId").html(""); } } /** * 平行进口车 */ function listImportCars(json){ if(json && json.statusCode==200 && json.rows.length>0){ var importedCarRoot = "//price.pcauto.com.cn/import/"; importedCarRoot = importedCarRoot.replace(/\/$/, ""); var ul = $('<ul></ul>'); for(var i=0; i<json.rows.length; i++){ var item = json.rows[i]; if(isNaN(item.id)){ continue; } var li = $('<li></li>'); if(i<4){ li.addClass('topborno'); } if(i>0 && i%3==0){ li.addClass('lastpictx'); } var baiPic = "//www1.pcauto.com.cn/piclib/default_pic/400x300.jpg";//默认图 if(item.baiPic){ baiPic = item.baiPic; } var a = $('<a href="'+importedCarRoot+'/sg'+item.id+'/" target="_blank"></a>'); a.append('<div class="pic"><img src="'+baiPic+'" width="215" height="160" alt=""></div>'); a.append('<div class="tit">'+item.name+'</div>'); a.append('<div class="info"><em>'+item.dealerTotal+'</em>个商家提供,<em>'+item.modelTotal+'</em>个车型</div>'); a.append('<div class="price">¥<em>'+item.price+'</em>万起</div>'); a.append('<i class="mask"></i>'); li.append(a); ul.append(li); } $(".indar05 .pictxtspus").html(ul.html()); if(json.total > 8){ $(".indar05 .monidt").show(); }else{ $(".indar05 .monidt").hide(); } }else{ $(".indar05 .pictxtspus").html(""); $(".indar05 .monidt").hide(); } } //倒计时 function getTime(status, beginTime, endtime, asgId) { if(!document.getElementById("mallTime_"+asgId)) return; var obj = document.getElementById("mallTime_"+asgId); var now = new Date(); if(status==1){ var y = endtime.split(" ")[0].split("-")[0]; var m = endtime.split(" ")[0].split("-")[1]-1; var d = endtime.split(" ")[0].split("-")[2]; var h = endtime.split(" ")[1].split(":")[0]; var n = endtime.split(" ")[1].split(":")[1]; var s = endtime.split(" ")[1].split(":")[2]; var y2k = new Date(y,m,d,h,n,s); var days = (y2k - now) / 1000 / 60 / 60 / 24; var daysRound = Math.max(Math.floor(days),0); var hours = (y2k - now) / 1000 / 60 / 60 - (24 * daysRound); var hoursRound = Math.max(Math.floor(hours),0); var minutes = (y2k - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound); var minutesRound = Math.max(Math.floor(minutes),0); var seconds = (y2k - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound); var secondsRound = Math.max(Math.floor(seconds),0); if(days>0){ daysRound = daysRound<10?("0"+daysRound):daysRound;//补零 hoursRound = hoursRound<10?("0"+hoursRound):hoursRound;//补零 minutesRound = minutesRound<0?("0"+minutesRound):minutesRound;//补零 secondsRound = secondsRound<0?("0"+secondsRound):secondsRound;//补零 obj.innerHTML = "离活动结束还有<font>"+ daysRound +"</font>天<font>"+hoursRound+"</font>时<font>"+minutesRound+"</font>分"; setTimeout(function(){getTime(status, beginTime, endtime, asgId);}, 1000); }else{ obj.innerHTML = "活动已结束"; $("#item_"+asgId+" .btn").html("已结束"); $("#item_"+asgId).removeClass("noproed"); $("#item_"+asgId).addClass("noproed"); } }else if(status==3){ var y = beginTime.split(" ")[0].split("-")[0]; var m = beginTime.split(" ")[0].split("-")[1]-1; var d = beginTime.split(" ")[0].split("-")[2]; var h = beginTime.split(" ")[1].split(":")[0]; var n = beginTime.split(" ")[1].split(":")[1]; var s = beginTime.split(" ")[1].split(":")[2]; var y2k = new Date(y,m,d,h,n,s); var days = (y2k - now) / 1000 / 60 / 60 / 24; var daysRound = Math.max(Math.floor(days),0); var hours = (y2k - now) / 1000 / 60 / 60 - (24 * daysRound); var hoursRound = Math.max(Math.floor(hours),0); var minutes = (y2k - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound); var minutesRound = Math.max(Math.floor(minutes),0); var seconds = (y2k - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound); var secondsRound = Math.max(Math.floor(seconds),0); if(days > 0){ daysRound = daysRound<10?("0"+daysRound):daysRound;//补零 hoursRound = hoursRound<10?("0"+hoursRound):hoursRound;//补零 minutesRound = minutesRound<0?("0"+minutesRound):minutesRound;//补零 secondsRound = secondsRound<0?("0"+secondsRound):secondsRound;//补零 obj.innerHTML = "离活动开始还有<font>"+ daysRound +"</font>天<font>"+hoursRound+"</font>时<font>"+minutesRound+"</font>分"; setTimeout(function(){getTime(status, beginTime, endtime, asgId);}, 1000); }else{ getTime(1, beginTime, endtime, asgId); } } } var REGION_ID = 1; //默认广州 var REGION_NAME = "广州"; function asyncLoadData(curRegionId,curRegionName){ $.getScript("//mall.pcauto.com.cn/autoMall/interface/activity/index_activity_list_json.jsp?callback=buildActivityHtml&rId="+curRegionId); $.getScript("//mall.pcauto.com.cn/autoMall/interface/carshow/index_carshow_list_json.jsp?callback=buildCarshowHtml&rId="+curRegionId); $.getScript("//mall.pcauto.com.cn/autoMall/interface/gct/index_tuangou_list_json.jsp?callback=buildTuangouHtml&rId="+curRegionId); $.getScript("//mall.pcauto.com.cn/autoMall/interface/gouche/index_super_gouche_list_json.jsp?callback=buildSuperGoucheHtml&rId="+curRegionId); $.getScript("//mall.pcauto.com.cn/autoMall/interface/index_poster_list_json.jsp?callback=buildPosterHtml&rId="+curRegionId); REGION_ID = curRegionId; REGION_NAME = curRegionName; } $.getScript("//mall.pcauto.com.cn/autoMall/interface/activity/activity_count.jsp?callback=indexCountFunc"); function indexCountFunc(json) { if (json != null) { $("#indexOrderCount").html(json.orderCount || 0); $("#indexOrderBillMoney").html(json.orderBillMoney || 0); } } </script> <script type="text/javascript" src="//price.pcauto.com.cn/import//intf/mall/1.0/hotSerialGroup/list.do?pageNo=1&pageSize=8&callback=listImportCars" charset="UTF-8"></script> <script> var noRegion = 0;//是否需要城市信息,非零:不需要,0:需要,默认:需要 if(!noRegion){ document.write('<scr'+'ipt src="//www.pcauto.com.cn/global/1603/intf8771.js"></scr'+'ipt>'); document.write('<scr'+'ipt src="//js.3conline.com/pcauto/common/city/pcCityPop.js"></scr'+'ipt>'); document.write('<scr'+'ipt src="//js.3conline.com/min2/temp/v2/plugin-locate,plugin-locate_auto.js" charset="utf-8"></scr'+'ipt>'); //定位API 放到$(function(){})中有点晚,这里尽早调用,$.getScript()存在编码问题,所以这里使用$.ajax() $.ajax({ dataType:'script', scriptCharset:'utf-8', cache:true, url:'//js.3conline.com/min2/temp/v2/plugin-locate,plugin-locate_auto.js', success:function(){ if(""){ loadCityData("", "", false); }else{ Locate.defaultData = {proCode:'440000', pro:'广东省', cityCode:'440100', city:'广州市'}; LocateAuto.defaultData = {proId:5, cityId:1, url:'//www.pcauto.com.cn/qcbj/gz/'};//默认值设为广州 LocateAuto.init({ device: 'pc', callback:function(data){ var curCity = data.city.replace(/市$/, ''); var curCityId = data.cityId; loadCityData(curCityId, curCity, true); } }); } } }); } //尽早初始化SelectInput $.getScript('//js.3conline.com/pcauto/2015/chedai/js/select_input_v3.js',function(){ new SelectInput({ urlS: '//price.pcauto.com.cn/api/hcs/select/serial_json_chooser?', urlB: '//price.pcauto.com.cn/api/hcs/select/brand_json_chooser?', urlF: '//price.pcauto.com.cn/api/hcs/select/serial_json_chooser?', btn: '#openPopupBFC', ipt: '#openPopupBFC input', width: [148, 188, 188], lazy: true, onClickF: function(element){ var sgId = $(element).find("a").attr("data"); window.location.href="//mall.pcauto.com.cn/sg"+sgId+"/";//重定向到汽车商城车系页 } }); }); $(function(){ if(!noRegion){ var cityPop1 = new cityPop({ "openBtn": "JS_city_change1", //打开弹框按钮ID "cityBox": "changeCityBox1", //弹层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 }, function(e){//切换城市 var e = window.event || e; var target = e.srcElement || e.target; var 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) { //根据选择的地区获取城市id 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 LocateAuto.setByCityId( curCityId, function(data) { //成功请求接口后执行方法 var curCity = data.city.replace(/市$/, ''); var curCityId = data.cityId; loadCityData(curCityId, curCity, true); }, function(data) { //该方法可选,请求接口异常执行方法,返回的数据记录了错误信息 alert("请用Ctrl+F5刷新页面,重新选择城市!"); } ); e.preventDefault ? (e.preventDefault()) : (e.returnValue = false); } } }); } }); function loadCityData(curCityId, curCity, redirctFlag){//IP识别统一入口 updateRegionInfo(curCityId, curCity); var async = 1; if(async){//异步加载数据,请在使用页面定义函数:asyncLoadData(cityId, curCity) if(typeof(asyncLoadData) === "function"){ asyncLoadData(curCityId, curCity); }else{ alert("请定义函数asyncLoadData(cityId, curCity)加载页面数据"); } }else{ if(redirctFlag){ newUrl(curCityId); } } } function updateRegionInfo(curCityId, curCity){ var div = document.getElementById("JcsCaptionText1"); div.innerHTML=curCity; div.setAttribute("data-city-id", curCityId); var eles = document.getElementById("navs").getElementsByTagName("a"); $("#Jnav_gcq")[0].href = "/train/r" + curCityId + "/"; //购车券 $("#Jnav_czhd")[0].href ="/chezhan/r"+curCityId+"/"; //车展活动 $("#Jnav_gct")[0].href = "/gct/r" + curCityId + "/"; //购车团 } function newUrl(rid) { var refrere = window.location.href; var mallRoot = "//mall.pcauto.com.cn"; var arr = refrere.match(/r(\d+)\//); var mrr = refrere.match(/m(\d+)\//); var url = '#'; if (arr != null) { url = refrere.replace("r" + arr[1], "r" + rid); if (mrr !=null) { url = url.replace("/m" + mrr[1], ""); } location.href = url; } else if (refrere.indexOf('/autoMall/review/no_list.jsp') >= 0||refrere.indexOf('/autoMall/regin_no_detail.jsp') >= 0) { var type = getQueryString('type'); if (type == 1) {//首页 location.href = mallRoot; } else if (type == 2) {//购车团 location.href = mallRoot + "/gct/r" + rid + "/"; } else if (type == 3) {//今日热卖 location.href = mallRoot + "/train/r" + rid + "/"; } else if (type == 5) {//活动回顾 location.href = mallRoot + "/hdhg/"; } else if (type == 6) {//车展活动 location.href = mallRoot + "/chezhan/r" + rid + "/"; } else {//其他为null等情况 location.href = mallRoot; } }else if(refrere.match(/s(\d+)\//)){//购车券详情页 var tmp = refrere.match(/s(\d+)\//); location.href = refrere.replace("/s" + tmp[1], "/r" + rid + "/s" + tmp[1]); }else if(refrere.match(/t(\d+)\//)){//直通车详情页 var tmp = refrere.match(/t(\d+)\//); location.href = refrere.replace("/t" + tmp[1], "/r" + rid + "/t" + tmp[1]); }else if(refrere.match(/\/gct\/g(\d+)\//)){//购车团详情页 location.href = refrere.replace("/gct/", "/gct/r" + rid + "/"); }else if(refrere.indexOf('/train/') >= 0){//购车券列表页 location.href = mallRoot + "/train/r" + rid + "/"; }else if(refrere.indexOf('/gct/') >= 0){//购车团列表页 location.href = mallRoot + "/gct/r" + rid + "/"; }else if(refrere.indexOf('/chezhan/') >= 0){//车展活动列表页 location.href = mallRoot + "/chezhan/r" + rid + "/"; }else{ location.href = mallRoot; } } function getQueryString(name) {//获取当前链接中某参数的值 var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = window.location.search.substr(1).match(reg); if (r != null) { return unescape(r[2]); } return null; } </script> <!-- 引入个人声明相关的脚本Start --> <script> function statementControl_autoMallPc(checkId,id,id2){ $(checkId).click(function() { if(this.checked == true){ $(id).show(); $(id2).hide(); }else{ $(id).hide(); $(id2).show(); } }); } </script> <!-- 引入个人声明相关的脚本End --> <script> function changeCaptcha(_this) { _this.src = '//captcha.pcauto.com.cn/captcha/v.jpg?' + new Date().getTime(); } function checkLogin(){ $.getJSON("/autoMall/interface/check_login.jsp",function(json){ if(json && json.status==1){ window.location.href="/autoMall/user_order.jsp"; }else{ showLoginDialog(); } }); } function showLoginDialog(){ if(document.getElementById("pop_captcha")){ $(".loginno").css("height", "auto"); $(".loginno form").css("height", "auto"); $(".loginno .ewmdiv").css("height", "134px"); } $('.loginno').show(); $('.covers').show(); } function closeLoginDialog(){ $('.loginno').hide(); $('.covers').hide(); } //提交登录事件 var loginFlag = true; $('#pop_btn').bind('click', function(){ if(loginFlag){ loginFlag = false; var phone = $('#pop_phone').val(); var msgCode = $('#pop_msgcode').val(); if(!loginCheckPhone() || !loginCheckMsgCode()){ loginFlag = true; return; } //加js判断验证码正确性 var url = "/autoMall/activity/action/do_login.jsp"; $.post(url,{phone:phone,msgCode:msgCode},function(msg){ var code = msg.code; if(code == 1){ window.location.href="/autoMall/user_order.jsp"; }else{ showErrorMsg("pop_msgcode_err", "输入验证码错误"); loginFlag = true; } },"json"); } }); var msgCodeTag = true; //发送短信事件 $('#pop_msgcode_btn').click(function(){ var self = $(this); if(msgCodeTag){ msgCodeTag = false; //ajax here var url = "/autoMall/activity/action/do_msg.jsp"; var phone = $("#pop_phone").val(); var captcha = ""; if(document.getElementById("pop_captcha")){ captcha = $("#pop_captcha").val(); } if(!loginCheckCaptcha() || !loginCheckPhone()){ msgCodeTag = true; return ; } $.post(url,{phone:phone,captcha:captcha},function(msg){ var code = msg.code; if(code == -3){ showErrorMsg("pop_captcha_err", "请输入图片验证码"); msgCodeTag = true; }else if(code == -2){ showErrorMsg("pop_captcha_err", "请输入正确的图片验证码"); msgCodeTag = true; }else if(code == -1){ showErrorMsg("pop_captcha_err", "您太频繁操作,请休息一下"); msgCodeTag = true; }else if(code == 1){ hideErrorMsg("pop_captcha_err"); var second = 60; setTimeout(function(){ if(second >= 0){ self.css({'color' : '#999', 'cursor' : 'default'}); self.text(second + '秒后重发'); second -= 1; setTimeout(arguments.callee, 1000); }else{ self.css({'color' : '#333', 'cursor' : 'pointer'}); self.text('获取验证码'); second = 60; msgCodeTag = true; } }, 0); }else{ showErrorMsg("pop_captcha_err", "验证码发送失败,请稍后再试!"); msgCodeTag = true; } },"json"); } return false; }); function loginCheckMsgCode(){ var msgCode = $("#pop_msgcode").val(); if(msgCode == "" || msgCode == "请输入六位验证码" || msgCode.length != 6){ showErrorMsg("pop_msgcode_err", "请输入六位验证码"); return false; }else{ hideErrorMsg("pop_msgcode_err"); return true; } } function loginMsgCodeKeyup(){ var pattern = /^\d{0,6}$/; var msgCode = $("#pop_msgcode").val(); if(!pattern.test(msgCode)){ var len = ((msgCode.length-1) > 6) ? 6 : (msgCode.length-1); $("#pop_msgcode").val(msgCode.substring(0, len)); } } function loginCheckPhone(){ var pattern = /(^[0-9]{3,4}\-[0-9]{5,8}$)|(^0{0,1}1[0-9]{10}$)/; var phone = $("#pop_phone").val(); if(phone == "" || phone == '请填写11位数字的手机号码'){ showErrorMsg("pop_phone_err", "请填写11位数字的手机号码"); return false; }else if(!pattern.test(phone)){ showErrorMsg("pop_phone_err", "请输入正确格式的手机号码"); return false; }else{ hideErrorMsg("pop_phone_err"); return true; } } function loginPhoneKeyup(){ var pattern = /^\d{0,11}$/; var phone = $("#pop_phone").val(); if(!pattern.test(phone)){ var len = ((phone.length-1) > 11) ? 11 : (phone.length-1); $("#pop_phone").val(phone.substring(0, len)); } } function loginCheckCaptcha(){ if(!document.getElementById("pop_captcha")){ return true; } var captcha = $("#pop_captcha").val(); if(captcha == '' || captcha == '请输入图片验证码'){ showErrorMsg("pop_captcha_err", "请输入图片验证码"); return false; }else{ hideErrorMsg("pop_captcha_err"); return true; } } function loginCaptchaKeyup(){ var captcha = $("#pop_captcha").val(); if(captcha.length > 5){ var len = ((captcha.length-1) > 5) ? 5 : (captcha.length-1); $("#pop_captcha").val(captcha.substring(0, len)); } } function showErrorMsg(tagId, text){ $("#"+tagId+" em").show(); $("#"+tagId+" span").html(text); } function hideErrorMsg(tagId){ $("#"+tagId+" em").hide(); $("#"+tagId+" span").html(""); } statementControl_autoMallPc('#chkSM_mall_login','#pop_btn', '#pop_btn_disabled'); $(window).bind('scroll', function(){ if($(window).scrollTop() > document.documentElement.clientHeight){ $('#backtop').css('display', 'block'); }else{ $('#backtop').css('display', 'none'); } }); </script> <script> function count(){ var img = new Image; img.src = "//count.pcauto.com.cn/count.php?channel=229&screen="+screen.width+"*"+screen.height+"&refer="+encodeURIComponent(document.referrer)+"&anticache="+new Date().getTime()+"&url="+encodeURIComponent(location.href)+"&from=event"; } </script> <!--参团弹框 S--> <script> function popalt(gcId){ $('.ewmtkpop').show(); $("#qrCode").attr("src","//mall.pcauto.com.cn/autoMall/interface/generate_qr_code.jsp?url="+location.protocol+"//m.pcauto.com.cn/mall/super/r"+ REGION_ID +"/s"+ gcId +"/"); $('.covers').show(); } $('.ewmtkpop i').click(function(){ $('.ewmtkpop').hide(); $('.covers').hide(); }) </script> <!--参团弹框 E--> <script src="//ivy.pconline.com.cn/adpuba/show?id=auto.qcsc.jdt.&media=js&channel=inline&trace=1"></script> <script src="//ivy.pconline.com.cn/adpuba/show?id=auto.qcsc.dt.&media=js&channel=inline&trace=1"></script> <script src="//ivy.pconline.com.cn/adpuba/show?id=auto.qcsc.syjdt.&media=js&channel=inline&trace=1"></script> <script src="//ivy.pconline.com.cn/adpuba/show?id=auto.qcsc.tgtwk.&media=js&channel=inline&trace=1"></script> <!--页面脚本区E--> <div class="bottom"> <script src="//www.pcauto.com.cn/global/footer/index.html" class=" defer"></script> <script>_submitIvyID();</script> </div> </body> </html>