比亚迪宋MAX DM-i 18万级超级混动MPV居然能吊打30万级合资MPV,究竟它有什么宝藏功能?
)), TargetReplyId: id, share: document.getElementById(share).value }, function (data) { var flag = data; if (data == null) { alert(评论失败); btnSubmit.onclick = btnSubmit.oldClick; return; } if (!flag !flag.returncode == 0) { if ($(obj).is(a)) { $(obj).html(obj.oldInnerHtml); } else { var target = $(obj.target).parent().find(a[id^=submit]); if (target.length>
)), TargetReplyId: id, share: document.getElementById(share).value }, function (data) { var flag = data; if (data == null) { alert(评论失败); btnSubmit.onclick = btnSubmit.oldClick; return; } if (!flag !flag.returncode == 0) { if ($(obj).is(a)) { $(obj).html(obj.oldInnerHtml); } else { var target = $(obj.target).parent().find(a[id^=submit]); if (target.length0) { target.html(target[0].oldInnerHtml); } else { target.html(提交评论); } } btnSubmit.onclick = btnSubmit.oldClick; alert(flag.message); return; } // 评论 增加里程值 if (data.returncode==0) { var isFrist = data.result.RFloor==1; // 调用 增加 关注的里程碑接口 $.post(/AuthorUser/AddUserExt, { objId: objid, addType: 0,isFirst: isFrist}, function (data) { if (data == 0) { if (window.showLichengZhi) { showLichengZhi(0,isFrist); } } }); } if (isViewDialog == 1) { v_dialog.hide(); AutoBlogReply.reload(); return; } if (AutoBlogReply[Message].LastId) { $(AutoBlogReply[Message].LastId).after(AutoBlogReply.liparse(1, 1, data.result)); setAuthorLinkUrl(); $(img[editorid= + _authorId + ]).attr(src, $(#author_headimageurl).data(forreplysrc)); AutoBlogReply[Message].hidereply(); bindeditorimg(); return; } AutoBlogReply[PageConfig].PageIndex = 1; document.body.scrollTop = GetLocation(document.getElementById(AutoBlogReplyList))[y]; AutoBlogReply.reload(); if ($(#ReplyCount).text() == 0) { location.href= #reply; sendPvTrack(cheplus_comment, bottom_content, list, 0, 11120355); } else { sendPvTrack(cheplus_reply, middle_content , details, 0, 11120355); } }, json); } function delegate() { if (!autoHeaderObj.user.isLogin) { _login(userName, userPwd, PostData, isViewDialog); } else { PostData(); } } delegate(); }; //获取评论列表 AutoBlogReply[_getcomments] = function (pageIndex) { var getCount =1==1 ? 3 : 20; var list = AutoBlogReply.$(AutoBlogReplyList); //头部 if (list == null !list) return; var title = AutoBlogReply.Template[title]; list.innerHTML = title; var jsonpUrl = //reply.autohome.com.cn/api/comments/show.json?id= + objid + &page= + pageIndex + &appid= + appid + &count= + getCount+&replydata=1&datatype=jsonp; if (_replyId) { jsonpUrl += &replyid= + _replyId; } //评论内容 jQuery.ajax({ url:jsonpUrl, dataType: jsonp, jsonp: callback, jsonpCallback: jsonpCallback3, success: function (data) { if (data == null data.commentcount == 0) { jQuery(#PageBottom).hide(); } else { var listitem = []; jQuery.each(data.commentlist, function (i, v) { var li = AutoBlogReply.liparse(data.commentcount, i, v); listitem.push(li); }); var replylist = AutoBlogReply.Template[ul].replace(/{_list}/gi, listitem.join()); //评论列表 list.innerHTML += replylist; } //个数 if (document.getElementById(ReplyCount)) document.getElementById(ReplyCount).innerHTML = Calculator(data.commentcount); //个数 if (document.getElementById(replyCanyueCount)) { var commentcountall = Calculator(data.commentcount); document.getElementById(replyCanyueCount).innerHTML = ( + Calculator(data.commentcount) + ); if (commentcountall>
0) { target.html(target[0].oldInnerHtml); } else { target.html(提交评论); } } btnSubmit.onclick = btnSubmit.oldClick; alert(flag.message); return; } // 评论 增加里程值 if (data.returncode==0) { var isFrist = data.result.RFloor==1; // 调用 增加 关注的里程碑接口 $.post(/AuthorUser/AddUserExt, { objId: objid, addType: 0,isFirst: isFrist}, function (data) { if (data == 0) { if (window.showLichengZhi) { showLichengZhi(0,isFrist); } } }); } if (isViewDialog == 1) { v_dialog.hide(); AutoBlogReply.reload(); return; } if (AutoBlogReply[Message].LastId) { $(AutoBlogReply[Message].LastId).after(AutoBlogReply.liparse(1, 1, data.result)); setAuthorLinkUrl(); $(img[editorid= + _authorId + ]).attr(src, $(#author_headimageurl).data(forreplysrc)); AutoBlogReply[Message].hidereply(); bindeditorimg(); return; } AutoBlogReply[PageConfig].PageIndex = 1; document.body.scrollTop = GetLocation(document.getElementById(AutoBlogReplyList))[y]; AutoBlogReply.reload(); if ($(#ReplyCount).text() == 0) { location.href= #reply; sendPvTrack(cheplus_comment, bottom_content, list, 0, 11120355); } else { sendPvTrack(cheplus_reply, middle_content , details, 0, 11120355); } }, json); } function delegate() { if (!autoHeaderObj.user.isLogin) { _login(userName, userPwd, PostData, isViewDialog); } else { PostData(); } } delegate(); }; //获取评论列表 AutoBlogReply[_getcomments] = function (pageIndex) { var getCount =1==1 ? 3 : 20; var list = AutoBlogReply.$(AutoBlogReplyList); //头部 if (list == null !list) return; var title = AutoBlogReply.Template[title]; list.innerHTML = title; var jsonpUrl = //reply.autohome.com.cn/api/comments/show.json?id= + objid + &page= + pageIndex + &appid= + appid + &count= + getCount+&replydata=1&datatype=jsonp; if (_replyId) { jsonpUrl += &replyid= + _replyId; } //评论内容 jQuery.ajax({ url:jsonpUrl, dataType: jsonp, jsonp: callback, jsonpCallback: jsonpCallback3, success: function (data) { if (data == null data.commentcount == 0) { jQuery(#PageBottom).hide(); } else { var listitem = []; jQuery.each(data.commentlist, function (i, v) { var li = AutoBlogReply.liparse(data.commentcount, i, v); listitem.push(li); }); var replylist = AutoBlogReply.Template[ul].replace(/{_list}/gi, listitem.join()); //评论列表 list.innerHTML += replylist; } //个数 if (document.getElementById(ReplyCount)) document.getElementById(ReplyCount).innerHTML = Calculator(data.commentcount); //个数 if (document.getElementById(replyCanyueCount)) { var commentcountall = Calculator(data.commentcount); document.getElementById(replyCanyueCount).innerHTML = ( + Calculator(data.commentcount) + ); if (commentcountall3&&1==1) { $(.see_more_comment).show(); $(#bottomcomment).html(commentcountall); } else { $(.see_more_comment).hide(); $(#replyCanyueCount1).html((+commentcountall+)); } } if (data.commentcountall == 0) { $(#AutoBlogReplyList).hide(); } else if(data.commentcountall == 1) { $(#AutoBlogReplyList).show(); } //分页 var config = AutoBlogReply[PageConfig]; config.RowCount = data.commentcount; config.PageIndex = data.page; config.PageCount = Math.ceil(config.RowCount / config.PageSize); config.onclick = AutoBlogReply[PageCallBack]; if (config.PageCount>
3&&1==1) { $(.see_more_comment).show(); $(#bottomcomment).html(commentcountall); } else { $(.see_more_comment).hide(); $(#replyCanyueCount1).html((+commentcountall+)); } } if (data.commentcountall == 0) { $(#AutoBlogReplyList).hide(); } else if(data.commentcountall == 1) { $(#AutoBlogReplyList).show(); } //分页 var config = AutoBlogReply[PageConfig]; config.RowCount = data.commentcount; config.PageIndex = data.page; config.PageCount = Math.ceil(config.RowCount / config.PageSize); config.onclick = AutoBlogReply[PageCallBack]; if (config.PageCount1) { config.objId = pager; var pager = new AutoBlogReply[Pager](AutoBlogReply[PageConfig]); pager.DrawingPager(); config.objId = pager2; var pager2 = new AutoBlogReply[Pager](AutoBlogReply[PageConfig]); pager2.DrawingPager(); } if (config.PageCount>
1) { config.objId = pager; var pager = new AutoBlogReply[Pager](AutoBlogReply[PageConfig]); pager.DrawingPager(); config.objId = pager2; var pager2 = new AutoBlogReply[Pager](AutoBlogReply[PageConfig]); pager2.DrawingPager(); } if (config.PageCount1&&1==2) { jQuery(#PageBottom).show(); window.scrollTo(0, 50); } else { jQuery(#PageBottom).hide(); } bindeditorimg(); setAuthorLinkUrl(); positionToPageElement(); } }); }; function positionToPageElement() { if (_replyId) { var $element = $(div[data-replyid= + _replyId + ]).parent(); var scroll_offset = $element.offset(); $(body,html).animate({ scrollTop:scroll_offset.top-80 //让body的scrollTop等于pos的top,就实现了滚动 },500); $element.add($element.prev()).animate({ opacity: 0.2 }, slow).animate({ opacity: 1 }, slow).animate({ opacity: 0.2 }, slow).animate({ opacity: 1 }, slow) .animate({ opacity: 0.2 }, slow).animate({ opacity: 1 }, slow).animate({ opacity: 0.2 }, slow).animate({ opacity: 1 }, slow); _replyId = null; } } // 设置本文作者的点击链接 function setAuthorLinkUrl() { var $a = $(a[href=//i.autohome.com.cn/ + _authorId + /home.html]) .attr(href, /Authors/19321573); if ($a.hasClass()) { } $a.each(function() { if ( $(this).find(.rmembername-span).length===0) { $(this).text(车厘子大叔); } else { $(this).find(.rmembername-span) .text(车厘子大叔); } }); } AutoBlogReply[liparse] = function (commentcount, i, v) { var li = null; //查看对话 var viewdialog = ; if (v.Duihua && v.Duihua != null && v.Duihua>
1&&1==2) { jQuery(#PageBottom).show(); window.scrollTo(0, 50); } else { jQuery(#PageBottom).hide(); } bindeditorimg(); setAuthorLinkUrl(); positionToPageElement(); } }); }; function positionToPageElement() { if (_replyId) { var $element = $(div[data-replyid= + _replyId + ]).parent(); var scroll_offset = $element.offset(); $(body,html).animate({ scrollTop:scroll_offset.top-80 //让body的scrollTop等于pos的top,就实现了滚动 },500); $element.add($element.prev()).animate({ opacity: 0.2 }, slow).animate({ opacity: 1 }, slow).animate({ opacity: 0.2 }, slow).animate({ opacity: 1 }, slow) .animate({ opacity: 0.2 }, slow).animate({ opacity: 1 }, slow).animate({ opacity: 0.2 }, slow).animate({ opacity: 1 }, slow); _replyId = null; } } // 设置本文作者的点击链接 function setAuthorLinkUrl() { var $a = $(a[href=//i.autohome.com.cn/ + _authorId + /home.html]) .attr(href, /Authors/19321573); if ($a.hasClass()) { } $a.each(function() { if ( $(this).find(.rmembername-span).length===0) { $(this).text(车厘子大叔); } else { $(this).find(.rmembername-span) .text(车厘子大叔); } }); } AutoBlogReply[liparse] = function (commentcount, i, v) { var li = null; //查看对话 var viewdialog = ; if (v.Duihua && v.Duihua != null && v.Duihua1) { viewdialog =查看对话; } //性别 var sex = rev_usernan; if (v.RMemberSex != null && v.RMemberSex == 1) { sex = rev_usernv; } //last dd var lastdd = ; if (i == commentcount - 1 i % 20 == 19) { lastdd = class=last_dd; } //评论列表 SpType 表示发表评论时客户端的类型 如果为空 则表示 来自PC端 // if (v.SpType != null && v.SpType.length>
1) { viewdialog =查看对话; } //性别 var sex = rev_usernan; if (v.RMemberSex != null && v.RMemberSex == 1) { sex = rev_usernv; } //last dd var lastdd = ; if (i == commentcount - 1 i % 20 == 19) { lastdd = class=last_dd; } //评论列表 SpType 表示发表评论时客户端的类型 如果为空 则表示 来自PC端 // if (v.SpType != null && v.SpType.length1) { if (v.SpType != null && v.SpType.length>
1) { if (v.SpType != null && v.SpType.length= 0) { var liclientInfo = AutoBlogReply.Template[liclient]; if (v.RMemberId == _authorId) { liclientInfo = liclientInfo.replace($tempUrl,
); // 评论的名字替换为 作者的nickName v.RMemberName = $(#author_nickName).text() v.RMemberName; } else { liclientInfo = liclientInfo.replace($tempUrl, ); } var spTypeName = ; var locationStr = ; if (v.location != null && v.location != && v.location != undefined) { locationStr = v.location.replace(省, ).replace(市apps/3.html); spTypeName = Android客户端 + (locationStr != ? ·/apps/1.html); spTypeName = iPhone客户端 + (locationStr != ? · + locationStr : ); } else if (v.SpType.toLowerCase().indexOf(ipad)>
); // 评论的名字替换为 作者的nickName v.RMemberName = $(#author_nickName).text() v.RMemberName; } else { liclientInfo = liclientInfo.replace($tempUrl, ); } var spTypeName = ; var locationStr = ; if (v.location != null && v.location != && v.location != undefined) { locationStr = v.location.replace(省, ).replace(市apps/3.html); spTypeName = Android客户端 + (locationStr != ? ·/apps/1.html); spTypeName = iPhone客户端 + (locationStr != ? · + locationStr : ); } else if (v.SpType.toLowerCase().indexOf(ipad)= 0) { //liclientInfo = liclientInfo.replace({_clientLink}, //客户端 + (locationStr != ? · + locationStr : ); } else if (v.SpType == ) { // 表示PC端 if (locationStr != ) { spTypeName = locationStr; } else { liclientInfo = liclientInfo.replace(来自{SpType}, ); } }else { spTypeName = v.SpType + (locationStr != ? ·ment-author-icon).html(
).end(); li = AutoBlogReply.Replace(liclientInfo, v); } else { //console.log(v); li = AutoBlogReply.Template[li].replace({viewdialog}, viewdialog); li = li.replace({sex}, sex); li = li.replace({ddclass}, lastdd); li = AutoBlogReply.Replace(li, v); } //原评论 var target = ; if (v.Quote != null) { if (v.Quote.RReplyDate != null) { v.Quote.RReplyDate = timeFormat(v.Quote.RReplyDate); } var targetHtml = AutoBlogReply.Template[target]; if (v.RTargetMemberId == _authorId) { targetHtml = targetHtml.replace($tempUrl,
25) { alert(账户密码不匹配); pwd.focus(); return false; } var b = _login(jQuery(name).val(), jQuery(pwd).val()); if (!b) { if (jQuery(name).val() == ) { jQuery(name).focus(); return false; } if (jQuery(pwd).val() == ) { jQuery(pwd).focus(); return false; } if (jQuery(pwd).val().length25) { alert(账户密码不匹配); pwd.focus(); return false; } var b = _login(jQuery(name).val(), jQuery(pwd).val(), 1); if (!b) { if (jQuery(name).val() == ) { jQuery(name).focus(); return false; } if (jQuery(pwd).val() == ) { jQuery(pwd).focus(); return false; } if (jQuery(pwd).val().length25) { jQuery(pwd).focus(); return false; } } setTimeout(function () { if (autoHeaderObj.user.isLogin getUNcookie()) { var name = autoHeaderObj.user.un == null ? cookieUN : autoHeaderObj.user.un; var strValidate = (cookieUData == 1 ?需要绑定您的手机后才能继续操作: cookieUData == 2 ?抱歉,您需要先完善个人信息: );; var userStatus = 欢迎您, + name +退出登录+ strValidate; jQuery(loginbar).html(userStatus); //完善用户信息绑定的定时事件.cn/login/OtherLoginTemp?pc= + accountInfo.result.PcpopClub, // callBack: function () { // //window.alert(未绑定手机号,请进行绑定); // window.location = //account.autohome.com.cn/login/UserBindMobile; // } // }); // AutohomeJsLoad({ // url: //account.che168.com/login/OtherLoginTemp?pc= + accountInfo.result.PcpopClub, // callBack: function() { // } // }); // return false; // } // if (accountInfo.returncode == 0) { // AutohomeJsLoad({ // url: //account.autohome.com.cn/login/OtherLoginTemp?pc= + accountInfo.result.PcpopClub, // callBack: function() { // var name = getUNcookie() == true ? cookieUN : ; // document.getElementById(divlogin).innerHTML = // 欢迎您, + // name + //退出登录; // autoHeaderObj.init(); // if (jQuery(.loginbar).length>
25) { jQuery(pwd).focus(); return false; } } setTimeout(function () { if (autoHeaderObj.user.isLogin getUNcookie()) { var name = autoHeaderObj.user.un == null ? cookieUN : autoHeaderObj.user.un; var strValidate = (cookieUData == 1 ?需要绑定您的手机后才能继续操作: cookieUData == 2 ?抱歉,您需要先完善个人信息: );; var userStatus = 欢迎您, + name +退出登录+ strValidate; jQuery(loginbar).html(userStatus); //完善用户信息绑定的定时事件.cn/login/OtherLoginTemp?pc= + accountInfo.result.PcpopClub, // callBack: function () { // //window.alert(未绑定手机号,请进行绑定); // window.location = //account.autohome.com.cn/login/UserBindMobile; // } // }); // AutohomeJsLoad({ // url: //account.che168.com/login/OtherLoginTemp?pc= + accountInfo.result.PcpopClub, // callBack: function() { // } // }); // return false; // } // if (accountInfo.returncode == 0) { // AutohomeJsLoad({ // url: //account.autohome.com.cn/login/OtherLoginTemp?pc= + accountInfo.result.PcpopClub, // callBack: function() { // var name = getUNcookie() == true ? cookieUN : ; // document.getElementById(divlogin).innerHTML = // 欢迎您, + // name + //退出登录; // autoHeaderObj.init(); // if (jQuery(.loginbar).length0) { // var strValidate = ; // if (isViewDialog == 1) { // strValidate = (cookieUData == 1 // ?需要绑定您的手机后才能继续操作// : cookieUData == 2 // ?抱歉,您需要先完善个人信息// : );; // } // jQuery(.loginbar) // .html(欢迎您, + // name + //退出登录+ // strValidate); // } // //验证查看对话是否弹层 // if (jQuery(#dhbox).css(display) == none) { // document.domain = autohome.com.cn; // //if (cookieUData == 1) { // // popmobilebind.init(); // // return false; // //} else if (cookieUData == 2) { // // popUpNickNameFun.init(); // // return false; // //} // if (!stepRegister()) // return false; // } else { // if (cookieUData == 1 cookieUData == 2) { // return; // } // } // if (typeof callback == function) { // callback(); // } // return true; // } // }); // AutohomeJsLoad({ // url: //account.che168.com/login/OtherLoginTemp?pc= + accountInfo.result.PcpopClub, // callBack: function() {} // }); // } else { // if (accountInfo.returncode == 2010202) { // window.location = //account.autohome.com.cn/login/; // return false; // } else if (accountInfo.returncode == 2010105) { // alert(账号或密码错误); // } else { // alert(accountInfo.message); // } // return false; // } // } // } //}); } //回车登录 AutoBlogReply[loginkeydown] = function (evt, obj, isViewDialog) { evt = evt ? evt : (window.event ? window.event : null); if (13 == evt.keyCode) { evt.returnValue = false; evt.cancel = true; if (isViewDialog == 1) { AutoBlogReply.Login1(obj); } else { AutoBlogReply.Login(obj); } } }; //查看对话 AutoBlogReply[GetDialogue] = function (replyid) { jQuery.ajax({ url: //reply.autohome.com.cn/ReceiveRequest/GetDialogue.ashx?appid= + appid + &replyid= + replyid + &datatype=jsonp, dataType: jsonp, jsonp: callback, jsonpCallback: jsonpCallback5, success: function (data) { if (data == null) { return; } var html =; jQuery.each(data, function (i, v) { html +=
; if (v[rmemberid] == getUNcookie() == true ? cookieUID : ) { if (v.rmemberid == _authorId) { html +=+ ($(#author_nickName).text() v[rmembername]) +; } else { html +=+ v[rmembername] +; } } else { if (v.rmemberid == _authorId) { html +=+($(#author_nickName).text() v[rmembername]) +; } else { html +=+ v[rmembername] +; } } //console.log(v); if (v.rmemberid == _authorId) { html +=
0) { if (v[rtargetmemberid] == getUNcookie() == true ? cookieUID : ) { if (v.targetmemberid == _authorId) { html += 回复+ ($(#author_nickName).text() v[targetname]) ++
; } } else { if (v.targetmemberid == _authorId) { html += 回复+ ($(#author_nickName).text() v[targetname]) ++
发表评论