'+htmlb+'

关键词'+articleKeyWords+'

'+articleDigest+'

直达链接 >
'; } if(currpage*1+1 == totalNums*1){//当前页为最后一页 lookgd.hide(); } if(iserch){//如果点击搜索 $("#contents").html(htmlq); } else{ $("#contents").html($("#contents").html() + htmlq); } if(totalNum == 0){ $("#contents").html("
  • 很抱歉!
    未能检索到您想要的内容,建议您
    通过平安全站检索再次查找~

  • "); } $(".zhidalianjie").each(function(){ $(this).click(function(){ var attid = $(this).attr("attid"); var urlsva="//www.pingan.com/cms-tmplt/portalJsonpController.do?method=articleDetail&articleId="+attid; $.ajax({ url : urlsva,//请求的方法或地址 type : 'POST',//请求类型 async : false, callback:"callback", data:{ }, dataType : 'jsonp',//返回数据格式 success : function(res){ var jumLink=res.fromLink; //window.location.href=jumLink; window.open(jumLink,"_blank"); } }); }); }); } }); } function urlPara(v){//----获取url值 var url = window.location.search; if (url.indexOf(v) != -1){ var start = url.indexOf(v)+v.length; var end = url.indexOf('&',start) == -1 ? url.length : url.indexOf('&',start); return url.substring(start,end); } else { return '';} }; $(document).ready(function(){ currpage=1; txt_serch=searchValue.val(); if($.trim(txt_serch)=="请输入关键字"){ txt_serch=""; } if(urlPara('keyword=')){ common_search(true,1139,decodeURI(urlPara('keyword=')));//---初始化显示全 $("#searchValue").val(decodeURI(urlPara('keyword='))); var reg = /\?keyword=$/; $("#jiansuo_link").size() && reg.test($("#jiansuo_link").attr("href")) && ($("#jiansuo_link").attr({ "href": $("#jiansuo_link").attr("href") + decodeURI(urlPara('keyword=')) })); }else{ common_search(true,1139,'');//---初始化显示全部 } }); lookgd.on('click', function(event) {//查看更多 currpage++; //common_search(false); }); serchs.on('click', function(event) { txt_serch=searchValue.val(); if(!check_Null(txt_serch) || $.trim(txt_serch)=="请输入关键字"){ return false; } else{ currpage=1; common_search(true,$("#hotserch li.active").attr("newsid"),''); } }); $("#hotserch").on('click', function(event) { var target=event.target; $("#hotserch li").removeClass('active'); $(target).addClass('active'); var hothtml=$.trim($(target).text()); var newsid = $(target).attr("newsid"); if(hothtml=="优惠来源:"){ return false; } txt_serch="";//(hothtml=="全部" ? "" : ); currpage=1; common_search(true,newsid,''); }); //----滚动加载 $(window).scroll(function(){ if($(document).scrollTop()>=$(document).height()-$(window).height()){ //alert("到底啦!"); currpage++; common_search(false,$("#hotserch li.active").attr("newsid"),txt_serch); } }); //-------------- var search_vau="";