添加弹窗

This commit is contained in:
@fawn-nine
2024-07-23 14:18:56 +08:00
parent 8004ee57c1
commit f76423d222

View File

@@ -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,
}; };