From 7149086d6ae5376fbfc71fbbbcb1a7d6f393c7a1 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Sat, 27 Jan 2024 06:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=8A=9F=E8=83=BD=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-request-permission-listener.uvue | 2 ++ .../rewarded-video-ad/rewarded-video-ad.uvue | 19 +++++++------------ pages/tabBar/component.uvue | 10 +++++----- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/pages/API/create-request-permission-listener/create-request-permission-listener.uvue b/pages/API/create-request-permission-listener/create-request-permission-listener.uvue index 0e6c058d..f192ff2c 100644 --- a/pages/API/create-request-permission-listener/create-request-permission-listener.uvue +++ b/pages/API/create-request-permission-listener/create-request-permission-listener.uvue @@ -37,6 +37,8 @@ watchPermissionRRequest() { this.permissionListener = uni.createRequestPermissionListener() this.permissionListener!.onConfirm((_) => { + // TODO 目前onConfirm监听实现的在时间上不够精确,暂时需要延迟弹框,后续修复 + // TODO 这里的弹框仅为演示,实际开发中监听权限申请的代码应该在app.uvue中,弹框应全局处理,可参考https://gitcode.net/dcloud/uni-api/-/tree/master/uni_modules/uni-prompt/utssdk/app-android 代码自行封装一个uts的全局弹框 this.timeoutId = setTimeout(() => { this.isPermissionAlertShow = true }, 100) diff --git a/pages/API/rewarded-video-ad/rewarded-video-ad.uvue b/pages/API/rewarded-video-ad/rewarded-video-ad.uvue index 56d77bce..120267f2 100644 --- a/pages/API/rewarded-video-ad/rewarded-video-ad.uvue +++ b/pages/API/rewarded-video-ad/rewarded-video-ad.uvue @@ -1,12 +1,6 @@