修复ios浏览器刷太快时支付弹窗部分被遮挡

This commit is contained in:
2024-12-17 18:47:12 +08:00
parent b5b403c7b1
commit 57cfb4babd

View File

@@ -9,7 +9,7 @@
<!-- #ifdef MP-WEIXIN --> <!-- #ifdef MP-WEIXIN -->
<!-- wxUrl --> <!-- wxUrl -->
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" @timeupdate="timeupdate" <video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" @timeupdate="timeupdate"
@waiting="waiting()" object-fit="cover" v-if="current === index && item.videoUrl" @waiting="waiting()" object-fit="contain" v-if="current === index && item.videoUrl"
:play-strategy="2" :show-loading="true" codec="software" :muted="false" :play-strategy="2" :show-loading="true" codec="software" :muted="false"
:show-center-play-btn="true" :loop="false" @ended="ended" :show-center-play-btn="true" :loop="false" @ended="ended"
@play="videoPlay('myVideo'+item.courseDetailsId)" :enable-progress-gesture="false" @play="videoPlay('myVideo'+item.courseDetailsId)" :enable-progress-gesture="false"
@@ -20,7 +20,7 @@
<!-- #ifndef MP-WEIXIN --> <!-- #ifndef MP-WEIXIN -->
<video :show-fullscreen-btn="false" @click.stop.prevent="isSelectType" :controls="true" <video :show-fullscreen-btn="false" @click.stop.prevent="isSelectType" :controls="true"
@controlstoggle="controlstoggles" @timeupdate="timeupdate" @waiting="waiting()" @controlstoggle="controlstoggles" @timeupdate="timeupdate" @waiting="waiting()"
object-fit="cover" v-if="current === index && item.videoUrl" :play-strategy="2" object-fit="contain" v-if="current === index && item.videoUrl" :play-strategy="2"
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="false" :show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="false"
@ended="ended" @play="videoPlay('myVideo'+item.courseDetailsId)" @ended="ended" @play="videoPlay('myVideo'+item.courseDetailsId)"
:enable-progress-gesture="false" :poster="item.titleImg" :ref="'myVideo'+item.courseDetailsId" :enable-progress-gesture="false" :poster="item.titleImg" :ref="'myVideo'+item.courseDetailsId"
@@ -155,7 +155,7 @@
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-KUAISHOU --> <!-- #ifdef MP-KUAISHOU -->
<uv-popup @maskClick="maskClick" :closeable="true" ref="popupBsss" mode="bottom" custom-style="height: 800rpx;" <uv-popup @maskClick="maskClick" :closeable="true" ref="popupBsss" mode="bottom" custom-style="height: 800rpx;"
:safe-area="false" bgColor="#202020"> :safe-area="true" bgColor="#202020">
<view class="list"> <view class="list">
<view class="list-title flex align-center"> <view class="list-title flex align-center">
{{title}} {{title}}
@@ -186,10 +186,10 @@
<!-- #endif --> <!-- #endif -->
<!-- 购买视频 --> <!-- 购买视频 -->
<u-popup :closeable="true" :custom-style="customStyle" :safe-area-inset-bottom="false" close-icon="close" <u-popup :closeable="true" :custom-style="customStyle" :safe-area-inset-bottom="true" close-icon="close"
close-icon-size="30" close-icon-color="#333333" :mask-custom-style="maskCustomStyle" v-model="showPay" close-icon-size="30" close-icon-color="#333333" :mask-custom-style="maskCustomStyle" v-model="showPay"
border-radius="24" mode="bottom"> border-radius="24" mode="bottom" >
<view class="list"> <view class="list" :style="listStyle">
<view class="list-title flex align-center"> <view class="list-title flex align-center">
<!-- <u-icon name="lock" class="list-title-icon" color="#efbb6b" size="40"></u-icon> --> <!-- <u-icon name="lock" class="list-title-icon" color="#efbb6b" size="40"></u-icon> -->
当前视频 没有播放权限 当前视频 没有播放权限
@@ -305,6 +305,8 @@
var videoAd = null; var videoAd = null;
// #endif // #endif
import {returnIsSafari} from '@/utils/app.js'
export default { export default {
components: { components: {
tkiQrcode, tkiQrcode,
@@ -312,6 +314,7 @@
}, },
data() { data() {
return { return {
isSafari:returnIsSafari(),
//记录未购买视频索引 //记录未购买视频索引
noBuyVideoIndex: null, noBuyVideoIndex: null,
//奖品列表 //奖品列表
@@ -452,6 +455,14 @@
} }
}, },
computed: { computed: {
listStyle(){
if(this.isSafari){
return {
'min-height':'540rpx'
}
}
return ''
},
//当前视频是否可以看广告解锁 //当前视频是否可以看广告解锁
advertising() { advertising() {
return this.videoList.length > 0 ? this.videoList[this.current].advertising == 1 : false return this.videoList.length > 0 ? this.videoList[this.current].advertising == 1 : false
@@ -739,7 +750,9 @@
}, },
showControls(val) { showControls(val) {
//在没有播放视频权限的时候控制中心不隐藏 //在没有播放视频权限的时候控制中心不隐藏
if (!this.videoList[this.current].videoUrl) { const nowVideo=this.videoList[this.current]
const videoUrl=nowVideo?nowVideo.videoUrl:''
if (!videoUrl) {
this.showControls = true this.showControls = true
this.$forceUpdate() this.$forceUpdate()
} }
@@ -1858,7 +1871,9 @@
page { page {
background-color: #000; background-color: #000;
} }
::v-deep .u-drawer-content{
// position: fixed;
}
.videoListCurr { .videoListCurr {
background-color: #ff7581 !important; background-color: #ff7581 !important;
color: #ffffff !important; color: #ffffff !important;