+86-
Please Choose Your Language
  • ' }else { tempHtml += '
  • '+el.prodName+'

    '+data.currencySymbol+' '+el.shopProdPrice+'
  • ' } }else { if(el.prodDiscountPrice && el.prodDiscountPrice != el.prodPrice){ tempHtml += '
  • '+el.prodName+'

    '+data.currencySymbol+' '+el.prodDiscountPrice+'
    '+data.currencySymbol+' '+el.prodPrice+'
  • ' }else { tempHtml += '
  • '+el.prodName+'

    '+data.currencySymbol+' '+el.prodPrice+'
  • ' } } }); return tempHtml; } //关联产品请求 function prodAjax(encodePkId){ $.ajax({ url: '/phoenix/admin/videoExpand/getDetail?videoId='+encodePkId, type: 'get', success: function(xhr) { var data = JSON.parse(xhr); console.log('data',data) //标题 if(data.video.videoName){ $('.windowPlayWrapProd .prodDiv .prod-title').text(data.video.videoName) } //描述 if(data.video.videoDesc){ $('.windowPlayWrapProd .prodDiv .prod-desc').html(data.video.videoDesc) }else { $('.windowPlayWrapProd .prodDiv .prod-desc').addClass('hide'); } if(data.products && data.products.length > 0){ $('.prod-list').html(prodHtmlrender(data)) } phoenixSite.payCoinExchange.handleElement($('.windowPlayWrapProd')); } }) } function priviewVideo(){ var player; $(".sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530.sitewidget-atlasList .atlasList-item").mouseover(function(){ try{ var _that = $(this).find(".video_detail_play_view").find("source"); if(_that.length > 0){ var _videoSrc = $(_that).attr("data-video-src"); var _this = $(this); if(!$(_that).attr("src")){ $(_that).attr("src",_videoSrc); player = videojs($(_this).find(".video_detail_play_view")[0],{ muted: true,controls: false,}); }else{ player = videojs($(_this).find(".video_detail_play_view")[0]); }; player.on('loadstart',function () { player.play(); }); player.on('loadedmetadata',function () { console.log('loadedmetadata---视频源数据加载完成----') player.play(); }); setTimeout(function(){ player.play(); },1000) setTimeout(function(){ $(_this).find(".video-js").css("z-index",6); $(_this).find(".addPriviewVideo").removeClass("fa fa-play-circle-o playCircle"); },50) } }catch(e){ console.log(e); } }); $(".sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530.sitewidget-atlasList .atlasList-item").mouseout(function(){ try{ var _that = $(this).find(".video_detail_play_view").find("source"); if(_that.length > 0){ var _this = $(this); setTimeout(function(){ $(_this).find(".addPriviewVideo").addClass("fa fa-play-circle-o playCircle"); $(_this).find(".video-js").css("z-index",-1); },50); if(player){ setTimeout(function(){ player.pause(); },1000) } } }catch(e){ console.log(e); } }); } var playMode = 'alertPlayer'; var videoProdState = 0 $('.item-desc a').click(function(){ $(this).parents('.atlasList-item').find('.item-box>a').click(); }) $('.sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530 .playCircle').each(function(index) { var thirdPartyLink = $(this).attr('thirdPartyLink'); var videoSource = $(this).attr('videoSource'); var encodeVideoId = $(this).attr('encodeVideoId'); var encodePkId = $(this).attr('encodePkId'); var _this = $(this); if ('0' == videoSource || '' == videoSource) { var url = ' /phoenix/admin/video/url?photoId=' + encodeVideoId; if(playMode == 'windowPlayer'){ _this.attr('href', ''); (function(index){ $.ajax({ url: url, type: 'get', success: function(xhr) { var data = JSON.parse(xhr); if (data.video_url) { var httpU1 = data.video_url.substring(0, 2); var httpU2 = data.video_url.substring(0, 4); var httpU3 = data.video_url.substring(0, 5); var endVideoUrl = ''; if (httpU1 == '//' || 'http' == httpU2 || 'https' == httpU3) { _this.attr('href', data.video_url); var endVideoUrl = data.video_url; } else { _this.attr('href', '//' + data.video_url); var endVideoUrl = '//' + data.video_url; } var isM3u8Video = Boolean(endVideoUrl.indexOf('mediaType=m3u8') > -1); var videoHtml = ''; var ua = navigator.userAgent.toLowerCase(); var urlHref; if(_this.nextAll('video').attr('data-video-mp4Url') != '') { urlHref = _this.nextAll('video').attr('data-video-mp4Url'); }else{ urlHref = _this.nextAll('video').attr('data-video-public'); } if(ua.match(/MicroMessenger/i)=="micromessenger"){ videoHtml = '

      '; }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-20200909153530 .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 = ' '; } $($(".sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530 .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) } } }); } } $('.sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530 .playCircle').show() }); var timerVideoList = setInterval(function(){ if($('.sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530.sitewidget-atlasList .atlasList-item').length > 0){ clearInterval(timerVideoList); } }) function is_weixn(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i)=="micromessenger") { $('.sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530.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(); }); }catch(e){try{console && console.log && console.log(e);}catch(e){}} /*id='u_8acd8de3d90942fd903f5deee7b58f8e' guid='u_8acd8de3d90942fd903f5deee7b58f8e' pm_script='sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530' jumpTo='ZqUNYiVchgBW' type='text/javascript'*/ try{ (function(window, $, undefined) { $(function() { var categoryIdPagination = "-1"; if (categoryIdPagination == '-1') { $.cookie('PFGC', '', { expires: -1 }); } else { $.cookie('PFGC', 'infoGroupId_' + categoryIdPagination, { expires: 24 * 60 * 60, path: '/' }); } }); })(window, jQuery) }catch(e){try{console && console.log && console.log(e);}catch(e){}} /*id='u_645cb2dc8eba42739aa668d84bc3dfdf' guid='u_645cb2dc8eba42739aa668d84bc3dfdf' pm_script='sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530' jumpTo='ZqUNYiVchgBW' type='text/javascript'*/ try{ (function(window, $, undefined){ })(window, jQuery); }catch(e){try{console && console.log && console.log(e);}catch(e){}} /*id='u_e810038b2f5346139b1b23aec469387e' guid='u_e810038b2f5346139b1b23aec469387e' pm_script='sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530' jumpTo='ZqUNYiVchgBW' type='text/javascript'*/ try{ (function(window,$,undefined){ $(function(){ phoenixSite.commentListMy.getUserReview('sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530'); onloadHack(function(){ $('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530').find(".pagination").click(function(){ var _offsetTop = $('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530').offset().top; _offsetTop -= 100; if (_offsetTop) { scrollTo(0,_offsetTop); } }); $('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530').find(".paging").click(function(){ var _offsetTop = $('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530').offset().top; _offsetTop -= 100; if (_offsetTop) { scrollTo(0,_offsetTop); } }); }); //设置图片 function setPhotoImg(){ $('.'+'sitewidget-323afefd-96dd-46bc-8003-8fb98c9357aa-20200909153530').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, $);

          Dagiti Napardas a Links

          Kategoria ti Produkto

          Tulong

          Mangibati iti Mensahe
          Mangipatulod Kadakami iti Mensahe
           +86- 18988548012
          Karapatan ti kopia © 2024 GuangDong Future Optoelectronics Technology Co., Ltd. Amin a karbengan ket naisagana. | Mapa ti Site  | Suportaran ni leadong.com