From a7ea59d201db010cea1e92c089c9fcb5366be1b9 Mon Sep 17 00:00:00 2001 From: xsl Date: Thu, 12 Mar 2026 19:35:01 +0800 Subject: [PATCH] save code --- .hbuilderx/launch.json | 4 ++++ pages/index/index.uvue | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 7f8426d..8764402 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -9,6 +9,10 @@ "customPlaygroundType" : "local", "playground" : "custom", "type" : "uni-app:app-ios" + }, + { + "playground" : "custom", + "type" : "uni-app:app-android" } ] } diff --git a/pages/index/index.uvue b/pages/index/index.uvue index 9609ed2..3015c11 100644 --- a/pages/index/index.uvue +++ b/pages/index/index.uvue @@ -69,7 +69,18 @@ } }, onLoad() { - + // let permissionNeed = ["android.permission.CAMERA", "android.permission.RECORD_AUDIO", + // "android.permission.WRITE_EXTERNAL_STORAGE"] + // // 请求权限 + // UTSAndroid.requestSystemPermission(UTSAndroid.getUniActivity()!, permissionNeed, function (allRight : boolean, _ : string[]) { + // if (allRight) { + // // 权限请求成功 + // } else { + // //用户拒绝了部分权限 + // } + // }, function (_ : boolean, _ : string[]) { + // //用户拒绝了部分权限 + // }) }, methods: { onError(res : any) {