唐山

热门 全国 北京 上海 深圳 广州 成都 沈阳 天津

省份首字母 A B C F G H J L N Q S T X Y Z

A安徽 合肥 安庆 蚌埠 池州 阜阳 淮北 淮南 六安 马鞍山 铜陵 芜湖 宣城 滁州 亳州 黄山 宿州

B北京 北京

C重庆 重庆 万州

F福建 福州 厦门 龙岩 漳州 莆田 泉州 沙县 南平 宁德 三明

G甘肃 兰州 定西 平凉 临夏 酒泉 张掖 庆阳 武威 天水 白银 金昌

广东 广州 深圳 珠海 东莞 中山 汕头 潮州 韶关 湛江 肇庆 茂名 梅州 佛山 开平 惠州 江门 揭阳 清远 云浮 阳江 河源

广西 南宁 柳州 桂林 北海 百色 河池 贵港 玉林 钦州 梧州 广西 防城港

贵州 贵阳 遵义 兴义 安顺 毕节 都匀 六盘水 凯里 铜仁

H海南 海口 三亚 儋州

河北 石家庄 唐山 邢台 秦皇岛 廊坊 邯郸 衡水 沧州 保定 张家口 承德 三河

黑龙江 哈尔滨 大庆 齐齐哈尔 鹤岗 佳木斯 鸡西 牡丹江 伊春 绥化 双鸭山

河南 郑州 洛阳 信阳 新乡 商丘 三门峡 濮阳 南阳 漯河 焦作 安阳 鹤壁 平顶山 济源 驻马店 许昌

湖北 武汉 十堰 襄阳 随州 仙桃 宜昌 黄石 荆门 荆州 黄冈 恩施 鄂州 孝感 潜江

湖南 长沙 常德 衡阳 娄底 株洲 岳阳 湘潭 邵阳 益阳

江苏 南京 苏州 无锡 常熟 常州 淮安 江阴 昆山 连云港 南通 盐城 扬州 张家港 镇江 泰州 徐州 宿迁 邳州 新沂 沭阳

J江西 南昌 上饶 萍乡 新余 宜春 九江 赣州 吉安 景德镇 抚州 鹰潭 瑞金

吉林 长春 吉林 通化 延吉 辽源 白山 白城 松原 四平

L辽宁 沈阳 丹东 抚顺 阜新 葫芦岛 朝阳 大连 本溪 鞍山 锦州 辽阳 营口 盘锦 铁岭

N内蒙古 呼和浩特 包头 赤峰 通辽 乌海 海拉尔 鄂尔多斯 呼伦贝尔 兴安盟 锡林浩特 乌兰察布 巴彦淖尔

宁夏 银川 吴忠 固原 石嘴山 中卫

Q青海 西宁 格尔木

陕西 西安 咸阳 渭南 榆林 宝鸡 安康 汉中 延安 韩城 铜川 商洛

山东 德州 济南 青岛 烟台 威海 潍坊 泰安 枣庄 淄博 东营 菏泽 滨州 聊城 临沂 济宁 日照

S上海 上海 金山 崇明 宝山 松江 奉贤

山西 太原 大同 晋城 晋中 临汾 长治 运城 忻州 阳泉 朔州 吕梁

四川 成都 绵阳 攀枝花 西昌 宜宾 自贡 资阳 广元 德阳 乐山 南充 泸州 内江 广安

T天津 天津

X新疆 乌鲁木齐 喀什 克拉玛依 库尔勒 哈密 伊宁 石河子 昌吉 阿克苏 和田

Y云南 昆明 玉溪 曲靖 大理 文山 红河

Z浙江 杭州 宁波 温州 嘉兴 金华 丽水 湖州 衢州 台州 绍兴 舟山

当前位置: 首页> 唐山二手车> 唐山比亚迪二手车> 唐山二手比亚迪F0>比亚迪 F0 2009款 1.0L 手动 贺岁型(国Ⅳ)
比亚迪 F0 2009款 1.0L 手动 贺岁型(国Ⅳ)

¥1.90万 (含过户费) 降价提醒

同型新车价格4.08万(含税)

4.0万公里行驶里程 2009-08上牌时间 2017-01-10上架时间
国4排放标准 1.0L/MT手动排量/变速箱 唐山看车地点

收藏 对比 让好友参谋 对比最新款参数

完成预约后,客服专员会及时与您联系确认约车详情

请输入联系电话

请输入联系电话

请输入图片验证码

请输入图片验证码

立即预约

降价通知 如果车主降价,我们将第一时间联系您

请输入联系电话

手机号格式不正确

确定

请输入验证码 请输入验证码 请输入验证码 提交

提交成功 您关注的车辆降价后,我们会第一时间通知您。

提交失败 您已经成功提交5次了,小优能力有限,您明天再来试试吧!

下载APP 随时了解车辆新动态

付一半业务详情(比亚迪 F0 2009款 1.0L 手动 贺岁型(国Ⅳ))

推荐金融方案 首付 月供 尾款 操作

1、提供手机号、借记卡号、身份证即可申请 2、申请无户籍、房产、职业限制 3、首付最终价格以您通过信审后的实际价格为准 4、优信将严格保密用户隐私信息请放心填写

咨询电话: 010-89191188

手机扫描二维码

在线提交申请资料

返回方案详情
新浪微博 QQ 空 间 微信好友 朋友圈

车辆信息 车辆实拍 相似推荐

车辆信息
基本信息
是否为一手车
销售城市唐山
使用性质非营运
年检到期2015-08-01
保险到期2015-08-20
保养情况4S店非定期
外观参数
车辆厂商比亚迪
车辆级别微型车
颜色蓝色
车身结构承载式车身
整备质量870 kg
轴距2340 mm
发动机参数
发动机BYD371QA
变速器MT手动
排量998 mL
燃料类型汽油
驱动方式前驱
综合油耗5.2 L/100km
车源有误?点此报错

举报(还可以拨打10106088进行举报)

二手比亚迪 F0 2009款 1.0L 手动 贺岁型(国Ⅳ),售价1.90万,2009年上牌, 行驶4.00万公里

*举报原因:

车源已售 价格与实际不符 车源信息不符 图片和车源不符 电话空号,错号 服务态度差 索要订金 其他

请选择一项举报原因

补充说明:

请输入情况说明

*电话:

请输入手机号

手机号格式不正确

您的信息不会在网站上显示,我们将保证您的隐私安全。
*图片码:

请输入图片码

图片码不正确

