Commit d82f9f93 authored by mengqr's avatar mengqr

改的啥我也忘了

parent aa32dd43
......@@ -10,7 +10,7 @@
<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="">
<!-- 倒计时框 -->
<div class="countTime" v-if="imgShow==true">
<div class="countTime" v-if="imgShow==true&&buttonType!=6">
<span class="countTimeText">您还没有购买,可试看{{countTimes}}S</span>
<img class="countTimeImg" src="../common/img/tryButton.png" alt="">
</div>
......@@ -863,6 +863,8 @@ this.pten = false
// alert("sadfa第三个")
if(res.data.data.lvrIsFree==0){
if(res.data.data.lvrStatus==1){
this.buttonType=6
this.imgShow=true//显示暂无主播
this.url=res.data.data.lvpPullUrl
this.urlStor=res.data.data.lvpPullUrl
}else{
......@@ -923,6 +925,8 @@ this.pten = false
if(res.data.data.lvrStatus==1){
this.url=res.data.data.lvpPullUrl
this.urlStor=res.data.data.lvpPullUrl
this.buttonType=4
this.imgShow=false//显示暂无主播
}else{
alert("当前直播间未开播")
this.buttonType=4
......
......@@ -299,7 +299,7 @@ export default {
aspectRatio: '16:9', // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
sources: [{
type: "application/x-mpegURL", // 类型
type: "video/mp4", // 类型
src: '' // url地址
}],
poster: '', // 封面地址
......@@ -353,7 +353,8 @@ export default {
},
mounted() {
this.liveList()
this.ifIos()
// this.liveList()
this.videoList()
this.getHeight()
this.pay_info()
......@@ -435,6 +436,25 @@ export default {
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(){
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