添加弹窗
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<view style="width: 100%; height: 200px">
|
<view style="width: 100%; height: 200px">
|
||||||
<view v-if="show" style="height: 100%;display: flex;align-items:center;justify-content:center;color: #fff;font-size: 38rpx;text-align: center;">
|
<view v-if="show" style="height: 100%;display: flex;align-items:center;justify-content:center;color: #fff;font-size: 38rpx;text-align: center;">
|
||||||
此设备暂不支持观看当前视频<br/>请移步到安卓手机进行学习!
|
此设备暂不支持观看当前视频<br/>请移步到安卓手机进行学习!
|
||||||
</view>
|
</view>
|
||||||
<div class="" v-else style="background-color: #000" ref="videoContent" @tap="renderScript.handleClick"
|
<div class="" v-else style="background-color: #000" ref="videoContent" @tap="renderScript.handleClick"
|
||||||
id="url-player-test" :videoData="videoData" :winWidth="winWidth" :winHeight="winHeight"
|
id="url-player-test" :videoData="videoData" :winWidth="winWidth" :winHeight="winHeight"
|
||||||
:currentVideoList="currentVideoList" :firstTime="firstTime" :isfresh="isfresh" :platform="platform"
|
:currentVideoList="currentVideoList" :firstTime="firstTime" :isfresh="isfresh" :platform="platform"
|
||||||
@@ -409,6 +409,24 @@
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
if (this.$platform == 'ios') {
|
||||||
|
console.log('不符合播放条件');
|
||||||
|
if (this.currentVideo.type == 1 && res.video.m3u8Url == null || this.currentVideo.type == 1 && res.video.m3u8Url == '') {
|
||||||
|
// 只存在私有加密
|
||||||
|
this.show = true
|
||||||
|
uni.showModal({
|
||||||
|
content: '抱歉,苹果手机不支持此加密视频格式,您可以在安卓端观看本视频',
|
||||||
|
confirmText: '知道了',
|
||||||
|
showCancel: false,
|
||||||
|
success: function (res) {
|
||||||
|
if (res.confirm) {
|
||||||
|
// uni.navigateBack({delta: 2})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
var data = {
|
var data = {
|
||||||
...res.video,
|
...res.video,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user