Commit 671f9f5b by libai

测试

parent 3e6fd913
......@@ -363,7 +363,12 @@ $(function(){
if(sessionStorage.jump=='undefined'){
sessionStorage.jump=1
}
loginGo()
try{
loginGo()
} catch (e) {
console.log(e)
}
var scrollOk=true;
var pageNumber=1
var typeNum=1
......
......@@ -187,10 +187,10 @@ $(function(){
var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
var iosUrl=details.videos[0].url.replace("flv","mp4")
$(".recommend-swiper").html('<video poster="https://zhibocdn.yabolive.net/comm'+details.videos[0].cover+'" autoplay playsinline class="video" src="https://big.bgp.ourpow.com/comm'+iosUrl+'" id="videoElement" controls loop></video>')
$(".recommend-swiper").html('<video poster="https://zhibocdn.yabolive.net/comm'+details.videos[0].cover+'" autoplay playsinline class="video" src="https://zhibocdn.yabolive.net/comm'+iosUrl+'" id="videoElement" controls loop></video>')
}else{
$(".recommend-swiper").html('<video poster="https://zhibocdn.yabolive.net/comm'+details.videos[0].cover+'" autoplay class="video" src="" id="videoElement" controls loop></video>')
flvPlay('https://big.bgp.ourpow.com/comm'+details.videos[0].url+'')
flvPlay('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
}
// //console.log('https://zhibocdn.yabolive.net/comm'+details.videos[0].url+'')
var html=[];
......
......@@ -218,7 +218,7 @@ $(function(){
html+='<video autoplay="" class="video" src="" id="videoElement" controls="" loop="" poster="https://zhibocdn.yabolive.net/comm'+videoList.videos[0].cover+'"></video>';
$(".video-play-box").html(html)
var flvUrl=videoList.videos[0].url.replace("mp4","flv")
flvPlay('https://big.bgp.ourpow.com/comm'+flvUrl+'')
flvPlay('https://zhibocdn.yabolive.net/comm'+flvUrl+'')
if(data.selfUp==1) var html='<div><img src="images/icon1.png" alt=""><span>'+data.comment+'</span></div><div class="good-box"><img class="good-btn" data-type="1" src="images/icon2-click.png" alt=""><span>'+data.up+'</span></div>';
else var html='<div><img src="images/icon1.png" alt=""><span>'+data.comment+'</span></div><div class="good-box"><img class="good-btn" data-type="0" src="images/icon2.png" alt=""><span>'+data.up+'</span></div>';
$(".video-btn-box").html(html)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment