来源 : 央视网
2023-10-05 22:52
内容简介
来源:央视网 更新时间:2023年10月05日 22:52
'
}else{
lefthtml+='
'
}
}else{
if(i==3){
righthtml+='
TOP '+(i+1)+''+datalist1[i].title+''
}else{
righthtml+='
TOP '+(i+1)+''+datalist1[i].title+''
}
}
}
$("#bangdan .left ul").html(lefthtml);
$("#bangdan .right ul").html(righthtml);
}
})
';
//html+='
';
html+='
';
}
$("#pagelunbo").html(html);
newlibrary=true;
/*埋码通用变量 */
var abid = data.data.abId;
var request_id = data.data.request_id;
for (var j = 0; j < data.data.list.length; j++){
rec_list += data.data.list[j].album_id + "/";
}
if(rec_list.length>0){
rec_list = rec_list.substring(0, rec_list.length-1);
}
if(window.innerWidth <= 1024){
product = "tvwap";
rec_type="1";
}else{
product = "pcweb";
rec_type="";
}
if(request_id==""||request_id==undefined){
recordtime;
}else{
recordtime=request_id;
}
var elemtid = $("#elemt3").attr("data-spm");
/*埋码通用变量end */
/*埋码recmd.1.1 推荐列表曝光 */
$(document).ready(function(){
var flag = true;
var a,b,c;
a = $(window).height(); //浏览器窗口高度
var group = $(".content_con5");
$(window).scroll(function(){
if (flag ==false ){
}else{
b = $(this).scrollTop(); //页面滚动的高度
c = group.offset().top; //元素距离文档(document)顶部的高度
if(column_id==="TOPC1451528971114112"|| column_id==="TOPC1451528792881669" || column_id==="TOPC1451558496100826" || column_id==="TOPC1451559129520755" || column_id==="TOPC1451558779639282" || column_id==="TOPC1451558428005729" || column_id==="TOPC1451539894330405"){
}else if((a+b)>c){
//window.goldlog.record("/recmd.1.1", "", "snsScene=vodtpl&product=pcweb&ab_id="+abid+"&elemt_id="+elemtid+"&recordtime="+recordtime, "")
window.goldlog.record("/recmd.1.1", "", "snsScene=vodtpl&product="+product+"&ab_id="+abid+"&v_id="+id+"&rec_list="+rec_list+"&rec_type="+rec_type+"&elemt_id="+elemtid+"&recordtime="+recordtime, "")
flag = false;
}else{
}
}
});
});
/*埋码recmd.1.1 推荐列表曝光 END*/
if(widthresize <= 1024){
setrmtjImgfun(190,240);//设置图片宽高
}else{
show("BottomPageUniversal18897_con05", 0); //轮播
}
var abid = data.data.abId;
var elemtid = $(".content_con5").attr("data-spm");
/*埋码recmd.1.2 底层页推荐点击*/
$(".content_con5 .BottomPageUniversal18897_con05 .content ul li").unbind("click")
$(".content_con5 .BottomPageUniversal18897_con05 .content ul li").bind('click',function(){
var orderl = $(this).attr("data");
var abvn = $(this).attr("datatit");
var abvid = $(this).attr("dataguid");
window.goldlog.record("/recmd.1.2", "", "snsScene=vodtpl&product="+product+"&ab_id="+abid+"&v_id="+id+"&ab_v_id="+abvid+"&ab_v_n="+abvn+"&order="+orderl+"&elemt_id="+elemtid+"&recordtime="+recordtimeing, "")
})
/*埋码recmd.1.2 底层页推荐点击 end*/
}
}
});
}
}
function shuju(){
$(".content_con5 .BottomPageUniversal18897_con05 .left").css("top","100px")
$(".content_con5 .BottomPageUniversal18897_con05 .right").css({"top":"100px",right:0})
var guid1 = guid ;
var serviceId1 = "tvcctv";
var recordtime = new Date().getTime();
var url = '//zy.api.cntv.cn/video/videoinfoByGuid?guid='+guid1+'&serviceId='+serviceId1+'';
$.ajax({
url: url,
dataType: "jsonp",
jsonp: "cb",
cache:true,
jsonpCallback:"aa"+guid,
error: function () {
},
success: function (data) {
{
sun(data.fc, data.sc,guid1,serviceId1);
}
}
});
function sun(fc,sc,guid1,serviceId1) {
var channel_id_a = video_ad_channel_id;
var utdid_a = getCookie1("cna");
var url ='//zy.api.cntv.cn/list/getPCRecommend?utdid='+encodeURIComponent(utdid_a)+'&guid='+guid1+'&type=0&channel_id='+channel_id_a+'&serviceId='+serviceId1+'&fc='+encodeURIComponent(fc)+'&sc='+encodeURIComponent(sc);
var html = '';
var pchtml = '';
$.ajax({
url: url,
cache:true,
dataType: "jsonp",
jsonp: "cb",
jsonpCallback:"bb"+guid,
error: function () {
$(".content_con5").hide();
},
success: function (data) {
if(typeof (data.errcode) !="undefined"){
$(".content_con5").hide();
return;
}
if(data.data.list.length == 0){
$(".content_con5").hide();
}else{
for (var i = 0; i < data.data.list.length; i++){
pchtml+='
';
if(i%2==0){
html+='
';
}else{
html+='
';
}
}
html+='
';
if(widthresize <= 1024){
$("#BottomPageUniversal18897_con05").hide()
$("#BottomPageUniversal18897_con04").show()
$("#pagelunboheng").html(html);
//setrmtjImgfun(163,95);//设置图片宽高
var columnlihwidthheng = $('.BottomPageUniversal18897_con04 .content ul').width()
var columnliheightheng=columnlihwidthheng*0.456*95/163;
$(".BottomPageUniversal18897_con04 .content ul li .image a img").css({'height':columnliheightheng+'px'});
}else{
$("#BottomPageUniversal18897_con04").hide()
$("#BottomPageUniversal18897_con05").show()
$("#pagelunbo").html(pchtml)
setTimeout(function(){
show("BottomPageUniversal18897_con05", 0); //轮播
},0)
}
var showli = 0;
$(".BottomPageUniversal18897_con04 .content .more").click(function(){
showli = showli+4;
for(var i=showli;i<(showli+4);i++){
$(".BottomPageUniversal18897_con04 .content ul li").eq(i).show()
}
if(showli==8){
$(".BottomPageUniversal18897_con04 .content .more").hide()
}
})
//newlibrary=true;
/*埋码通用变量 */
var abid = data.data.abId;
var request_id = data.data.request_id;
for (var j = 0; j < data.data.list.length; j++){
rec_list += data.data.list[j].guid + "/";
}
if(rec_list.length>0){
rec_list = rec_list.substring(0, rec_list.length-1);
}
if(window.innerWidth <= 1024){
product = "tvwap";
rec_type="0";
}else{
product = "pcweb";
rec_type="";
}
if(request_id==""||request_id==undefined){
recordtime;
}else{
recordtime=request_id;
}
var elemtid = $("#elemt3").attr("data-spm");
/*埋码通用变量end */
/*埋码recmd.1.1 推荐列表曝光 */
$(document).ready(function(){
var flag = true;
var a,b,c;
a = $(window).height(); //浏览器窗口高度
var group = $(".content_con5");
$(window).scroll(function(){
if (flag ==false ){
}else{
b = $(this).scrollTop(); //页面滚动的高度
c = group.offset().top; //元素距离文档(document)顶部的高度
if(column_id==="TOPC1451528971114112"|| column_id==="TOPC1451528792881669" || column_id==="TOPC1451558496100826" || column_id==="TOPC1451559129520755" || column_id==="TOPC1451558779639282" || column_id==="TOPC1451558428005729" || column_id==="TOPC1451539894330405"){
}else if((a+b)>c){
//window.goldlog.record("/recmd.1.1", "", "snsScene=vodtpl&product=pcweb&ab_id="+abid+"&elemt_id="+elemtid+"&recordtime="+recordtime, "")
window.goldlog.record("/recmd.1.1", "", "snsScene=vodtpl&product="+product+"&ab_id="+abid+"&v_id="+guid+"&rec_list="+rec_list+"&rec_type="+rec_type+"&elemt_id="+elemtid+"&recordtime="+recordtime, "")
flag = false;
}else{
}
}
});
});
/*埋码recmd.1.1 推荐列表曝光 END*/
/*埋码recmd.1.2 底层页推荐点击*/
$(".content_con5 .BottomPageUniversal18897_con05 .content ul li").unbind("click")
$(".content_con5 .BottomPageUniversal18897_con05 .content ul li").bind('click',function(){
var orderl = $(this).attr("data");
var abvn = $(this).attr("datatit");
var abvid = $(this).attr("dataguid");
window.goldlog.record("/recmd.1.2", "", "snsScene=vodtpl&product="+product+"&ab_id="+abid+"&v_id="+guid+"&ab_v_id="+abvid+"&ab_v_n="+abvn+"&order="+orderl+"&elemt_id="+elemtid+"&recordtime="+recordtime, "")
})
/*埋码recmd.1.2 底层页推荐点击 end*/
}
}
});
}
}
window.onload = function () {
wrapText()
if(column_id==="TOPC1451528971114112"|| column_id==="TOPC1451528792881669" || column_id==="TOPC1451558496100826" || column_id==="TOPC1451559129520755" || column_id==="TOPC1451558779639282" || column_id==="TOPC1451558428005729" || column_id==="TOPC1451539894330405"){
$(".content_con5").css("display","none");
}
};
查看更多评论