';
}else if(isM3u8Video){
videoHtml = '
';
}else{
if(videoProdState == '1'){
videoHtml = '
';
}else{
videoHtml = '
';
}
}
var VideoPlayerMuted = true;
var maxWidth = '700px';
var maxHeight = '500px';
var opacity = 0.9;
if(0 == "0"){
VideoPlayerMuted = true;
}else{
VideoPlayerMuted = false
}
var className = 'videoBoxPlayWrap windowPlayWrap'
if(videoProdState == '1'){
maxWidth = '1200px';
maxHeight = '490px';
opacity= 0.74;
className = 'videoBoxPlayWrap windowPlayWrap windowPlayWrapProd'
}
$($(".sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840 .item-box")[index]).find('.playCircle').colorbox({
opacity: opacity,
maxWidth: maxWidth,
maxHeight: maxHeight,
width: "100%",
height: "100%",
//iframe: isM3u8Video?null:true,
iframe: false,
//html:isM3u8Video?videoHtml:null,
html:videoHtml,
fixed: true,
className: className,
onComplete:function(){
var m3u8Id = "video-list-"+index;
videojs(m3u8Id,{
muted: VideoPlayerMuted,autoplay: true,
})
if(videoProdState == '1'){
//插入产品列表ajax请求
prodAjax(encodePkId)
}
},
onClosed:function(){
var player = videojs("video-list-"+index);
player.dispose();
}
});
}
}
});
})(index)
}else{
(function(index){
console.log("=====")
})()
}
} else {
if(playMode == 'windowPlayer'){
_this.attr('href', thirdPartyLink);
var videoHtml = '';
var iframeState = true;
var className = 'videoBoxPlayWrap windowPlayWrap'
var maxWidth = '700px';
var maxHeight = '500px';
var opacity = 0.9;
if(videoProdState == '1'){
maxWidth = '1200px';
maxHeight = '490px';
opacity= 0.74;
className = 'videoBoxPlayWrap windowPlayWrap windowPlayWrapProd';
iframeState = false;
videoHtml = '
';
}else {
videoHtml = '
';
}
try {
$($(".sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840 .item-box")[index]).find('.playCircle').colorbox({
opacity: opacity,
maxWidth: maxWidth,
maxHeight: maxHeight,
width: "100%",
height: "100%",
iframe: iframeState,
html:videoHtml,
fixed: true,
className: className,
onComplete:function(){
if(videoProdState == '1'){
//插入产品列表ajax请求
prodAjax(encodePkId)
}
},
onClosed:function(){
// 在清理前移除iframe
$('.cboxIframe').remove();
}
});
} catch(e) {
console.log('清理iframe时出错:', e);
}
}
}
$('.sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840 .playCircle').show()
});
});
}catch(e){try{console && console.log && console.log(e);}catch(e){}}
/*id='u_4be870955966485887dc971ad909ea8c' guid='u_4be870955966485887dc971ad909ea8c' pm_script='sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840' jumpTo='vEUVZjHtOeuZ' type='text/javascript'*/
try{
(function(window, $, undefined) { $(function() {
var categoryIdPagination = "hmKUpfAUETIj";
if (categoryIdPagination == '-1') {
$.cookie('PFGC', '', {
expires: -1
});
} else {
$.cookie('PFGC', 'infoGroupId_' + categoryIdPagination, {
expires: 24 * 60 * 60,
path: '/'
});
}
});
function is_weixn(){
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i)=="micromessenger") {
$('.sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840.sitewidget-atlasList .atlasList-item').each(function(){
if($(this).find('video').attr('data-video-mp4Url') != ''){
$(this).find('.addPriviewVideo').attr('data-prod_url',$(this).find('video').attr('data-video-mp4Url'));
$(this).find('video source').attr('data-video-src',$(this).find('video').attr('data-video-mp4Url'));
$(this).find('video source').attr('type','video/mp4');
}
})
}
}
is_weixn();
})(window, jQuery)
}catch(e){try{console && console.log && console.log(e);}catch(e){}}
/*id='u_6c9c9b694c9a430ea735dbb46851de5d' guid='u_6c9c9b694c9a430ea735dbb46851de5d' pm_script='sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840' jumpTo='vEUVZjHtOeuZ' type='text/javascript'*/
try{
(function(window, $, undefined){
})(window, jQuery);
}catch(e){try{console && console.log && console.log(e);}catch(e){}}
/*id='u_209fc82a630b4ad3a41ba79b42ac39a5' guid='u_209fc82a630b4ad3a41ba79b42ac39a5' pm_script='sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840' jumpTo='vEUVZjHtOeuZ' type='text/javascript'*/
try{
(function(window,$,undefined){
$(function(){
phoenixSite.commentListMy.getUserReview('sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840');
onloadHack(function(){
$('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840').find(".pagination").click(function(){
var _offsetTop = $('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840').offset().top;
_offsetTop -= 100;
if (_offsetTop) {
scrollTo(0,_offsetTop);
}
});
$('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840').find(".paging").click(function(){
var _offsetTop = $('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840').offset().top;
_offsetTop -= 100;
if (_offsetTop) {
scrollTo(0,_offsetTop);
}
});
});
//设置图片
function setPhotoImg(){
$('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20210919234840').find(".atlasList-item").each(function(){
var _videoSrc = $(this).find(".item-box a.playCircle").attr("thirdpartylink");
if (!!_videoSrc){
var _formatSrc = _videoSrc.split(".");
_formatSrc = _formatSrc[_formatSrc.length - 1];
if (_formatSrc == 'mp4' || _formatSrc == 'm3u8') {
var _photoImgSrc = $(this).find(".item-box a.atlasList_img source").attr("srcset");
var _imgSrc = $(this).find(".item-box a.atlasList_img img").attr("src");
if (_photoImgSrc.indexOf("no_pic") > 0 || _imgSrc.indexOf("no_pic") > 0){
var imgSrc = _videoSrc + "?vframe/jpg/offset/1";
$(this).find(".item-box a.atlasList_img source").attr("srcset", imgSrc);
$(this).find(".item-box a.atlasList_img img").attr("src", imgSrc);
}
}
}
});
}
});
})(window,jQuery)
}catch(e){try{console && console.log && console.log(e);}catch(e){}} })(window, $);