处理ios兼容性问题

This commit is contained in:
2025-01-17 10:08:06 +08:00
parent 08e4f8ae6e
commit 8553c5f2b7
7 changed files with 22 additions and 14 deletions

View File

@@ -6,7 +6,7 @@
"type" : "uni-app:app-android" "type" : "uni-app:app-android"
}, },
{ {
"playground" : "standard", "playground" : "custom",
"type" : "uni-app:app-ios" "type" : "uni-app:app-ios"
} }
] ]

View File

@@ -411,7 +411,7 @@
color: #ffffff; color: #ffffff;
font-size: 15px; font-size: 15px;
z-index: 9999; z-index: 9999;
transition: all .3s ease-in-out; transition: transform .3s ease-in-out;
} }
.u-flex-y-center { .u-flex-y-center {
@@ -426,7 +426,7 @@
} }
.right { .right {
transition: all .3s ease-in-out; transition: transform .3s ease-in-out;
position: absolute !important; position: absolute !important;
right: 20rpx; right: 20rpx;
/* #ifdef H5 */ /* #ifdef H5 */

View File

@@ -67,6 +67,10 @@ let loop=ref(false)
loop.value=true loop.value=true
// #endif // #endif
const props = defineProps({ const props = defineProps({
height:{
type:Number,
default:0
},
item: { item: {
type: Object, type: Object,
defaulr: () => { defaulr: () => {
@@ -435,7 +439,7 @@ let loop=ref(false)
color: #ffffff; color: #ffffff;
font-size: 15px; font-size: 15px;
z-index: 9999; z-index: 9999;
transition: all .3s ease-in-out; transition: transform .3s ease-in-out;
} }
.u-flex-y-center { .u-flex-y-center {
@@ -450,7 +454,7 @@ let loop=ref(false)
} }
.right { .right {
transition: all .3s ease-in-out; transition: transform .3s ease-in-out;
position: absolute !important; position: absolute !important;
right: 20rpx; right: 20rpx;
/* #ifdef H5 */ /* #ifdef H5 */

View File

@@ -2,7 +2,9 @@
<view class="item" @appear="appear" @disappear="disappear" @click.stop :style="{height:height+'px'}"> <view class="item" @appear="appear" @disappear="disappear" @click.stop :style="{height:height+'px'}">
<video class="u-flex-1 video" :show-fullscreen-btn="false" @controlstoggle="controlstoggles" v-if="showVideo" <video class="u-flex-1 video" :show-fullscreen-btn="false" @controlstoggle="controlstoggles" v-if="showVideo"
play-btn-position="center"
show-center-play-btn
:show-play-btn="false"
@timeupdate="timeupdate" @waiting="waiting()" object-fit="cover" @pause="onpause" @click="videoClick()" @timeupdate="timeupdate" @waiting="waiting()" object-fit="cover" @pause="onpause" @click="videoClick()"
@play="videoPlay('myVideo'+item.courseDetailsId,item.courseDetailsId)" :play-strategy="2" @play="videoPlay('myVideo'+item.courseDetailsId,item.courseDetailsId)" :play-strategy="2"
:show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="loop" :show-loading="true" codec="software" :muted="false" :show-center-play-btn="true" :loop="loop"
@@ -334,7 +336,7 @@
const infoStyle = computed(() => { const infoStyle = computed(() => {
return { return {
transform: `translateX(${(!isPlying.value||!props.item.videoUrl)?0:'-110%'})` transform: `translateX(${(!isPlying.value||!props.item.videoUrl)?0:'-750rpx'})`
} }
}) })
@@ -411,7 +413,7 @@
color: #ffffff; color: #ffffff;
font-size: 15px; font-size: 15px;
z-index: 9999; z-index: 9999;
transition: all .3s ease-in-out; transition: transform .3s ease-in-out;
} }
.u-flex-y-center { .u-flex-y-center {
@@ -426,7 +428,7 @@
} }
.right { .right {
transition: all .3s ease-in-out; transition: transform .3s ease-in-out;
position: absolute !important; position: absolute !important;
right: 20rpx; right: 20rpx;
/* #ifdef H5 */ /* #ifdef H5 */
@@ -434,7 +436,7 @@
transform: translateY(-50%); transform: translateY(-50%);
/* #endif */ /* #endif */
/* #ifdef APP */ /* #ifdef APP */
top: 500px; bottom: 100px;
/* #endif */ /* #endif */
z-index: 999; z-index: 999;
color: #fff; color: #fff;

View File

@@ -322,7 +322,7 @@
scrollTop: 0, scrollTop: 0,
items: [], items: [],
scrollHeight: 0, scrollHeight: 0,
height: 400 height: 300
}) })
const refXuanjiList = ref(null) const refXuanjiList = ref(null)
@@ -334,8 +334,10 @@
const height = 44 const height = 44
const marginBottom = 10 const marginBottom = 10
const oneItemHeight = height + marginBottom const oneItemHeight = height + marginBottom
xuanjiData.scrollTop = Math.ceil((nowIndex.value + 1) / 3) * oneItemHeight - (xuanjiData.height) / 2 + const scrollTop= Math.ceil((nowIndex.value + 1) / 3) * oneItemHeight - (xuanjiData.height) / 2 +
oneItemHeight / 2 oneItemHeight / 2
console.log(scrollTop);
xuanjiData.scrollTop =scrollTop<0?0:scrollTop
return return
// #endif // #endif

View File

@@ -64,7 +64,7 @@
"unipush" : {} "unipush" : {}
}, },
"ad" : { "ad" : {
"gdt" : {} "ks" : {}
} }
}, },
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],

View File

@@ -22,7 +22,7 @@
<view class="input" style=""> <view class="input" style="">
<view style="display: flex;align-items: center;"> <view style="display: flex;align-items: center;">
<view style="font-size: 40upx;color: #333333;">¥</view> <view style="font-size: 40upx;color: #333333;">¥</view>
<input type="number" v-model="data.money" placeholder="请输入金额" @input="moneyInput" style="font-size: 32rpx;color: #333333;text-align: left;margin-left: 10rpx;width: 80%;" /> <input type="digit" v-model="data.money" placeholder="请输入金额" @input="moneyInput" style="font-size: 32rpx;color: #333333;text-align: left;margin-left: 10rpx;width: 80%;" />
</view> </view>
<view class="allbtn" @click="setAllMoney"> <view class="allbtn" @click="setAllMoney">
全部 全部