Commit d82f9f93 authored by mengqr's avatar mengqr

改的啥我也忘了

parent aa32dd43
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<img v-if="!ifFollow" @click="clickFollow()" class="follow-img" src="../common/img/follow.png" alt=""> <img v-if="!ifFollow" @click="clickFollow()" class="follow-img" src="../common/img/follow.png" alt="">
<img v-if="ifFollow" @click="clickUnFollow()" class="follow-img" src="../common/img/unfollow.png" alt=""> <img v-if="ifFollow" @click="clickUnFollow()" class="follow-img" src="../common/img/unfollow.png" alt="">
<!-- 倒计时框 --> <!-- 倒计时框 -->
<div class="countTime" v-if="imgShow==true"> <div class="countTime" v-if="imgShow==true&&buttonType!=6">
<span class="countTimeText">您还没有购买,可试看{{countTimes}}S</span> <span class="countTimeText">您还没有购买,可试看{{countTimes}}S</span>
<img class="countTimeImg" src="../common/img/tryButton.png" alt=""> <img class="countTimeImg" src="../common/img/tryButton.png" alt="">
</div> </div>
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
</div> </div>
</div> </div>
<div v-if="imgShow==false"> <div v-if="imgShow==false">
<img src="../common/img/vertical-screen.webp" style="height:100vh;width:100%" alt=""> <img src="../common/img/vertical-screen.webp" style="height:100vh;width:100%" alt="">
<!-- <img src="../common/img/video_play.png" style="height:14vw;width:14vw;position: fixed;top:74vw;left:42vw;" @click="goLive()" alt=""> --> <!-- <img src="../common/img/video_play.png" style="height:14vw;width:14vw;position: fixed;top:74vw;left:42vw;" @click="goLive()" alt=""> -->
<span v-if="buttonType==4" style="font-size:4vw;color:white;position: fixed;top:100vw;left:20vw;">直播暂未开始,先看看其它视频吧</span> <span v-if="buttonType==4" style="font-size:4vw;color:white;position: fixed;top:100vw;left:20vw;">直播暂未开始,先看看其它视频吧</span>
</div> </div>
...@@ -863,6 +863,8 @@ this.pten = false ...@@ -863,6 +863,8 @@ this.pten = false
// alert("sadfa第三个") // alert("sadfa第三个")
if(res.data.data.lvrIsFree==0){ if(res.data.data.lvrIsFree==0){
if(res.data.data.lvrStatus==1){ if(res.data.data.lvrStatus==1){
this.buttonType=6
this.imgShow=true//显示暂无主播
this.url=res.data.data.lvpPullUrl this.url=res.data.data.lvpPullUrl
this.urlStor=res.data.data.lvpPullUrl this.urlStor=res.data.data.lvpPullUrl
}else{ }else{
...@@ -923,6 +925,8 @@ this.pten = false ...@@ -923,6 +925,8 @@ this.pten = false
if(res.data.data.lvrStatus==1){ if(res.data.data.lvrStatus==1){
this.url=res.data.data.lvpPullUrl this.url=res.data.data.lvpPullUrl
this.urlStor=res.data.data.lvpPullUrl this.urlStor=res.data.data.lvpPullUrl
this.buttonType=4
this.imgShow=false//显示暂无主播
}else{ }else{
alert("当前直播间未开播") alert("当前直播间未开播")
this.buttonType=4 this.buttonType=4
......
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
aspectRatio: '16:9', // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3") aspectRatio: '16:9', // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。 fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
sources: [{ sources: [{
type: "application/x-mpegURL", // 类型 type: "video/mp4", // 类型
src: '' // url地址 src: '' // url地址
}], }],
poster: '', // 封面地址 poster: '', // 封面地址
...@@ -351,14 +351,15 @@ export default { ...@@ -351,14 +351,15 @@ export default {
zfbOrderType: this.common.isMobile() && this.common.isWX() ? 2 : (this.common.isMobile() ? 3 : 4), zfbOrderType: this.common.isMobile() && this.common.isWX() ? 2 : (this.common.isMobile() ? 3 : 4),
}; };
}, },
mounted() { mounted() {
this.liveList() this.ifIos()
// this.liveList()
this.videoList() this.videoList()
this.getHeight() this.getHeight()
this.pay_info() this.pay_info()
this.isMobile = this.common.isMobile(); this.isMobile = this.common.isMobile();
// 连接mqtt // 连接mqtt
mqtt.connect({ mqtt.connect({
user: request.mqtt.mqttUser, user: request.mqtt.mqttUser,
...@@ -435,6 +436,25 @@ export default { ...@@ -435,6 +436,25 @@ export default {
this.ifcli=false this.ifcli=false
} }
},
//判断是苹果系统还是安卓系统
ifIos(){
let ua = navigator.userAgent.toLowerCase();
//android终端
let isAndroid = ua.indexOf('Android') > -1 || ua.indexOf('Adr') > -1;
//ios终端
let isiOS = !!ua.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if(/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)){
console.log("我是苹果系统")
// alert("我是苹果系统")
// this.playerOptions.sources[0].type='video/mp4'
this.liveList()
}else{
console.log("我是安卓系统")
// this.playerOptions.sources[0].type='application/x-mpegURL'
this.liveList()
}
}, },
clickmessage(){ clickmessage(){
let temp=this.qs.stringify({ let temp=this.qs.stringify({
......
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 to comment