';
_html += '
';
_html += '
';
_html += '
';
_html += '
'+_keyword+'
';
_html += '
';
_html += '
+1';
_html += '
';
_html += '
';
_html += '';
}
oConBox.append(_html);
Echo.init({
offset: 0, //离可视区域多少像素的图片可以被加载
throttle:10 //图片延时多少毫秒加载
});
pcmarginright();
_lanmuzanurlELMTqyzJzaGLoNQP5mcKVn6A190901+='&r='+Math.random();
_videoObj._ajax(_lanmuzanurlELMTqyzJzaGLoNQP5mcKVn6A190901,"jsonp_callback","cb"+new Date().getTime(),getdianzailistELMTqyzJzaGLoNQP5mcKVn6A190901);
if(data.length<_lanmu_nELMTqyzJzaGLoNQP5mcKVn6A190901){
gundongsELMTqyzJzaGLoNQP5mcKVn6A190901 = false;
$(".dyw18929-loading").hide();
$(".dyw18929-loadingno").show();
}else{
gundongsELMTqyzJzaGLoNQP5mcKVn6A190901 = true;
}
}
$(window).on('click','.dyw18929-tablist .dyw18929-newvideo ul li .jctj-xin .xin-right','',function(){
var getDianzanNum = Number($(this).attr("dianzan_num"));
if(!$(this).hasClass('xin-rightclick')){
$(this).addClass('xin-rightclick');
$(this).html(unitConversionELMTqyzJzaGLoNQP5mcKVn6A190901(getDianzanNum+1));
$(this).siblings().addClass('addone').fadeIn(function(){
$(this).fadeOut();
});
var zanshu = $(this).attr('class').split(" ")[2];
_videoObj._ajax("//api.itv.cntv.cn/praise/add?type=other&id="+zanshu+"&num=1",'jsonp_callback','bfunction',addFELMTqyzJzaGLoNQP5mcKVn6A190901)
}
});
function addFELMTqyzJzaGLoNQP5mcKVn6A190901(data){};
function getdianzailistELMTqyzJzaGLoNQP5mcKVn6A190901(data){
var data=data.data;
for(var a in data){
if(data[a] <= 9){
var sjs = _videoObj._RandomNum(10, 90);
$("."+a).html(unitConversionELMTqyzJzaGLoNQP5mcKVn6A190901(data[a]+sjs)).attr("dianzan_num",data[a]+sjs);
_videoObj._ajax("//api.itv.cntv.cn/praise/add?type=other&id="+a+"&num="+data[a]+sjs,'jsonp_callback','b'+a+sjs,function(){})
}else{
$("."+a).html(unitConversionELMTqyzJzaGLoNQP5mcKVn6A190901(data[a])).attr("dianzan_num",data[a]);
}
}
}
var gundongsELMTqyzJzaGLoNQP5mcKVn6A190901 = true;
addPullLoaderELMTqyzJzaGLoNQP5mcKVn6A190901();
function addPullLoaderELMTqyzJzaGLoNQP5mcKVn6A190901() {
if(judgeisMobile()){
window.addEventListener('scroll', pullGetMoreELMTqyzJzaGLoNQP5mcKVn6A190901, false);//滚动条滚动执行addcomment方法
}else{
$(window).scroll(pullGetMoreELMTqyzJzaGLoNQP5mcKVn6A190901);
}
}
//上拉加载事件
function pullGetMoreELMTqyzJzaGLoNQP5mcKVn6A190901(ev) {
var sTop = document.body.scrollTop || document.documentElement.scrollTop; //距离body的距离
var dHeight = $(document).height(), //文档的高度
cHeight = window.innerHeight; //可见内容区高度
// cHeight = document.documentElement.clientHeight //wmj20210222
var thisdivheight = $(".dyw18929-loading").height();
var alltopdivheight = $(".dyw18929-loading").offset().top;
var diHeight=dHeight-alltopdivheight-thisdivheight;
var ua = navigator.userAgent.toLowerCase();
if ((ua.indexOf('mqqbrowser') > -1 && ua.indexOf('android') > -1) || (navigator.userAgent.indexOf('UCBrowser') > -1 &&ua.indexOf('android') > -1)) {
cHeight = cHeight + 40; //上面菜单高度
}
if(dHeight-cHeight-diHeight <= sTop){
if(gundongsELMTqyzJzaGLoNQP5mcKVn6A190901){
gundongsELMTqyzJzaGLoNQP5mcKVn6A190901 = false;
setTimeout(function(){
_lanmu_pELMTqyzJzaGLoNQP5mcKVn6A190901++;
if(_lanmu_pELMTqyzJzaGLoNQP5mcKVn6A190901<=50){
_videoObj._ajax(ceshi_ulrELMTqyzJzaGLoNQP5mcKVn6A190901+"vapi/video/vplist.do?chid="+pd_idELMTqyzJzaGLoNQP5mcKVn6A190901+"&mid="+lm_midELMTqyzJzaGLoNQP5mcKVn6A190901+"&p="+_lanmu_pELMTqyzJzaGLoNQP5mcKVn6A190901+"&n="+_lanmu_nELMTqyzJzaGLoNQP5mcKVn6A190901,"cb","cb2",getLanmuconlistELMTqyzJzaGLoNQP5mcKVn6A190901);
}else{
$(".dyw18929-loading").hide();
$(".dyw18929-loadingno").show();
}
},200);
}
}
}
//取消关注
function pcxsmyqx(){
$('.xuqiu18929_lmlb_banner .box .cont button').mouseover(function(e){
e.preventDefault();
if($(this).hasClass('active')){
$(this).addClass('activequxiao');
$(this).mouseout(function(e){
e.preventDefault();
$(this).removeClass('activequxiao');
});
}
});
}
pcxsmyqx();
function jianchaStatus(){
setTimeout(function(){
if(!islogin){
_videoObj._ajax(ceshi_ulrELMTqyzJzaGLoNQP5mcKVn6A190901+"vapi/media/info.do?mid="+lm_midELMTqyzJzaGLoNQP5mcKVn6A190901,"cb","cbLanmulistaaa",getLanmulistaaaELMTqyzJzaGLoNQP5mcKVn6A190901);
}else{
if(userid!=""&&userid!=null&&userid!=undefined){
_videoObj._ajax(ceshi_ulrELMTqyzJzaGLoNQP5mcKVn6A190901+"vapi/media/info.do?mid="+lm_midELMTqyzJzaGLoNQP5mcKVn6A190901+"&uid="+userid,"cb","cbLanmulistaaa",getLanmulistaaaELMTqyzJzaGLoNQP5mcKVn6A190901);
}else{
var tlurl="//reg.cctv.com/openapi/v2/user/getTicket";
$.ajax({
type:"get",
url:tlurl,
dataType:"json",
data:{
"timestamp":timestamp, //当前时间戳
"appid":"dgtGyfXwN9Gcr7ow" //管理员分配给业务线应用的唯一标识
},
xhrFields: {
withCredentials: true
},
crossDomain: true, //添加跨域参数是为了将登录标识(token)带过去验证
success:function(data){
if(data.code=="0"){
var ticket=data.data;
var utlurl="//reg.cctv.com/openapi/v2/user/userInfoByTicket";
$.ajax({
type:"get",
url:utlurl,
dataType:"json",
data:{
"timestamp":timestamp, //当前时间戳
"appid":"dgtGyfXwN9Gcr7ow", //管理员分配给业务线应用的唯一标识
"ticket":ticket
},
xhrFields: {
withCredentials: true
},
crossDomain: true, //添加跨域参数是为了将登录标识(token)带过去验证
success:function(data){
if(data.code=="0"){
userid=data.data.user_id
_videoObj._ajax(ceshi_ulrELMTqyzJzaGLoNQP5mcKVn6A190901+"vapi/media/info.do?mid="+lm_midELMTqyzJzaGLoNQP5mcKVn6A190901+"&uid="+userid,"cb","cbLanmulistaaa",getLanmulistaaaELMTqyzJzaGLoNQP5mcKVn6A190901);
}else{
_videoObj._ajax(ceshi_ulrELMTqyzJzaGLoNQP5mcKVn6A190901+"vapi/media/info.do?mid="+lm_midELMTqyzJzaGLoNQP5mcKVn6A190901,"cb","cbLanmulistaaa",getLanmulistaaaELMTqyzJzaGLoNQP5mcKVn6A190901);
}
}
})
}else{
_videoObj._ajax(ceshi_ulrELMTqyzJzaGLoNQP5mcKVn6A190901+"vapi/media/info.do?mid="+lm_midELMTqyzJzaGLoNQP5mcKVn6A190901,"cb","cbLanmulistaaa",getLanmulistaaaELMTqyzJzaGLoNQP5mcKVn6A190901);
}
}
})
}
}
},300)
}
function getLanmulistaaaELMTqyzJzaGLoNQP5mcKVn6A190901(data){
var data = data.data;
var _oBannerbox = $(".ELMTqyzJzaGLoNQP5mcKVn6A190901 .box");
if(data.isSubed==0){
_oBannerbox.find(".cont button").removeClass("active activequxiao");
}else if(data.isSubed==1){
_oBannerbox.find(".cont button").toggleClass('active');
}
}
/* 微信分享 */
// 微信配置
function _getAjax(url,data,cb,spacial){
$.ajax({
url:url,
type:"get",
data:data,
dataType:'jsonp',
jsonp:"cb",
jsonpCallback:"cb1",
cache:true,
success: function(_data){
cb(_data);
},
timeout:10000,
error:function(){warnbox("请求超时,请检查网络或者重新刷新页面!")}
});
}
function weixinSucess(data){
wx.config({
debug: false,
appId: "wx2723c0deaa5a97e9",
timestamp: data.data.timestamp,
nonceStr: data.data.nonceStr,
signature: data.data.signature,
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage'] // 功能列表,我们要使用JS-SDK的什么功能
});
}
// config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在 页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行。对于用户触发时才调用的接口,则可以直接调用,不需要放在ready 函数中。
wx.ready(function(){
// 获取“分享到朋友圈”按钮点击状态及自定义分享内容接口
wx.onMenuShareTimeline({
title: config.title, // 分享标题
link: window.location.href,
imgUrl: config.img // 分享图标
});
// 获取“分享给朋友”按钮点击状态及自定义分享内容接口
wx.onMenuShareAppMessage({
title: config.title, // 分享标题
desc: config.desc, // 分享描述
link: window.location.href,
imgUrl: config.img, // 分享图标
type: 'link' // 分享类型,music、video或link,不填默认为link
});
onBridgeReady_OptionMenu();
});
wx.error(function(res){
console.log("失败");
});
function onBridgeReady_OptionMenu(){
WeixinJSBridge.call('showOptionMenu');
}
function isdingding_20190304(){
//判断是不是钉钉
var ua = navigator.userAgent.toLowerCase();
return ua.indexOf("dingtalk") >= 0;
}
if(isdingding_20190304()){
dd.ready(function(){
dd.biz.navigation.setRight({
show: true,//控制按钮显示, true 显示, false 隐藏, 默认true
control: true,//是否控制点击事件,true 控制,false 不控制, 默认false
text: '',//控制显示文本,空字符串表示显示默认文本
onSuccess : function(result) {
//如果control为true,则onSuccess将在发生按钮点击事件被回调
dd.biz.util.share({
type: 0, //分享类型,0:全部组件 默认; 1:只能分享到钉钉;2:不能分享,只有刷新按钮
url: window.location.href,
content: config.desc,
title: config.title,
image: config.img,
onSuccess: function() {},
onFail: function(err) {}
})
},
onFail : function(err) {}
});
})
}