iOS26系统测试
- 发布:2025-10-15 10:33
- 更新:2025-11-01 11:17
- 阅读:87
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: macOS14.3
HBuilderX类型: 正式
HBuilderX版本号: 4.66
手机系统: iOS
手机系统版本号: iOS 26
手机厂商: 苹果
手机机型: iPhone 16
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
iOS26系统测试触发回调
iOS26系统测试触发回调
实际结果:
iOS26系统测试不触发回调
iOS26系统测试不触发回调
bug描述:
ad-interstitial 插屏广告在最新的iOS26系统中,不触发回调(@load,@close,@error)。
加油吧打工仔 (作者) - 认真做事的人!
<template>
<ad-interstitial
ref="adInterstitialRef"
adpid="1111111113"
:loadnext="false"
v-slot:default="{ loading, error }"
@load="onadload"
@close="onadclose"
@error="onaderror">
<view v-if="error">{{ error }}</view>
</ad-interstitial>
</template>
<script setup>
import { ref } from 'vue'
// 加载广告
const adInterstitialRef = ref()
const loadAD = () => {
uni.showLoading({
title: '加载广告...'
})
adInterstitialRef.value.show()
}
const onadload = e => {
uni.hideLoading()
console.log('onadload', e)
}
const onadclose = e => {
uni.hideLoading()
console.log('onadclose', e)
}
const onaderror = e => {
uni.hideLoading()
console.log('onaderror', e)
}
defineExpose({
loadAD
})
</script>
<style lang="scss" scoped></style>
加油吧打工仔 (作者)
代码已贴在评论区
2025-11-01 11:18