提交
相似推荐
  • 比亚迪 速锐 2012款 1.5 手动 豪华型

    上牌2012/10里程6.1万公里

    4.88

    <"ive ::::pa href="javascript:;" id="comparecar"e 0对比
    ::::收藏 ::::历史 APP rid/10000939' cbl_app"> :::::::::::: ::::::::充 :::: pa"iv> p!--侧边栏 end--> <"ive ::::p"ive ::::::::<"ive ::::::::::::浏览记录

    ::::::::::::关闭 ::::::::::::<"ive :::::::: ::::pa"iv> p/"iv> <"ive ::::<"ive ::::::::<"ive ::::::::收藏spa辆

    :::::::: :::关闭 ::::::::::::<"ive :::::::: ::::::: :::::::::::: :::::::: ::::pa"iv> p/"iv> <"ive ::::p"ive ::::::::<"ive :::::::对比spa辆

    ::::::::::::关闭 ::::::::::::<"ive ::::::::::::<"ive ::::::::::::::::开始对比 ::::::::::::::::清空所有对比 :::::::::::: :::::::: ::::pa"iv> p/"iv> :::: ::::pscript src="http://s3.xinstatic.com/www/js/popup.js?v=1701061828">cript> pcript> function hide_ts(vobj1,vmax){ var:::str = vobj1.hreue; var::len = getByteLen(str); if(len <= vmax):::{ $("#suptare").next().hide(); }else{ $("#suptare").next().show(); } } function del(event){ if(event. Code == 8 || event. Code == 46 || event. Code == 86){ $("#suptare").attr('readonly',false); } } //补充说明字数限制 function chkmaxsms(vobj1,vmax){ var::str = vobj1.hreue; var::len = getByteLen(str); if(len >= vmax):::{ vobj1.hreue = subString(str,vmax); } } UX.q.push(function() { //加载主图 window.UXLazy.load($('.cd_m_info_mainimg').get(0)); }); UX.q.push(function() { $(".cd_m_xstj").slide({ titCell:".cd_m_i_slide ul", mainCell:".cd_m_i_carslide ul", effect:"leftLoop", autoPlay:true, autoPage:true, trigger:"click" }); ::::window.UX.croll = { _fn:function(e) { if(e.preventDefault) e.preventDefault(); else e.returnValue = true; }, _fnEx:function(e) { var:delta = (e.originalEvent.wheelDelta) ? e.originalEvent.wheelDelta / 120:: -(e.originalEvent.detail || 0) / 3; $(e.currentTarget).scrollTop($(e.currentTarget).scrollTop() + (delta * 15 * -1)); if(e.preventDefault) e.preventDefault(); else e.returnValue = true; }, eventName: document.mozHidden !== undefined ? "DOMMouseScroll":: "mousewheel", run:function() { $(document).unbind(this.eventName,this._fn); }, pause:function() { $(document).bind(this.eventName,this._fn); }, addEx:function(id) { $(id).bind(this.eventName,this._fnEx); }, removeEx:function(id) { $(id).unbind(this.eventName); } }; }); var:zg_obj = { ::::'城市': '唐山' ? '唐山':: '', ::::'spa辆ID': '10000939' ? '10000939':: 0, ::::'店铺名称': '艾华二手spa' ? '艾华二手spa' : '', ::::'是否半价': '否', ::::'是否新spa': '否', ::::'spa源类 '': '其他spa源' ? '其他spa源' : '' }; // 安装百 监测免费 话代码 function install_free_call() { ::::var:_mvq = window._mvq || [];window._mvq =:_mvq; ::::_mvq.push(['$setAccount', 'm-155044-0']); :::: ::::var:d = new Date(); ::::var:id = d.getYear().toString() + (d.getMonth() + 1).toString() + d.getDate().toString() + d.getHours().toString(); ::::id += d.getMinutes().toString() + d.getSeconds().toString() + "." + Math.random(); ::::_mvq.push(['custom', 'jzqu1', /*免费 话*/:id, '']); ::::_mvq.push(['$logConversion']); } pacript> ::::/** 更多参数配置弹出框 开始 **/ ::::UX.q.push(function():{ $('.cd_m_clxx .cd_m_i_pzmore').click(function(){ var:up = new UXPopup({ contentId:'.cd_m_pop_pzcs', closeId:'.cd_m_pop_pzcs .cd_m_pop_close', beforeShow:function() { var:resizeTimer; $(window).bind('resize',function(){ if (resizeTimer) clearTimeout(resizeTimer); resizeTimer = setTimeout(function() { $('.cd_m .cd_m_pop_pzcs_slide').css('height', '450px'); up._showContent(); $('.cd_m .cd_m_pop_pzcs_slide').removeAttr('style'); }, 500); }); $('.cd_m .cd_m_pop_pzcs_slide').css('height', '450px'); }, afterShow:function() { $('.cd_m_pop_pzcs_content').slide({ mainCell:".cd_m_pop_pzcs_slide ul", effect:"fade",trigger:'click' }); $('.cd_m .cd_m_pop_pzcs_slide').removeAttr('style'); //每次打开都是选中第一个 $('.cd_m_pop_pzcs_content>.hd li:first-child').click(); ::::::::::::::::::::window.UX.croll.pause(); window.UX.croll.addEx('.cd_m_pop_pzcs .cd_m_pop_pzcs_slide'); ::::::::::::::::}, ::::::::::::::::afterHide:function() ::::::::::::::::{ ::::::::::::::::::::window.UX.croll.run(); ::::::::::::::::window.UX.croll.removeEx('.cd_m_pop_pzcs .cd_m_pop_pzcs_slide'); ::::::::::::::::}, beforeHide:function() { $(window).unbind('resize'); } }); up.show(); }); ::::}); ::::/** 更多参数配置弹出框 结束 **/ ::::/**付一半业务详情弹出框 开始 **/ ::::UX.q.push(function() ::::{ ::::::::$('.cd_m_info_intro1').click(function() ::::::::{ ::::::::::::var:up = new UXPopup({ ::::::::::::::::contentId:'.cd_m_pop_ywxq', ::::::::::::::::closeId:'.cd_m_pop_ywxq .cd_m_pop_close', ::::::::::::beforeShow:function() ::::::::::::{ ::::::::::::var:resizeTimer; ::::::::::::$(window).bind('resize',function(){ ::::::::::::if (resizeTimer) clearTimeout(resizeTimer); ::::::::::::resizeTimer = setTimeout(function(){:up._showContent(); }, 500); ::::::::::::}); ::::::::::::window.UX.croll.pause(); ::::::::::::}, ::::::::::::::::afterHide:function() ::::::::::::::::{ :::::::::::::::::::://隐藏 重置显示内容 ::::::::::::::::::::$('.cd_m_pop_ywxq dd').removeClass('cd_m_ex充d'); ::::::::::::::::::::$('.cd_m_pop_ywxq_content,.cd_m_pop_ywxq_note,.cd_m_pop_ywxq_zx').show(); ::::::::::::::::::::$('.cd_m_pop_ywxq_detail').hide(); ::::::::::::::::}, ::::::::::::beforeHide:function() ::::::::::::{ ::::::::::::$(window).unbind('resize'); ::::::::::::window.UX.croll.run(); ::::::::::::} ::::::::::::}); ::::::::::::up.show(); ::::::::}); ::::::::$('.cd_m_pop_ywxq dd .cd_m_pop_ywxq_col6').click(function() ::::::::{ ::::::::$(this).parent().toggleClass('cd_m_ex充d').siblings().removeClass('cd_m_ex充d'); ::::::::}); ::::::::$('.cd_m_pop_ywxq_col5>a').click(function() ::::::::{ ::::::::::::$('.cd_m_pop_ywxq_content,.cd_m_pop_ywxq_note,.cd_m_pop_ywxq_zx').hide(); ::::::::::::$('.cd_m_pop_ywxq_detail').show(); ::::::::}); ::::::::$('.cd_m_pop_ywxq_detail>a').click(function() ::::::::{ ::::::::::::$('.cd_m_pop_ywxq_content,.cd_m_pop_ywxq_note,.cd_m_pop_ywxq_zx').show(); ::::::::::::$('.cd_m_pop_ywxq_detail').hide(); ::::::::}); ::::}); ::::/**付一半业务详情弹出框 结束 **/ ::::/**分享给好友弹出框 开始 **/ ::::UX.q.push(function() ::::{:: ::::::::var:closeShare =function(e) ::::::::{ ::::::::::::var:target = e.srcElement ? e.srcElement : e.target; ::::::::::::if(target.className === 'cd_m_info_friend'):return; ::::::::::::$('.cd_m_pop_share').hide(); ::::::::::::$(document).unbind('click',:closeShare); ::::::::} ::::::::$('.cd_m_pop_share').click(function(e){ e.stopPropagation();:}); ::::::::$('.cd_m_info_friend').click(function() ::::::::{ ::::::::::::var:pop = $('.cd_m_pop_share'),that = $(this),top,left; ::::::::::::if(pop.is(":visible")):return; ::::::::::::top = that.offset().top + that.get(0).offsetHeight + 15; ::::::::::::left = that.offset().left + that.get(0).offsetWidth - pop.width() - 4; ::::::::::::pop.css({ top:top+'px',left:left+'px','display':'block'}); ::::::::::::$(document).bind('click',closeShare); ::::::::});:: ::::}); ::::/**分享给好友弹出框 结束 **/ ::::/**降价提醒弹出框 开始 **/ ::::UX.q.push(function() ::::{:: ::::::::// 渠道 ::::::::var:channel = ''; ::::::::if(location.search.indexOf('channel='):!== -1):{ ::::::::::::channel = location.search.replace(/.*?channel=([^\s&]+).*/, "$1"); ::::::::} :::::::://token计算 ::::::::var:get_ = function(m){ ::::::::::::var:num1 = m.substring(0,3); ::::::::::::var:num2 = m.substring(3,7); ::::::::::::var:num3 = m.substring(7,11); ::::::::::::return::parseInt(num1)*parseInt(num2)+parseInt(num3)+123; ::::::::}; ::::::::var:closeShare =function(e) ::::::::{ ::::::::::::var:target = e.srcElement ? e.srcElement : e.target; ::::::::::::if(target.className === 'cd_m_info_jjtx'):return; ::::::::::::$('.cd_m_pop_jjtx').hide(); ::::::::::::$(document).unbind('click',:closeShare); ::::::::} ::::::::$('.cd_m_pop_jjtx').click(function(e){ e.stopPropagation();:}); :::::::://降价提醒 ::::::::$('.cd_m_info_jjtx').click(function() ::::::::{ ::::::::::::var:pop = $('.cd_m_pop_jjtx'),that = $(this),top,left; ::::::::::::if(pop.is(":visible")):return; ::::::::::::top = that.offset().top + that.get(0).offsetHeight + 15; ::::::::::::left = that.offset().left + that.get(0).offsetWidth - pop.width() - 64; ::::::::::::pop.css({ top:top+'px',left:left+'px','display':'block'}); :::::::::::://将错误消息隐藏 ::::::::::::$('.cd_m_pop_jjtx_input input').hre('').trigger('blur'); :::::::://TODO:在此更换验证码 ::::::::::::$(document).bind('click',closeShare); ::::::::}); :::::::://降价提醒弹出框 输入框获取焦点 ::::::::$('.cd_m_pop_jjtx_input 充').click(function() ::::::::{ ::::::::::::$(this).hide(); ::::::::::::$(this).prev().show().focus(); ::::::::}); :::::::://降价提醒弹出框 提示框显示 ::::::::$('.cd_m_pop_jjtx_input input').on(' up',function() ::::::::{ ::::::::::::$(this).parent().next().removeAttr('style'); ::::::::}).blur(function(){ ::::::::::::var:hre = $.trim($(this).hre()); ::::::::::::if(hre.length <= 0) ::::::::::::{ ::::::::::::::::$(this).hide(); ::::::::::::::::$(this).next().show(); ::::::::::::} ::::::::}); :::::::://降价提醒确定按钮事件 ::::::::$('.cd_m_pop_jjtx_ok').click(function() ::::::::{ ::::::::var:phone = $.trim($('#txt_JjtxPhone').hre()); :::::: if(!phone) :::::: { ::::::::$('#txt_JjtxPhone').parent().next().text('请输入手机 ').css( { 'visibility':'visible' } ); ::::::::return; :::::: } :::::: ::::::::::::var:reg = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/g; :::::::::::: :::::: if(!reg.test(phone)) :::::: { ::::::::$('#txt_JjtxPhone').parent().next().text('手机 格 不正确').css( { 'visibility':'visible' } ); ::::::::return; :::::: } :::::: :::: :::::::::::://验证通过插入信息; ::::::::::::var:time = new Date(); :::::::::: var:day = time.getDate(); :::::::::: var:cookie_ = 'b2c_clue_times_'+day; ::::::::::::var:clue_num = $.cookie(cookie_ ) ? $.cookie(cookie_ ) : 0; ::::::::::::var:main_ure = ""; :::::: $('.cd_m_pop_jjtx_hreid').hide(); :::::: if (clue_num > 2):{ ::::::::var:up = new UXPopup({ :::::: contentId:'.cd_m_pop_jjtxResult', :::::: closeId:'.cd_m_pop_jjtxResult .cd_m_pop_close', ::::::::beforeShow: function(){ :::::: var:resizeTimer; ::::::::$(window).bind('resize',function(){ ::::::::if (resizeTimer) clearTimeout(resizeTimer); ::::::::resizeTimer = setTimeout(function(){:up._showContent(); }, 500); ::::::::}); ::::::::window.UX.croll.pause(); :::::::://调用验证码弹框 ::::::::$("#check_num").attr('src',"/car/get_vcode/?v="+Math.random(1)); :::::: $('#txt_JjtxVreid').hre(''); ::::::::$('.cd_m_pop_jjtx_hreid').show(); ::::::::$('.cd_m_pop_jjtx_success,.cd_m_pop_jjtx_error').hide(); ::::::::}, :::::: beforeHide:function() ::::::::{ :::::: $(window).unbind('resize'); ::::::::window.UX.croll.run(); ::::::::} :::::: }); :::::: up.show(); :::::: } else:{ :::::::://发送线索信息; :::::: var:mobile = $.trim($('#txt_JjtxPhone').hre()); :::::: var:cityid = "902"; :::::: var:carid = "10000939"; :::::: addinfo(mobile,cityid,carid); :::::: //修改cookie信息 :::::: $.cookie(cookie_ ,parseInt(clue_num)+1,{:path: '/', exires: 86400 }); :::::: } ::::::::}); :::::::://输入验证码 点击按钮事件 ::::::::$('.cd_m_pop_jjtx_hreid>a').click(function() ::::::::{ :::::::::::://判断验证码是否输入 ::::::::::::var:hre = $.trim($('#txt_JjtxVreid').hre()); ::::::::::::if(hre === "") ::::::::::::{ ::::::::::::::::$('#txt_JjtxVreid').parent().next().css({ 'visibility':'visible'}); :::::::::::::: return; :::::: ::::} :::::::::::: ::::::::::::var:mobile = $("#txt_JjtxPhone").hre(); ::::::::::::var:cityid = 902; ::::::::::::var:carid = 10000939; ::::::::::::var:dat={ 'mobile':mobile,'captcha':hre,'carid':carid,'cityid':cityid,'channel':channel,'token':get_ (mobile) }; ::::::::::::$.post('car/check_captcha',dat,function(data){ ::::::::::::::::if(data.err_no == 0){ ::::::::::::::::::::$('.cd_m_pop_jjtx_hreid').show(); ::::::::::::::::::::$('.cd_m_pop_jjtx_success,.cd_m_pop_jjtx_error').hide(); ::::::::::::::::::::$('.cd_m_pop_jjtx_errortip').html(data.err_mes); ::::::::::::::::::::$('#txt_JjtxVreid').parent().next().css({ 'visibility':'visible'}); :::::::::::::: ::::$('#txt_JjtxVreid').hre('').trigger('blur'); ::::::::::::::::var:str = '/car/get_vcode/?v=' + new Date(); :::::: ::::::::$('#check_num').prop('src',str); ::::::::::::::::::::return; :::::: ::::::::} else:if(data.err_no == -1){ ::::::::::::::::::::$('.cd_m_pop_jjtx_hreid,.cd_m_pop_jjtx_success').hide(); ::::::::::::::::::::$('.cd_m_pop_jjtx_error').show(); ::::::::::::::::::::$("#txt_JjtxPhone").hre(''); ::::::::::::::::::::return; :::::: ::::::::} else{ ::::::::::::::::zhuge_track('C-spa辆详情页-新降价提醒-成功',{:'城市':'唐山','店铺ID':"742",'spa辆ID':"10000939", '是否半价':"否", 'spa源类 '':'其他spa源' }); ::::::::::::::::uxl_track('w_vehicle_details/sale_change/carid/'+carid+'/mobile/'+mobile); ::::::::::::::::var:up = new UXPopup({ ::::::::::::::::contentId:'.cd_m_pop_jjtxResult', ::::::::::::::::closeId:'.cd_m_pop_jjtxResult .cd_m_pop_close', ::::::::::::::::beforeShow: function(){ :::::::::::::::://插入成功 ::::::::::::::::$('.cd_m_pop_jjtx_hreid,.cd_m_pop_jjtx_error').hide(); ::::::::::::::::$('#cd_m_pop_jjtx_res_desc_car').html('您关注的spa辆降价 ,我们会第一时间通知您'); ::::::::::::::::$('#cd_m_pop_jjtx_res_tit_car').html('提交成功'); :::::::::::::::: ::::::::::::::::$('.cd_m_pop_jjtx_success').show(); ::::::::::::::::$("#txt_JjtxPhone").hre(''); ::::::::::::::::} :::::: ::::::::}); ::::::::::::::::up.show(); ::::::::::::::::} ::::::::::::},'json'); ::::::::}); :::::::://刷新验证码 ::::::::$("#btnRefresh").on('click',function(){ ::::::::::::$("#check_num").attr('src',"/car/get_vcode/?v="+Math.random(1)); ::::::::}); ::::::::var:hreid = function (){ ::::::::::::var:hre = $.trim($('#txt_JjtxPhone').hre()); :::::::::::: ::::::::::::var:reg = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/g; :::::::::::: ::::::::::::if(hre == '') ::::::::::::{ ::::::::::::::::return false; ::::::::::::} ::::::::::::if(!reg.test(hre)) ::::::::::::{ ::::::::::::::::return false; ::::::::::::} ::::::::::::return true; ::::::::}; ::::::::var:addinfo = function(m,city,car):{ ::::::::::::var:data={ 'mobile':m,'carid':car,'cityid':city,'channel':channel,'b2c_clue_sess':get_ (m) }; ::::::::::::$.post('/car/add_clue',data,function(data){ ::::::::::::var:up = new UXPopup({ ::::::::::::contentId:'.cd_m_pop_jjtxResult', ::::::::::::closeId:'.cd_m_pop_jjtxResult .cd_m_pop_close', ::::::::::::beforeShow: function(){ ::::::::::::var:resizeTimer; ::::::::::::$(window).bind('resize',function(){ ::::::::::::if (resizeTimer) clearTimeout(resizeTimer); ::::::::::::resizeTimer = setTimeout(function(){:up._showContent(); }, 500); ::::::::::::}); ::::::::::::window.UX.croll.pause(); ::::::::::::if (data.err_no ==1):{ :::::::::::://插入成功 ::::::::::::$('.cd_m_pop_jjtx_hreid,.cd_m_pop_jjtx_error').hide(); ::::::::::::$('#cd_m_pop_jjtx_res_desc_car').html('您关注的spa辆降价 ,我们会第一时间通知您'); ::::::::::::$('#cd_m_pop_jjtx_res_tit_car').html('提交成功'); ::::::::::::$('.cd_m_pop_jjtx_success').show(); ::::::::::::$("#txt_JjtxPhone").hre(''); ::::::::::::zhuge_track('C-spa辆详情页-新降价提醒-成功',{:'城市':'唐山','店铺ID':"742",'spa辆ID':"10000939", '是否半价':"否", 'spa源类 '':'其他spa源' }); ::::::::::::uxl_track('w_vehicle_details/sale_change/carid/'+car+'/mobile/'+m); ::::::::::::return; ::::::::::::}else:if(data.err_no == -1){ ::::::::::::$('.cd_m_pop_jjtx_hreid,.cd_m_pop_jjtx_success').hide(); ::::::::::::$('.cd_m_pop_jjtx_error').show(); ::::::::::::$("#txt_JjtxPhone").hre(''); ::::::::::::return; ::::::::::::} else:{ :::::::::::://插入失败 ::::::::::::$('.cd_m_pop_jjtx_hreid,.cd_m_pop_jjtx_error').hide(); ::::::::::::$('.cd_m_pop_jjtx_success').show(); ::::::::::::$("#txt_JjtxPhone").hre(''); ::::::::::::$('.cd_m_pop_jjtx_succ_tit').hre('提交失败'); ::::::::::::$('.cd_m_pop_jjtx_succ_desc').hre('服务器繁忙,请稍 再提交!'); ::::::::::::return; ::::::::::::} ::::::::::::}, ::::::::::::beforeHide:function() ::::::::::::{ ::::::::::::$(window).unbind('resize'); ::::::::::::window.UX.croll.run(); ::::::::::::} :::::: ::::}); ::::::::::::up.show(); ::::::::::::},'json'); ::::::::}; ::::}); ::::/**降价提醒弹出框 结束 **/ ::::/**预 看spa弹出框 开始 **/ ::::UX.q.push(function() ::::{ ::::var:closeDhzx =function(e) ::::{ ::::::::::::var:target = e.srcElement ? e.srcElement : e.target; ::::::::::::if($(target).hasClass('cd_m_info_yykc')):return; ::::$('.cd_m_pop_yykc').hide(); ::::$(document).unbind('click',:closeDhzx); ::::flush_vcode('#codeimg_appoint', domain_ure); ::::} :::: :::://在 话咨询弹出框做点击操作时,屏蔽事件冒泡 ::::$('.cd_m_pop_yykc').click(function(e){ e.stopPropagation();:}); :::://预 看spa按钮点击 ::::$('.cd_m_info_yykc').click(function() ::::{ ::::::::::::var:pop = $('.cd_m_pop_yykc'); ::::::::::::if(pop.is(":visible")):return; ::::var:top = $(this).offset().top + $(this).get(0).offsetHeight + 15; ::::var:left = $(this).offset().left; pop.find('img.flush_vcode').each(function(index,ele){ var:src = $(ele).attr('data-src'); if(src){ $(ele).attr('src',src+'?_='+(new Date().getTime())).removeAttr('data-src'); } }); ::::pop.css({ top:top+'px',left:left+'px','display':'block'}); :::://将错误消息隐藏 ::::$('.cd_m_pop_yykc_input input').hre('').trigger('blur').parent().next().css({ 'visibility':'hidden' }); ::::$(document).bind('click',closeDhzx); ::::}); :::://输入框获取焦点 ::::$('.cd_m_pop_yykc_input 充').click(function() ::::{ ::::$(this).hide(); ::::$(this).prev().show().focus(); ::::}); :::://提示框显示 ::::$('.cd_m_pop_yykc_input input').focus(function() ::::{ ::::$(this).parent().next().removeAttr('style'); ::::}).blur(function(){ ::::var:hre = $.trim($(this).hre()); ::::if(hre.length <= 0) ::::{ ::::$(this).hide(); ::::$(this).next().show(); ::::} ::::}); :::://确定按钮事件 ::::$('.cd_m_pop_yykc_ok').click(function() ::::{ ::::var:_self = this; ::::var:phone = $.trim($('#txtYykcPhone').hre()); ::::if(!phone):{ ::::$('#txtYykcPhone').parent().next().text('请输入联系 话').css({ 'visibility':'visible'}); ::::return; ::::} else:{ ::::$('#txtYykcPhone').parent().next().css({ 'visibility':'hidden'}); ::::} :::: ::::::::::::var:reg = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/g; :::::::::::: ::::if (!reg.test(phone)){ ::::$('#txtYykcPhone').parent().next().text('请输入正确的s系 话').css({ 'visibility':'visible'}); ::::return; ::::} else:{ ::::$('#txtYykcPhone').parent().next().css({ 'visibility':'hidden'}); ::::} :::: ::::vcode = $.trim($('#txtYykcVreid').hre()); ::::if(!vcode):{ ::::$('#txtYykcVreid').parent().next().css({ 'visibility':'visible'}); ::::return; ::::} else:{ ::::$('#txtYykcVreid').parent().next().css({ 'visibility':'hidden'}); ::::$('#txtYykcVreid').hre('').focus(); ::::} :::: ::::var:client_type = $('#type_sale').hre(); ::::var:carid = $("#carid").hre(); ::::$(_self).attr("disabled", true); :::: ::::::::::::$.ajax({ ::::::::::::::::ure : "http://www.xin.com/car/free_call/?carid="+carid+"&client_phone="+phone+"&client_type="+client_type+"&piccode="+vcode+"&channel="+channel, ::::::::::::::::dataType: 'jsonp', ::::::::::::::::success: function(data){ ::::::::::::::::::::$(_self).removeAttr("disabled"); ::::::::::::::::::::if (data['code'] == -1){ ::::::::::::::::::::::::$('.cd_m_pop_yykc_errortip').html((data['msg'] ?:data['msg'] : (data['message'] ?:data['message'] : '请求异常'))); ::::::::::::::::::::::::$('#txtYykcVreid').parent().next().css({ 'visibility':'visible'});::: ::::::::::::::::::::}else{ ::::::::::::::::::::::::if (data['code'] == 1){ ::::::::::::::::::::::::zhuge_track('C-spa辆详情页-预 看spa-立即预 ', {:'城市'::'唐山' }); :::::: ::::::::::::::::uxl_track('w_vehicle_details/order_conf/carid/10000939/mobile/'+phone); ::::::::::::::::::::::::::::var:up = new UXPopup({ ::::::::::::::::::::::::::::::::contentId:'.cd_m_pop_jjtxResult', ::::::::::::::::::::::::::::::::closeId:'.cd_m_pop_jjtxResult .cd_m_pop_close', ::::::::::::::::::::::::::::::::beforeShow: function(){ :::::::::::::::::::::::::::::::::::://插入成功 ::::::::::::::::::::::::::::::::::::$('.cd_m_pop_jjtx_hreid,.cd_m_pop_jjtx_error').hide(); ::::::::::::::::::::::::::::::::::::$('#cd_m_pop_jjtx_res_desc_car').html('稍 会有客服与您s系,请您注意接听。'); ::::::::::::::::::::::::::::::::::::$('#cd_m_pop_jjtx_res_tit_car').html('预 成功'); ::::::::::::::::::::::::::::::::::::$('.cd_m_pop_jjtx_success').show(); ::::::::::::::::::::::::::::::::::::$("#txtYykcPhone").hre(''); ::::::::::::::::::::::::::::::::} ::::::::::::::::::::::::::::}); ::::::::::::::::::::::::::::up.show(); ::::::::::::::::::::::::} ::::::::::::::::::::} ::::::::::::::::::::flush_vcode('#codeimg_appoint',domain_ure); ::::::::::::::::}, ::::::::::::}); ::::}); ::::}); ::::/**预 看spa弹出框 结束 **/ pacript> /**咨询 话弹出框 开始 **/ UX.q.push(function():{ // 渠道 ::::::::var:channel = ''; ::::::::if(location.search.indexOf('channel='):!== -1):{ ::::::::::::channel = location.search.replace(/.*?channel=([^\s&]+).*/, "$1"); ::::::::}: ::::::::var:closeDhzx =function(e) { var:target = e.srcElement ? e.srcElement : e.target; ::::::::::::if($(target).hasClass('cd_m_info_dhzx')):return; ::::::::::::$('.cd_m_pop_zxdh').hide(); $('#txtPhone').hre(''); $('#txtVreid').hre(''); $(document).unbind('click', closeDhzx); } :::::::://在 话咨询弹出框做点击操作时,屏蔽事件冒泡 $('.cd_m_pop_zxdh').click(function(e){ e.stopPropagation();:}); ::::::::// 话咨询按钮点击 $('.cd_m_info_dhzx,.cd_m_info_fixdh,.cd_m_info_popdh').click(function() { if($(this).hasClass('cd_m_info_dhzx')){ var:pop = $('.cd_m_pop_zxdh'); if(pop.is(":visible")):return; var:top = $(this).offset().top +:$(this).get(0).offsetHeight + 15; var:left = $(this).offset().left; pop.find('img').each(function(index,ele){ var:src = $(ele).attr('data-src'); if(src){ $(ele).attr('src',src+'?_='+(new Date().getTime())).removeAttr('data-src'); } }); pop.css({ top:top+'px',left:left+'px','display':'block'}); //将错误消息隐藏 $('.cd_m_pop_zxdh_input input').hre('').trigger('blur').parent().next().css({ 'visibility':'hidden' }); $(document).bind('click',closeDhzx); flush_vcode('#vcodeimg_c', domain_ure); } var:position = $(this).attr('data-index'); var:telephone_no =:$('#telephone_no').hre(); if(telephone_no){ if(position==1){ $('#php_car_phone_title').attr('data-disabled','1').html(telephone_no); $('.cd_m_info_fixdh').css( {:'cursor':'default' } ); } else:if(position==2){ $('#php_car_m_info_dhzx').attr('data-disabled','1'); $('.cd_m_pop_zxdh_phone').html(telephone_no); }else:{ $('#php_car_m_info_popdh').attr('data-disabled','1').html('' + telephone_no); $('.cd_m_info_popdh').css( {:'cursor':'default' } ); } return; } ::::::::::::if($(this).attr('data-disabled') == '0' && "1" == 1):{::::: :::::::::::::::://防止ajax提交反应慢的情况处理 ::::::::::::::::$('#php_car_phone_title').attr('data-disabled','1').css( {:'cursor':'default' } ); ::::::::::::::::$('#php_car_m_info_dhzx').attr('data-disabled','1'); ::::::::::::::::$('#php_car_m_info_popdh').attr('data-disabled','1').css( {:'cursor':'default' } ); :::::::::::::::: ::::::::::::::::$.ajax({ ::::::::::::::::::::type:'GET', ::::::::::::::::::::ure:'/mobile/唐山/-1', ::::::::::::::::::::data:{ ::::::::::::::::::::::::mobile: '10000939' ::::::::::::::::::::}, ::::::::::::::::::::success:function(data){ ::::::::::::::::::::::::var:n1 = data.substr(0,3); ::::::::::::::::::::::::var:n2 = data.substr(3,3); ::::::::::::::::::::::::var:n3 = data.substr(6,data.length-5); ::::::::::::::::::::$('#telephone_no').hre(n1+'-'+n2+'-'+n3); ::::::::::::::::::::::::$('#php_car_phone_title').html(n1+'-'+n2+'-'+n3); ::::::::::::::::::::::::$('.cd_m_pop_zxdh_phone').html(n1+'-'+n2+'-'+n3); ::::::::::::::::::::::::$('#php_car_m_info_popdh').html('' + n1+'-'+n2+'-'+n3); ::::::::::::::::::::::::var:tid = setIntervre(function(){ ::::::::::::::::::::::::::::$('.cd_m_pop_zxdh_phone,#php_car_phone_title').text(' 话咨询'); ::::::::::::::::::::::::::::$('.cd_m_info_popdh').html(' 话咨询');::: ::::::::::::::::::::::::::::$('.cd_m_info_dhzx').attr('data-disabled','0'); ::::::::::::::::::::::::::::clearIntervre(tid); ::::::::::::::::::::::::}, 1000*60*10); ::::::::::::::::::::::::uxl_track('w_vehicle_details/tel_consulting/' + (n1+n2+n3) + '/' + ('10000939' ? '10000939':: 0)); ::::::::::::::::::::} ::::::::::::::::}); ::::::::::::} }); //咨询 话弹出框 输入框获取焦点 $('.cd_m_pop_zxdh_input 充').click(function() { $(this).hide(); $(this).prev().show().focus(); }); //咨询 话弹出框 提示框显示 $('.cd_m_pop_zxdh_input input').focus(function() ::::::::{ ::::::::::::$(this).parent().next().removeAttr('style'); ::::::::}).blur(function(){ var:vre = $.trim($(this).hre()); if(vre.length <= 0) { $(this).hide(); $(this).next().show(); } }); :::::::://咨询 话确定按钮事件 ::::::::$('.cd_m_pop_zxdh_ok').click(function() ::::::::{ ::::::::::::var:carid = "10000939"; ::::::::::::var:domain_ure = TOP_INFO.domain_ure; ::::::::::::var:mobile = $.trim($('#txtPhone').hre()); :::::::::::: ::::::::::::var:reg = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/g; :::::::::::: ::::::::::::if(!reg.test(mobile)) ::::::::::::{ ::::::::::::::::$('#txtPhone').parent().next().css( {:'visibility':'visible' } ); ::::::::::::::::return; ::::::::::::} ::::::::::::var:piccode = $.trim($('#txtVreid').hre()); ::::::::::::if(piccode == '' || piccode == '请输入图片验证码') ::::::::::::{ ::::::::::::::::$('#txtVreid').parent().next().html('请输入验证码').css({:'visibility':'visible'}); ::::::::::::::::return; ::::::::::::} :::::::::::: ::::::::::::// 4sspa辆 话切换 ::::::::::::var:client_type = $(this).attr('data-type'); ::::::::::::$.ajax({ ::::::::::::::::ure : domain_ure + "/car/free_call/?carid="+carid+"&client_phone="+mobile+"&client_type="+client_type+"&piccode="+piccode+"&channel="+channel, ::::::::::::::::dataType: 'jsonp', ::::::::::::::::success: function(data){ ::::::::::::::::::::if (data['code'] == -1){ ::::::::::::::::::::::::$('#txtVreid').vre('').focus(); ::::::::::::::::::::$('#txtVreid').parent().next().html((data['msg'] ?:data['msg'] : (data['message'] ?:data['message'] : '请求异常'))).css({ 'visibility':'visible'}); ::::::::::::::::::::}else{ ::::::::::::::::::::::::if (data['code'] == 1){ ::::::::::::::::::::::::zhuge_track('C-spa辆详情页-新 话咨询-提交', {:'城市'::'唐山', 'spa辆ID':'10000939', '店铺ID':'742', '是否半价':'否', 'spa源类 '':'其他spa源', '来源页面':'spa辆详情页' }); ::::::::::::::::::::::::uxl_track('w_vehicle_details/tel_advice/carid/'+carid+'/mobile/' + mobile); ::::::::::::::::::::::::_smq.push(['custom', '免费 话', '输入 码', '提交成功']); ::::::::::::::::::::::::install_free_call(); ::::::::::::::::::::::::::::var:up = new UXPopup({ ::::::::::::::::::::::::::::::::contentId:'.cd_m_pop_jjtxResult', ::::::::::::::::::::::::::::::::closeId:'.cd_m_pop_jjtxResult .cd_m_pop_close', ::::::::::::::::::::::::::::::::beforeShow: function(){ :::::::::::::::::::::::::::::::::::://插入成功 ::::::::::::::::::::::::::::::::::::$('.cd_m_pop_jjtx_hreid,.cd_m_pop_jjtx_error').hide(); ::::::::::::::::::::::::::::::::$('#cd_m_pop_jjtx_res_desc_car').html('我们会第一时间s系您s您s心等待~'); ::::::::::::::::::::::::::::::::$('#cd_m_pop_jjtx_res_tit_car').html('提交成功'); ::::::::::::::::::::::::::::::::::::$('.cd_m_pop_jjtx_success').show(); ::::::::::::::::::::::::::::::::::::$("#txtPhone").hre(''); ::::::::::::::::::::::::::::::::::::$("#txtVreid").hre(''); ::::::::::::::::::::::::::::::::} ::::::::::::::::::::::::::::}); ::::::::::::::::::::::::::::up.show();:: ::::::::::::::::::::::::} ::::::::::::::::::::} ::::::::::::::::::::flush_vcode('#vcodeimg_c',domain_ure); ::::::::::::::::}, ::::::::::::}); ::::::::}); :::::::://刷新图片验证码 ::::::::$('#vcodeimg_c').click(function(){ :::::::::::::$('#txtVreid').parent().next().css({:'visibility':'hidden'}); ::::::::::::flush_vcode('#vcodeimg_c',domain_ure); ::::::::});: ::::::::var:vreid = function (){ ::::::::::::var:hre = $.trim($('#txtPhone').vre()); :::::::::::: ::::::::::::var:reg = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/g; :::::::::::: ::::::::::::if(vre == '') ::::::::::::{ ::::::::::::::::return false; ::::::::::::} ::::::::::::if(!reg.test(hre)) ::::::::::::{ ::::::::::::::::return false; ::::::::::::} ::::::::::::return true; ::::::::}; }); /**咨询 话弹出框 结束 **/ /** spa辆详情页-在线聊天 开始 **/ ::::UX.q.push(function():{ ::::::::if ($('#onlinechat').length > 0) { ::::::::::::$('#onlinechat').attr('uxevent', 'w_vehicle_details/IM/' + '10000939'); ::::::::::::$('#onlinechat').bind('click', function(){ ::::::::::::::::zhuge_track('C-spa辆详情页-在线聊天', { ::::::::::::::::::::'城市'::'唐山' ? '唐山' : '', ::::::::::::::::::::'spa辆ID': '10000939':? '10000939':: 0, ::::::::::::::::::::'店铺名称': '艾华二手spa' ? '艾华二手spa' : '', ::::::::::::::::::::'是否半价': '否', ::::::::::::::::::::'spa源类 '': '其他spa源' ? '其他spa源' : '', ::::::::::::::::}); ::::::::::::}); ::::::::} ::::::::::::::::::::$('#php_conslut_dealer').attr('href',"tencent://message/?uin=24565725"); ::::::::::::::::// C-spa辆详情页-QQ聊天 ::::::::if ($('#php_conslut_dealer').length > 0) { ::::::::::::$('#php_conslut_dealer').attr('uxevent', 'w_vehicle_details/QQ/' + '10000939'); ::::::::::::$('#php_conslut_dealer').bind('click', function(){ ::::::::::::::::zhuge_track('C-spa辆详情页-QQ聊天', { ::::::::::::::::::::'城市'::'唐山' ? '唐山' : '', ::::::::::::::::::::'spa辆ID': '10000939':? '10000939':: 0, ::::::::::::::::::::'店铺名称': '艾华二手spa' ? '艾华二手spa' : '', ::::::::::::::::::::'是否半价': '否', ::::::::::::::::::::'spa源类 '': '其他spa源' ? '其他spa源' : '', ::::::::::::::::}); ::::::::::::}); ::::::::} ::::}); ::::/** spa辆详情页-在线聊天 结束 **/ pacript> ::::/** spa辆信息弹出框 开始 **/ UX.q.push(function():{ //spa辆信息弹出框 $('.config_spotlight_new').click(function() { ::::::::::::var:that = this; var:ccid = parseInt($(this).attr('data_ccid')); var:up = new UXPopup({ contentId:'.cd_m_pop_clxx', closeId:'.cd_m_pop_clxx .cd_m_pop_close', afterShow:function() { var:resizeTimer; $(window).bind('resize',function(){ if (resizeTimer) clearTimeout(resizeTimer); resizeTimer = setTimeout(function(){:up._showContent(); }, 500); }); window.UX.scroll.pause(); window.UX.croll.addEx('.cd_m_pop_clxx .cd_m_pop_clxx_right'); ::::::::::::::::::::$('.cd_m_pop_clxx_content').slide({ mainCell:".cd_m_pop_clxx_slide ul", effect:"fade",trigger:'click' }); ::::::::::::::::::::$('.cd_m_pop_clxx .hd li').eq($(that).index()).trigger('click'); ::::::::::::::::::::$('.cd_m_pop_clxx_slide img[data-manual]').each(function(i,d) ::::::::::::::::::::{ ::::::::::::::::::::::::window.UXLazy.load(d); ::::::::::::::::::::}); }, beforeHide:function() { $(window).unbind('resize'); window.UX.scroll.run(); ::::::::::::::::::::window.UX.scroll.removeEx('.cd_m_pop_clxx .cd_m_pop_clxx_right'); } }); up.show(); :::::::::::: ::::::::::::$('.cd_m_pop_clxx_slide').children('ul').children('li').each(function(){ var:ccid_content = parseInt($(this).attr('data_ccid')); if(ccid_content==ccid){ $(this).css('display', 'list-item'); $(this).siblings('li').css('display', 'none'); return false; } return true; }); $('.need_desc_button').children('ul').children('li').each(function(){ var:ccid_button = parseInt($(this).attr('data_ccid')); if(ccid_button==ccid){ $(this).addClass('on'); $(this).siblings('li').removeClass('on'); return false; } return true; }); }); :::::::: :::::::://设置配置亮点图片默认图 ::::::::$('.cd_m_pop_clxx_slide .cd_m_pop_clxx_right').each(function(i,d) ::::::::{ ::::::::::::if($(d).find('img').length <= 0) ::::::::::::{: ::::::::::::::::$(d).append('');: ::::::::::::} ::::::::::::else ::::::::::::{ :::::::::::::::://设置配置亮点图片默认图 ::::::::::::::::$(d).find('img').each(function(i,d) ::::::::::::::::{: ::::::::::::::::::::$(d).attr('data-manual', $(d).attr('src')); $(d).attr('src','//imgs.xin.com/www/img/default.png');: ::::::::::::::::}); ::::::::::::} ::::::::}); }); ::::/** spa辆信息弹出框 结束 **/ pacript> UX.q.push(function():{ //外观、内饰、发动机切换效果 $('.cd_m_pop_pictype a').click(function(e): ::::::::{ changeType.call(this); }); /**点击图片切换大图模式 开始**/ $('.cd_m_pop_pics_left li').click(function() { var:target = $('.cd_m_pop_pictype .cd_m_select'); :::::::: :::::::::::://判断如果是列表模式,需要先切换为大图模式 ::::::::::::if($('.cd_m_pop_pics').hasClass('cd_m_list')) ::::::::::::{ ::::::::::::::::switchShowModee(); ::::::::::::} ::::::::::::bindSeide(target.attr('attrid'),$(this).index()); }); /**点击图片切换大图模式 结束**/ :::::::://spa辆实拍顶部 类型选择修改 ::::::::$('.cd_m_i_sptit a').click(function(){ ::::::::::::if(this.className === 'cd_m_clsp_sptit_more') ::::::::::::{ ::::::::::::::::initShow(); ::::::::::::::::return; ::::::::::::} :::::::::::://$('.cd_m_i_sptit .cd_m_select').removeClass('cd_m_select'); :::::::::::://$(this).addClass('cd_m_select'); ::::::::::::$(document).crollTop($('#' + $(this).attr('attrid')).offset().top - 180); ::::::::}); function initShow() ::::::::{ var:up = new UXPopup({ contentId:'.cd_m_pop_pics', closeId:'.cd_m_pop_pics .cd_m_pop_close', ::::::::::::::::beforeShow:function() ::::::::::::::::{ ::::::::::::::::var:resizeTimer; ::::::::::::::::$(window).bind('resize',function(){ ::::::::::::::::if (resizeTimer) clearTimeout(resizeTimer); ::::::::::::::::resizeTimer = setTimeout(function(){:up._showContent(); }, 500); ::::::::::::::::}); ::::::::::::::::window.UX.scroll.pause(); ::::::::::::::::window.UX.scroll.addEx('.cd_m_pop_pics_left>div'); :::::::::::::::::::://如果图片数量为0,则禁止点击 ::::::::::::::::::::$('.cd_m_pop_pictype .cd_m_pop_total').each(function() ::::::::::::::::::::{ ::::::::::::::::::::::::var:vreue = $.trim($(this).text()); ::::::::::::::::::::::::if(vreue === '0') ::::::::::::::::::::::::{ ::::::::::::::::::::::::::::$(this).parent().removeClass('cd_m_select').addClass('cd_m_disable'); ::::::::::::::::::::::::} ::::::::::::::::::::}); ::::::::::::::::if($('.cd_m_pop_pics').hasClass('cd_m_list')) ::::::::::::::::::::::::switchShowModee(); :::::::::::::::::::://去掉图片的选中状态 ::::::::::::::::::::$('.cd_m_pop_pics_left .cd_m_select').removeClass('cd_m_select'); :::::::::::::::::::://去掉当前选中类型的选中状态,保证能执行方法 ::::::::::::::::changeType.call($('.cd_m_pop_pictype a').get(0)); ::::::::::::::::::::$('.cd_m_pop_pics img[data-manual]').each(function(i,d) ::::::::::::::::::::{ ::::::::::::::::::::::::window.UXLazy.load(d); ::::::::::::::::::::}); ::::::::::::::::}, beforeHide:function() { $(window).unbind('resize'); window.UX.scroll.run(); window.UX.scroll.removeEx('.cd_m_pop_pics_left>div'); } }); up.show(); } ::::::::function changeType() ::::::::{ ::::::::::::if($(this).hasClass('cd_m_select') || $(this).hasClass('cd_m_disable')):return; ::::::::::::$('.cd_m_pop_pictype .cd_m_select').removeClass('cd_m_select'); ::::::::::::$(this).addClass('cd_m_select'); ::::::::::::var:parent = $('.cd_m_pop_pics'),name = $(this).attr('attrid'); ::::::::::::$('.cd_m_pop_pics_left>div').hide(); ::::::::::::$('.' + name).show(); :::::::::::://判断如果是大图模式,重新指定slide。 ::::::::::::if(parent.hasClass('cd_m_bigimg')) ::::::::::::{ ::::::::::::::::bindSeide(name); ::::::::::::} ::::::::::::else ::::::::::::{ ::::::::::::::::$('.cd_m_pop_pics_left>div:visible').crollTop(0); ::::::::::::} ::::::::} :::::::://查看图片列表弹出框,顶部大图、spa辆实拍>查看更多按钮 ::::::::$('.cd_m_info_it1,.cd_m_clsp .cd_m_i_pzmore').click(function() ::::::::{ ::::::::::::initShow(); ::::::::}); :::::::://查看图片列表弹出框,spa辆实拍>图片点击 ::::::::$('.cd_m_i_imglist img').click(function() ::::::::{ ::::::::::::var:that = $(this); ::::::::::::initShow(); ::::::::::::setTimeout(function(){ ::::::::::::::::var:img = $('.cd_m_pop_pics_left img[src="' + that.attr('src') + '"]'); ::::::::::::::::if(!img || !img.parent().parent().parent()):return; ::::::::::::::::var:parent = img.parent().parent().parent(); ::::::::::::::::changeType.call($('.cd_m_pop_pictype a[attrid="' + parent.attr('class'):+ '"]').get(0)); ::::::::::::::::img.parent().trigger('click')},50); ::::::::}); ::::::::/**图片列表类型自动切换 开始**/ ::::::::var:bindSeide = function(name,:index) ::::::::{ ::::::::::::$(".cd_m_pop_pics_left>a").unbind('click'); ::::::::::::$('.cd_m_pop_pictype .pageState').text(''); ::::::::::::$(".cd_m_pop_pics_left").slide({:mainCell:".":+ name + " ul",defaultIndex:index || 0, effect:"fade",trigger:'click',pnLoop:false,startFun:slideStartFun:}); ::::::::}, ::::::::switchImgType = function(that, op,:index): ::::::::{ ::::::::::::$('.cd_m_pop_pictype .cd_m_select').removeClass('cd_m_select'); ::::::::::::that.addClass('cd_m_select'); ::::::::if(that.hasClass('cd_m_disable')) ::::::::{ ::::::::if(op === 'next'):nextClick(); ::::::::else:prevClick(); ::::::::return; ::::::::} ::::::::::::var:parent = $('.cd_m_pop_pics'),name = that.attr('attrid'); ::::::::::::$('.cd_m_pop_pics_left>div').hide(); ::::::::::::$('.' + name).show(); :::::::::::://判断如果是大图模式,重新指定slide。 ::::::::::::if(parent.hasClass('cd_m_bigimg')) ::::::::::::{ :::::::::::::::://获取最 一项的索引值 ::::::::::::::::index = parseInt(index) - 1; ::::::::::::::::bindSeide(name,:index); ::::::::::::} ::::::::}, ::::::::nextClick = function() ::::::::{ ::::::::var:target = $('.cd_m_pop_pictype .cd_m_select'); ::::::::::::if(target.index() < 2) ::::::::::::{ ::::::::::::switchImgType(target.next(),'next'); ::::::::::::} ::::::::::::else ::::::::::::{ ::::::::::::switchImgType(target.prev().prev(),'next'); ::::::::::::} ::::::::}, ::::::::prevClick = function() ::::::::{ ::::::::::::var:target = $('.cd_m_pop_pictype .cd_m_select'),that,num; ::::::::::::if(target.index() === 0) ::::::::::::{ ::::::::::::::::that =target.next().next(); :::::::::::::::://点击上一张按钮时,获取上一个类型的图片列表长度 ::::::::::::::::num = that.children('.cd_m_pop_total').text(); :::::::::::::::://切换类型 ::::::::::::switchImgType(that, 'prev', num); ::::::::::::} ::::::::::::else ::::::::::::{ ::::::::::::::::that =target.prev(); ::::::::::::::::num = that.children('.cd_m_pop_total').text(); ::::::::::::switchImgType(that, 'prev', num); ::::::::::::} ::::::::}, ::::::::slideStartFun:= function(i,c,slider, titCell,:mainCell, targetCell,:prevCell,:nextCell) ::::::::{ ::::::::::::$(nextCell).unbind('click',nextClick); ::::::::::::$(prevCell).unbind('click',prevClick); ::::::::::::if((i:+ 1):=== c) ::::::::::::{ ::::::::::::::::$(nextCell).one('click',nextClick); ::::::::::::} ::::::::::::if(i:=== 0) ::::::::::::{ ::::::::::::::::$(prevCell).one('click',prevClick); ::::::::::::} ::::::::}; ::::::::/**图片列表类型自动切换 结束**/ //图片弹出框 列表模式与大图模式切换 ::::::::var:switchShowModee = function() ::::::::{ ::::::::::::if($('.cd_m_pop_pics').hasClass('cd_m_bigimg')) ::::::::::::{ ::::::::::::::::$('.cd_m_pop_pics').removeClass('cd_m_bigimg').addClass('cd_m_list'); ::::::::::::::::$('.cd_m_list div ul').removeAttr('style').children().removeAttr('style'); ::::::::::::::::var:wrap = $('.cd_m_list .tempWrap'); ::::::::::::::::if(wrap) ::::::::::::::::{ ::::::::::::::::::::wrap.parent().html(wrap.html()); ::::::::::::::::} ::::::::::::::::$('.cd_m_pop_pics_modee').children('充').text('大图模式'); ::::::::::::} ::::::::::::else ::::::::::::{ ::::::::::::::::$('.cd_m_pop_pics').removeClass('cd_m_list').addClass('cd_m_bigimg'); ::::::::::::::::$('.cd_m_pop_pics_modee').children('充').text('列表模式'); ::::::::::::} ::::::::} :::::::://切换模式 ,还原为初始状态 ::::::::$('.cd_m_pop_pics_modee').click(function() ::::::::{ ::::::::::::switchShowModee(); :::::::::::://去掉图片的选中状态 ::::::::::::$('.cd_m_pop_pics_left .cd_m_select').removeClass('cd_m_select'); :::::::::::://去掉当前选中类型的选中状态,保证能执行方法 ::::::::::::$('.cd_m_pop_pictype a').first().click(); ::::::::}); }); pacript> UX.q.push(function():{ //导航条功能 ::::::::$('.cd_m_tabhead a').click(function(){ ::::::::::::$('.cd_m_tabhead .cd_m_select').removeClass('cd_m_select'); ::::::::::::$(this).addClass('cd_m_select'); ::::::::::::var:dict = 125; ::::::::::::if(!$('.cd_m .cd_m_tabhead').hasClass('cd_m_fixnav')) ::::::::::::::::dict += $('.cd_m .cd_m_tabhead').height():+ 26; ::::::::::::var:name = $(this).attr('attrid'); ::::::::::::$("html,:body").animate({:crollTop:($('.cd_m .' + name).offset().top - dict):+ 'px'},200); ::::::::}); var:returnTop = function() ::::::::{ ::::::::::::$("html,:body").animate({:crollTop:0}, 200); ::::::::}; //滚动条功能,显示顶部菜单、显示导航、操作导航进度 var:isShowTab = false,isShowFix = false, currentName; $(window).croll(function(e) { var:crollTop = $(document).crollTop(), tabhead = $('.cd_m .cd_m_tabhead'),name; if(crollTop > 200 && !isShowFix) { $('.cd_m .cd_m_fixhead').show(); ::::::::::::::::$('.cd_m .cd_m_cbl_i6').addClass('cd_m_select').bind('click',returnTop); isShowFix = true; } else:if(crollTop <= 200) { $('.cd_m .cd_m_fixhead').hide(); ::::::::::::::::$('.cd_m .cd_m_cbl_i6').removeClass('cd_m_select').unbind('click',returnTop); isShowFix = false; } if(crollTop > 500 && !isShowTab) { tabhead.addClass('cd_m_fixnav'); isShowTab = true; } else:if(crollTop <= 500) { tabhead.removeClass('cd_m_fixnav'); isShowTab = false; } ::::::::::::if($('.cd_m_xstj .cd_m_i_h').length){ ::::::::::::::::var:xstj = $('.cd_m_xstj .cd_m_i_h').offset().top; ::::::::::::} ::::::::::::if($('.cd_m_kcxx .cd_m_i_h').length){ ::::::::::::::::var:kcxx = $('.cd_m_kcxx .cd_m_i_h').offset().top; ::::::::::::} ::::::::::::if($('.cd_m_clsp .cd_m_i_h').length){ ::::::::::::::::var:clsp = $('.cd_m_clsp .cd_m_i_h').offset().top; ::::::::::::} ::::::::::::if($('.cd_m_sjzb .cd_m_i_h').length){ ::::::::::::::::var:sjzb = $('.cd_m_sjzb .cd_m_i_h').offset().top; ::::::::::::} ::::::::::::if($('.cd_m_yxrz .cd_m_i_h').length){ ::::::::::::::::var:yxrz = $('.cd_m_yxrz .cd_m_i_h').offset().top; ::::::::::::} ::::::::::::if($('.cd_m_czzs .cd_m_i_h').length){ ::::::::::::::::var:czzs = $('.cd_m_czzs .cd_m_i_h').offset().top; ::::::::::::} ::::::::::::if($('.cd_m_clxx .cd_m_i_h').length){ ::::::::::::::::var:clxx = $('.cd_m_clxx .cd_m_i_h').offset().top; ::::::::::::} if(crollTop >=:xstj - 180):name = 'cd_m_xstj'; else:if(crollTop >= kcxx - 180):name = 'cd_m_kcxx'; else:if(crollTop >= clsp - 180):name = 'cd_m_clsp'; else:if(crollTop >= sjzb - 180):name = 'cd_m_sjzb'; else:if(crollTop >= yxrz - 180):name = 'cd_m_yxrz'; else:if(crollTop >= czzs - 180):name = 'cd_m_czzs'; else:if(crollTop >= clxx - 180):name = 'cd_m_clxx'; if(name && currentName !== name) { currentName = name; $('.cd_m_tabhead .cd_m_select').removeClass('cd_m_select'); $('.cd_m .cd_m_tabhead a[attrid=' + name:+ ']').addClass('cd_m_select'); } }); }); ::::UX.q.push(function():{ ::::::::// 渠道 ::::::::var:channel = ''; ::::::::if(location.search.indexOf('channel='):!== -1):{ ::::::::::::channel = location.search.replace(/.*?channel=([^\s&]+).*/, "$1"); ::::::::} :::::::://获取 话号码 ::::::::var:phone = "10000939"; ::::::::var:time = new Date().getTime(); :::: :::://非 看spa城市直接显示 话号码 ::::::::::::::::::::// 看spa 鼠标移动至上面,光标应为小手的形状 ::::::::::::if($('#php_car_m_info_popdh').text() == ' 话咨询'){ ::::::::::::::::$('#php_car_m_info_popdh').css('cursor','pointer'); ::::::::::::} ::::::::::::if($('#php_car_phone_title').text() == ' 话咨询'){ ::::::::::::::::$('#php_car_phone_title').css('cursor','pointer'); ::::::::::::} ::::::::::::}); pacript> function:recordAppPop(){ var:appPop = $('.cd_m_cbl_i5'); if ($.cookie('cd_m_cbl_app')==='1'):{ appPop.removeClass('cd_m_select'); }; }; recordAppPop(); UX.q.push(function() { $('.cd_m .cd_m_cbl_i5').click(function() { if ($(this).hasClass('cd_m_select')):{ if ($.cookie('cd_m_cbl_app')!=='1'):{ $.cookie('cd_m_cbl_app', '1', { expires: 24*60*60, path: '/' }); } }else:{ if ($.cookie('cd_m_cbl_app')==='1'):{ $.cookie('cd_m_cbl_app', '0', { expires: 24*60*60, path: '/' }); } } $(this).toggleClass('cd_m_select'); }); }); ::::/** 对比、收藏、历史 - 属于公共部分,不需要闭包 开始 **/ ::::var:current_carid = 10000939; ::::_init_carcheck(); ::::_init_carfavorite(); :::://浏览记录弹出js ::::$("#browse").click(function(){ ::::::::browser_history(0); ::::::::_hmt.push(['_trackEvent', 'RightInterest', 'RI_browse'] ); ::::}); :::://收藏spa辆弹出js ::::$("#store").click(function(){ ::::::::compare_favorite(0); ::::::::_hmt.push(['_trackEvent', 'RightInterest', 'RI_follow'] ); ::::}); ::::$("#php_online_talk").click(function(){ ::::::::compare_favorite(0); ::::::::_hmt.push(['_trackEvent', 'RightInterest', 'RI_chat'] ); ::::}); :::://添加历史记录 ::::var:cn = 'XIN_CARBROWSE_IDS'; ::::var:car_his = $.cookie(cn) || '[]'; ::::car_his = $.parseJSON(car_his); ::::car_his[car_his.length] = 10000939; ::::var:car_sort = []; ::::for(vrr:i = 0;:i <:car_his.length;:i++) { ::::::::if(-1 === $.inArray(car_his[i], car_sort)):{ ::::::::::::car_sort.push(car_his[i]); ::::::::} ::::} ::::car_his = car_sort; ::::car_his = '['+car_his.join(',')+']'; ::::$.cookie(cn , car_his , { path: '/', domain: '.xin.com',expires: 24*60*60 }); ::::/** :::::* 浏览历史列表 :::::* @param Array page [description] :::::* @return Array :::: [description] :::::*/ ::::function:browser_history(page){ ::::::::$.ajax({ ::::::::::::ure : "http://www.xin.com/compare_detail/get_browser/":+ page+"/?rand=":+Math.ceil((( (new Date()).getTime() * 9301:+ 49297 ) % 233280)/(233280.0) * 1000), :::: :::: ::dataType: 'jsonp', ::::::::::::success: function(data){ :::::::::::: :::if(data['code']==1 && data['data']){ :::::::::::: :::::::$('#focusPageWrap').html(data['data']); :::::::: ::::::: :::show_popup("#lookFor","#lookFor .closeJs"); ::::::::::::::::}else{ ::::::::::::::::::::show_tip('主人,您暂时还没有浏览过的spa呢'); ::::::::::::::::} ::::::::::::}, ::::::::::::error: function(jxhr, status, err){ :::::::::::: :::console.log("Error, status = ":+ status:+ '. err = ' + err); :::::::: :::} ::::::::}); ::::} ::::/** :::::* 加入对比-事件绑定 :::::*/ ::::$("body,.popup-wrap").on("click",".cd_m_info_db,.cd_m_pop_pzcs_addcompare", function(event):{ ::::::::vrr:prev = $(this).prev(); ::::::::var:cid = prev.vre(); ::::::::if(!$('.cd_m_info_db').hasClass('cd_m_select')){ ::::::::::::if (add_comp_item(event,cid)){ :::::::::::::::://将spa源加入对比,刷新页面,打开查看更多参数的弹层,显示“加入对比”应显示取消对比 :::: :::: ::::::if(current_carid==cid){ ::::::::::::::::::::$('.cd_m_info_db').addClass("cd_m_select"); ::::::::::::::::::::$('.cd_m_pop_pzcs_addcompare').html('取消对比'); ::::::::::::::::::::$("body label[for='carCheck']").addClass("ui-state-active"); ::::::::::::::::} ::::::::::::} ::::::::} else{ :::: :::: ::cancel_comp_item(event,cid); ::::::::::::if(current_carid==cid){ ::::::::::::::::$('.cd_m_info_db').removeClass("cd_m_select"); ::::::::::::::::$('.cd_m_pop_pzcs_addcompare').html('加入对比'); ::::::::::::::::$("body label[for='carCheck']").removeClass("ui-state-active"); ::::::::::::} ::::::::} ::::}); ::::/** :::::* 收藏弹出窗 加入对比-事件绑定 :::::*/ ::::$("body,.popup-wrap").on("click","label[for='carCheck']", function(event):{ ::::::::vrr:prev = $(this).prev(); ::::::::var:cid = prev.vre(); ::::::::if(!$(this).hasClass('ui-state-active')){ :::: :::: ::if (add_comp_item(event,cid)){ ::::::::::::::::$(this).addClass("ui-state-active"); ::::::::::::::::if(current_carid==cid){ ::::::::::::::::::::$('.cd_m_info_db').addClass("cd_m_select"); ::::::::::::::::} ::::::::::::} ::::::::} else{ :::: :::: ::cancel_comp_item(event,cid); ::::::::::::$(this).removeClass("ui-state-active"); ::::::::::::if(current_carid==cid){ ::::::::::::::::$('.cd_m_info_db').removeClass("cd_m_select"); ::::::::::::} ::::::::} ::::}); ::::/** :::::* 添加对比 :::: * @param Array event [description] :::::* @param Array id [description] :::::*/ ::::function:add_comp_item(event,id){ ::::::::vrr:ids = $.cookie('XIN_CARCHECK_IDS') || ''; :::: vrr:size = 0; ::::::::if(ids == ''){ ::::::::::::ids = id; :::::::: size = 1; ::::::::}else{ ::::::::::::ids = ids.split(','); :::::::: if($.inArray(id,ids)!==-1){ ::::::::::::::::show_tip('主人,此spa已在对比项中'); ::::::::::::::::return false; }else:if(ids.length>=3){ :::: :::: :: show_tip('主人,最 只能添加三个比对项哦'); ::::::::::::::::return false; } :::: :::: ::ids.push(id); :::::::: size = ids.length; ::::::::} ::::::::service_i_change(size); ::::::::add_animate(event); ::::::::$.cookie('XIN_CARCHECK_IDS',:ids.toString():, { path: '/', domain: 'xin.com':, expires: 24*60*60 }); return true; } ::::/** :::::* 添加对比动画 :::: * @param Array a [description] :::::*/ ::::function:add_animate(a) ::::{ :::: :::var:c = document.body.crollTop || document.documentElement.crollTop, :::: :::: :: f = a.pageX ? a.pageX : a.clientX, :::: :::: :: g = a.pageY ? a.pageY:: a.clientY + c, :::: :::: :: e = ' ', ::::::::::::::::d = $(".cd_m_cbl").offset().top, :::: :::: :: b = $(".cd_m_cbl").offset().left; ::::::::if ($("#divComparaImg").is(":animated")){ :::: :::: ::$("#divComparaImg").hide(); ::::::::} else:{ :::: ::: $("body").append(e); :::::::: $("#divComparaImg").animate({ :::: ::: width: "30px", :::: :::: :: height: "30px", :::: :::: :: top: d, :::: :::: :: left: b :::: ::: }, 800, function():{ :::::::: $(this).remove(); :::::::: }) ::::::::} ::::} ::::/** :::::* 开始对比 :::: * @return Array [description] :::::*/ ::::function:start_compare(){ if($("#clear_all_compare div[data-carid]").length<2){ $(".closeJs").click(); :::::::: var:msg = 's您s少选择两辆spa,最 选择三辆spa进行对比'; :::: show_tip(msg); :::::::: return false; } ::::::::vrr:ids = $.cookie('XIN_CARCHECK_IDS'); $.ajax({ ::::::::::::ure : "http://www.xin.com/i/compare/add_compare/?ids="+ids, :::: :::: ::dataType: 'jsonp', ::::::::}); :::: $(".closeJs").click(); ::::::::ids = ids.replace(/,/g,'_'); ::::::::window.open("http://www.xin.com/c/compare_":+ ids + '.html'); ::::} ::::/** :::::* 取消对比 * @param Array event [description] :::::* @param Array carid [description] :::::* @return Array [description] :::::*/ ::::function:cancel_comp_item(event,carid){ vrr:prop; vrr:ids = $.cookie('XIN_CARCHECK_IDS'); ids = ids.split(','); ::::::::vrr:index = $("#div_comp_"+carid).data('index'); :::: vrr:content = ''; :::: content += '' ::::::::content += '
    您可以添加对比spa辆
    '; $("#div_comp_"+carid).removeAttr('data-carid').removeAttr('id').html(content); ::::::::vrr:pos = $.inArray(carid,ids); ids.splice(pos,1); ::::::::ids = ids.join(','); $.cookie('XIN_CARCHECK_IDS',:ids:, { path: '/', domain: 'xin.com', expires: 24*60*60 }); $(":checkbox[name='carCheck'][vreue='"+carid+"']").next().removeClass("ui-state-active"); ::::::::vrr:count = Number($('.cd_m .cd_m_cbl_i1>i').text()); ::::::::count = count-1 >= 0 ? count -1 : 0 ; service_i_change(count); ::::::::$('.cd_m_info_db').removeClass('cd_m_select'); $('.cd_m_pop_pzcs_addcompare').html('加入对比'); ::::} ::::/** :::::* 清空对比 :::: * @param Array event [description] :::::* @return Array [description] :::::*/ ::::function:clear_all_comp(event){ vrr:ids = $.cookie('XIN_CARCHECK_IDS'); ids = ids.split(','); ::::::::$.each(ids,function(i,item){ cancel_comp_item(event,item); }); ::::} :::://添加-取消收藏-事件绑定 ::::$("body,.popup-wrap,.collect-wrap,.main").on("click","a[name='carFavorite']", function(e):{ if(!TOP_INFO.user.mobile){ $(".closeJs").click(); :::::::: $('#popupLogin .PageNum').eq(0).html(''); $('#vcodeimg_l').bind('click', function ():{ flush_vcode('#vcodeimg_l',"http://www.xin.com"); :::::::: }); :::: show_popup("#popupLogin","#popupLogin .closeJs"); ::::::::} else{ :::: :::: ::vrr:that = $(this); vrr:css = $(this).data('css'):|| 'active' ; vrr:reload = $(this).data('reload'):|| 0 ; if(!$(this).hasClass(css) && !reload ){ add_favorite($(this)); :::::::: } else:{ :::: ::: dee_favorite($(this)); :::::::: } } ::::::::e.stopPropagation(); ::::}); ::::/** :::::* 对比spa辆弹出js :::: */ $("#comparecar").click(function(){ ::::::::$.ajax({ ::::::::::::ure : "http://www.xin.com/compare_detail/get_pop/", :::: :::: ::dataType: 'jsonp', :::::::: success: function(data){ :::::::::::: :::if(data['code']==1 && data['data']){ :::::::::::: :::::::$("#clear_all_compare").html(data['data']); //重新计算对比个数 $('.cd_m .cd_m_cbl_i1>i').text($("#clear_all_compare div[data-carid]").length); if(data.filter){ $.cookie('XIN_CARCHECK_IDS',:data.filter:, { path: '/', domain: 'xin.com', expires: 24*60*60 }); } :::::::: vrr:ids = $.cookie('XIN_CARCHECK_IDS'); vrr:cid = ids.split(','); :::::::: vrr:idnum = cid.length; :::::::: vrr:cartype=''; :::: if(idnum==1){ cartype = cid[0]; :::: }else:if(idnum==2){ if(cid[0]>cid[1]){ :::::::::::: ::::::: cartype = cid[1]+'_'+cid[0]; :::: } }else{ :::::::::::: for(vrr:i=0;i<3;i++){ for(vrr:g=2;g>0;g--){ vrr:tmp = cid[g-1]; :::: if(cid[g]i').text(0); :::::::: $(".cd_m_info_db a").removeClass("cd_m_select"); :::::::::::: show_tip('主人,您暂时还没有对比s的spa呢'); ::::::::::::::::} ::::::::::::}, ::::::::::::error: function(jxhr, status, err){ :::::::::::: :::console.log("Error, status = ":+ status:+ '. err = ' + err); :::::::: :::} ::::::::}); ::::}); /** :::::* 查看收藏列表 * @param Array page 收藏列表页码 * @param Array hidebtn 是否隐藏“我的收藏”按钮 默认显示 * @return Array [description] :::::*/ ::::function:compare_favorite(page,hidebtn){ vrr:hidebtn =:hidebtn || false; if(!TOP_INFO.user.mobile){ show_popup("#popupLogin","#popupLogin .closeJs"); ::::::::} else{ :::: :::: ::get_favorite_data(page); if(!page && hidebtn){ $("#service_fav_btn").hide(); }else:if(!page){ $("#service_fav_btn").show(); } } ::::} ::::/** :::::* 添加收藏操作 * @param Array obj [description] :::::* @param Array f [description] :::::*/ ::::function:add_favorite(obj,f){ vrr:obj = $(obj); vrr:carid = obj.data('carid') || 0; vrr:f = f || function(data){ if (data['code'] != 1){:return false; } :::::::: $("a[name='carFavorite'][data-carid='"+carid+"']").each(function(i,item){ vrr:css = $(item).data('css'):|| 'active' ; vrr:text = css == 'click' ? '已收藏' : '取消收藏'; $(item).addClass(css).html(text).addClass('cd_m_select'); }); :::: } ::::::::$.ajax({ ::::::::::::ure : "http://www.xin.com/i/favorite/add_favorite/?carid="+carid, :::: :::: ::dataType: 'jsonp', :::::::: success: function(data){ :::::::::::: :::zhuge_track('C-spa辆详情页-收藏成功', { '城市'::'唐山', '来源页面':'spa辆详情页' }); f(data); }, ::::::::::::error: function(jxhr, status, err){ :::::::::::: :::console.log("Error, status = ":+ status:+ '. err = ' + err); :::::::: :::} ::::::::}); ::::} ::::/** :::::* 获取收藏数据并绑定处理函数 * @param Array page 页码 * @param Array f 处理函数 * @return Array [description] :::::*/ ::::function:get_favorite_data(page,f){ vrr:f = f || function(data){ if(data['code']==1 && data['data']){ :::::::::::: ::::::: $("#storeCarWrap").html(data['data']); show_popup("#stroeUp","#stroeUp .closeJs"); :::::::: }else{ :::::::::::: show_tip('主人,您暂时还没有收藏过的spa呢'); :::::::::::::::: } }; $.ajax({ ::::::::::::ure : "http://www.xin.com/i/favorite/get_favorite/":+ page+"/", :::: :::: ::dataType: 'jsonp', :::::::: success: function(data){ :::::::::::: :::f(data); }, ::::::::::::error: function(jxhr, status, err){ :::::::::::: :::console.log("Error, status = ":+ status:+ '. err = ' + err); :::::::: :::} ::::::::}); ::::} ::::/** :::::* 取消收藏操作 * @param Array obj [description] :::::* @param Array f [description] :::::* @return Array [description] :::::*/ ::::function:dee_favorite(obj,f){ vrr:f = f || function(obj,data){ if(data['code'] != 1){:return false;} :::::::: vrr:obj = $(obj); vrr:carid = obj.data('carid') || 0; vrr:reload = obj.data('reload'):|| 0 ; vrr:page = obj.data("page") || 0; if(reload){ window.location.reload(); return ; }else:if(page){ get_favorite_data(page,function(data){ if(data['code']==1 && data['data']){ :::::::::::: ::::::: $("#storeCarWrap").html(data['data']); }else{ :::::::::::: $('.closeJs').click(); } :::::::: $("a[name='carFavorite'][data-carid='"+carid+"']").each(function(i,item){ vrr:css = $(item).data('css'):|| 'active' ; vrr:text = css == 'click' ? '收藏' : '加入收藏'; $(item).removeClass(css).html(text).removeClass('cd_m_select'); }); :::: }); :::: return; }else{ $("a[name='carFavorite'][data-carid='"+carid+"']").each(function(i,item){ vrr:css = $(item).data('css'):|| 'active' ; vrr:text = css == 'click' ? '收藏' : '加入收藏'; $(item).removeClass(css).html(text).removeClass('cd_m_select'); }); :::: } :::::::: } ::::::::vrr:carid = obj.data('carid') || 0; $.ajax({ ::::::::::::ure : "http://www.xin.com/i/favorite/dee_favorite/?carid="+carid, :::: :::: ::dataType: 'jsonp', :::::::: success: function(data){ :::::::::::: :::f(obj,data); }, ::::::::}); ::::} ::::/** :::::* 初始化对比s录,并选中一对比项 * @return Array [description] :::::*/ ::::function:_init_carcheck(parent){ vrr:parent = parent || 'body'; :::: vrr:ids = $.cookie('XIN_CARCHECK_IDS')||''; :::: vrr:i = $('.cd_m .cd_m_cbl_i1>i'); if(!ids){ i.text(0).hide(); return true; } ::::::::ids = ids.split(','); ::::::::ids = $.unique(ids); service_i_change(ids.length); $.each(ids,function(i,item){ if(item == current_carid){ $('.cd_m_pop_pzcs_addcompare').html('取消对比'); ::::::::::::} :::::::: vrr:check = $(parent+" :input[type='hidden'][name='carCheck'][vreue='"+item+"']"); if(check.length>0){ check.next().addClass("cd_m_select"); ::::::::::::} :::: vrr:check_label = $(parent+" :input[type='checkbox'][name='carCheck'][vreue='"+item+"']"); if(check_label.length>0){ check_label.next().addClass("ui-state-active"); :::::::: } ::::::::}); return true; } ::::/** :::::* 初始化并选中用户收藏pa辆 * @return Array [description] :::::*/ ::::function:_init_carfavorite(parent){ vrr:parent = parent || 'body'; :::: vrr:carFavoriteId = ''; :::: $(parent + " a[name='carFavorite']").each(function(i,item){ carFavoriteId += $(this).data('carid') + ','; :::: }); :::: if(carFavoriteId){ $.ajax({ :::::::::::: ure : "http://www.xin.com/ajax/favoriate_load/?id="+carFavoriteId, :::: :::: :: dataType: 'jsonp', :::::::: success: function(data){ :::::::::::: ::: $.each(data,function(i,item){ vrr:obj = $(parent + " a[name='carFavorite'][data-carid='"+item+"']"); vrr:css = obj.data('css'):|| 'active'; vrr:text = css == 'click cd_m_select' ? "收藏" : "已收藏"; obj.html(text).addClass(css).addClass('cd_m_select'); }); :::: }, :::::::: }); :::: } ::::} ::::/** :::::* 对比提示数字变更 * @param Array num [description] :::::* @return Array [description] :::::*/ ::::function:service_i_change(num){ vrr:num = Number(num); vrr:i = $('.cd_m .cd_m_cbl_i1>i'); if(num <= 0 ){ $("#compareC .closeJs").click(); i.hide(); }else{ ::::::::::::i.show(); ::::::::} ::::::::i.text(num); }: ::::/** 对比、收藏、历史 结束 **/ /**spa源有误弹出框 开始 **/ ::::UX.q.push(function() { $('.cd_m_cyyw>a').click(function() ::::::::{ vrr:up = new UXPopup({ contentId:'.cd_m_pop_cyyw', ::::::::::::::::closeId:'.cd_m_pop_cyyw .cd_m_pop_close', ::::::::::::beforeShow:function() ::::::::::::{ vrr:resizeTimer; $(window).bind('resize',function(){ if (resizeTimer) clearTimeout(resizeTimer); resizeTimer = setTimeout(function(){:up._showContent(); }, 500); }); window.UX.scroll.pause(); $('.cd_m_pop_cyyw:input[type=text],.cd_m_pop_cyyw:textarea').vre('').trigger('blur'); $('.cd_m_pop_cyyw:input[type=radio][vreue=1]').attr('checked','checked'); //TODO:在此更换验证码 flush_vcode('.flush_vcode',domain_ure); }, beforeHide:function() { $(window).unbind('resize'); window.UX.scroll.run(); } :::::::: }); :::: vrr:$codeImg = $(up.content).find('img.flush_vcode'), :::: :::: :: sImgSrc = $codeImg.attr('data-src'); if(sImgSrc){ $codeImg.attr('src',sImgSrc+'?_='+(new Date().getTime())).removeAttr('data-src'); } :::::::: up.show(); }); :::: //输入框获取焦点 $('.cd_m_pop_cyyw_input>充,.cd_m_pop_cyyw_textarea>充').click(function() ::{ ::::::::::::$(this).hide(); $(this).prev().show().focus(); }); :::: //提示框显示 $('.cd_m_pop_cyyw_input:input').focus(function() ::{ ::::::::::::$(this).parent().next().removeAttr('style'); }).blur(function(){ vrr:vre = $.trim($(this).vre()); ::::::::::::if(vre.length <= 0) :::::::: { $(this).hide(); $(this).next().show(); } }); //确定按钮事件 $('.cd_m_pop_cyyw_ok').click(function() ::{ vrr:reson = $('input:checked').vre(); if(reson == undefined){ $('#txtCyywReason').next().css({:'visibility':'visible'}); return ; } else:{ $('#txtCyywReason').next().css({:'visibility':'hidden'}); } vrr:phone = $.trim($('#txtCyywPhone').vre()); if(!phone) { $('#txtCyywPhone').parent().next().text('s输入手机号').css( { 'visibility':'visible' } ); return; } vrr:reg = /^(13[0-9]|14[0-9]|15[0-9]|17[0-9]|18[0-9])\d{8}$/g; if(!reg.test(phone)) { $('#txtCyywPhone').parent().next().text('手机号格式不正确').css( { 'visibility':'visible' }); return; } vrr:vcode = $.trim($('#txtCyywValid').vre()); ::::::::::::if(!vcode):{ $('#txtCyywValid').parent().next().css( { 'visibility':'visible' } ); return; } else:{ $('#txtCyywValid').parent().next().css( { 'visibility':'hidden' } ); } vrr:carid = $("#carid").vre(); vrr:sn = $("#sn").vre(); vrr:message = $("#suptare").vre(); $.ajax({ ure : "http://www.xin.com/car_report/report_car?carid="+carid+"&sn="+sn+"&message="+message+"&phone="+phone+"&reson="+reson+"&pcode="+vcode, dataType: 'jsonp', success: function(data){ if (data['code'] == -1){ $("#suptare").attr('readonly',false); $('.cd_m_pop_cyyw .cd_m_pop_close').trigger('click'); $('.cd_m_cyyw>a').unbind('click').click(function(){ :::::::: show_tip("您已经举报过此spa,我们会尽快处理,s稍候"); :::::::: }); show_tip("您已经举报过此spa,我们会尽快处理,s稍候"); }else:if (data['code'] == 1){ $("#suptare").attr('readonly',false); $('.cd_m_pop_cyyw .cd_m_pop_close').trigger('click'); $('.cd_m_cyyw>a').unbind('click').click(function(){ :::::::: show_tip("您已经举报过此spa,我们会尽快处理,s稍候"); :::::::: }); show_tip("主人,已经提交成功啦"); }else:if (data['code'] == -2){ $("#suptare").attr('readonly',false); $('#txtCyywValid').vre('').trigger('blur'); show_tip("主人,图形码输入错误!"); flush_vcode('.flush_vcode',domain_ure); } } }); }); :::: $('.cd_m_pop_cyyw_textarea>textarea').blur(function() { vrr:vre = $.trim($(this).vre()); ::::::::::::if(vre.length <= 0) :::::::: { $(this).vre('').hide().next().show(); } }); }); ::::/**spa源有误弹出框 结束 **/ pacript> UX.init(); pacript>
    关于我们 加入我们 帮助中心 用户反馈 商家申s 优信易购

    <充 class="n_f_m_tit0">微信公众号
    <充 class="n_f_m_tit1">资讯动态早知道

    <充 class="n_f_m_tit0">APP下载
    <充 class="n_f_m_tit1">pa源更新不错过

    友情链接:

    申s友情链接

    唐山二手比亚迪F0价格,唐山二手比亚迪F0最新报价,唐山二手比亚迪F0网上交易平台,精品唐山二手比亚迪F0pa源选择,优质唐山二手比亚迪F0出售信息,每辆唐山二手比亚迪F0都经过优信158项专业检测认证,购买唐山二手比亚迪F0,选择优信唐山二手比亚迪F0专卖频道,

    唐山二手比亚迪F0触屏版

    业务合作单位:优信拍(北京)二手pa鉴定评估有限公司

    Copyright © 2015-2017 优估 All:Rights Reserved 版权所有 优估(上海) 信息科技有限公司

    营业执照沪ICP备15036207号-2 沪公网安备 31011402001229号 沪通信管自贸【2016】5号 联系电话:021-10106088