';
}else{
zixun_html += '
';
}
zixun_html += '
';
zixun_html += '
';
zixun_html += '
';
zixun_html += '
';
zixun_html += '
';
zixun_html += '
';
zixun_html += '
';
zixun_html += '
';
zixun_html += '
';
zixun_html += '';
}else{
right_html += '
';
if(zixun_id.indexOf("ARTI") != -1 || zixun_id.indexOf("PHOA") != -1){
right_html += '
';
}else{
right_html += '
';
}
right_html += '
' + arr_zixun[i].title + '
';
right_html += '
';
right_html += '
';
right_html += '
';
right_html += '
';
right_html += '
';
right_html += '
';
right_html += '';
}
zixun_num ++;
$(".wlty19324_con02 .col_w_700 ul").html(zixun_html);
$(".wlty19324_con02 .col_w_440 ul").html(right_html);
$(".wlty19324_con02 .col_w_440 ul:last-child").append('
');
geturl(url,"zixun");
$(".wlty19324_con02 .col_w_700 ul li").each(function(i){
$(this).find(".share_icon a").click(function(){
var href=$(".wlty19324_con02 .col_w_700 ul li").eq(i).find(".imgL a").attr("href");
var title=$(".wlty19324_con02 .col_w_700 ul li").eq(i).find(".textCon .text h3 a").text();
var shaimg=$(".wlty19324_con02 .col_w_700 ul li").eq(i).find(".imgL img").attr("src");
shareObj.shareUrl = href;
shareObj.shareTitle = title;
shareObj.pic = shaimg;
shareObj.summary ="";
console.log(shaimg+title);
})
})
$(".wlty19324_con02 .col_w_440 ul li").each(function(i){
$(this).find(".share_icon a").click(function(){
var href_1=$(".wlty19324_con02 .col_w_440 ul li").eq(i).find(".img a").attr("href");
var title_1=$(".wlty19324_con02 .col_w_440 ul li").eq(i).find(".textCon .text p a").text();
var shaimg_1=$(".wlty19324_con02 .col_w_440 ul li").eq(i).find(".img img").attr("src");
shareObj.shareUrl = href_1;
shareObj.shareTitle = title_1;
shareObj.pic = shaimg_1;
shareObj.summary ="";
console.log(title_1+shaimg_1);
})
})
}
}
})
function geturl(url,can){
$.ajax({
//url:"https://api.app.cctv.cn/api/page/ipad/HandheldApplicationSink/7.0.0/"+pageID,
url:url,
type:"get",
dataType:"jsonp",
jsonp:"cb",
async:"false",
jsonpCallback:can+cb,
success:function(data){
//console.log(data.id!=undefined);
if(can == "zixun"){
if(data.id!=undefined){
//console.log(data.curl);
$("#id"+data.id).find(".imgL").find("a").attr("href",data.url);
$("#id"+data.id).find(".img").find("a").attr("href",data.url);
$("#id"+data.id ).find(".textCon h3").find("a").attr("href",data.url);
$("#id"+data.id ).find(".textCon p").find("a").attr("href",data.url);
}else{
$("#id"+data.vid).find(".imgL").find("a").attr("href",data.curl);
$("#id"+data.vid).find(".img").find("a").attr("href",data.curl);
$("#id"+data.vid ).find(".textCon h3").find("a").attr("href",data.curl);
$("#id"+data.vid ).find(".textCon p").find("a").attr("href",data.curl);
var keywords = data.keywords.split(",");
var key_num = '';
var key_html = '';
if(keywords!=null || keywords!=undefined){
key_num = keywords.length;
for(var j=0;j
'+keywords[j]+'';
}
$("#id"+data.vid ).find(".textCon text").find(".label").html(key_html);
//console.log(key_html);
}
}
}else{
if(data.id!=undefined){
//console.log(data.curl);
$("#id"+data.id).find("a").attr("href",data.url);
}else{
$("#id"+data.vid).find("a").attr("href",data.curl);
}
}
}
});
}