From 1f7b7fa92fd9116fd29f3dd9802902230b2c0185 Mon Sep 17 00:00:00 2001 From: wanxf Date: Tue, 11 Mar 2025 10:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 18 ++++++++++++++---- pages/index/index.vue | 2 ++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index 986492e..068310b 100644 --- a/manifest.json +++ b/manifest.json @@ -20,6 +20,7 @@ "modules" : { "Barcode" : {}, "Bluetooth" : {}, + "Camera" : {}, "SQLite" : {} }, /* 应用发布信息 */ @@ -41,14 +42,15 @@ "", "", "", - "" + "", + "", + "" ], - "minSdkVersion" : 22 + "minSdkVersion" : 27 }, /* ios打包配置 */ "ios" : { - "dSYMs" : false, - "idfa" : false + "dSYMs" : false }, /* SDK配置 */ "sdkConfigs" : {}, @@ -83,6 +85,14 @@ "spotlight@3x" : "unpackage/res/icons/120x120.png" } } + }, + "splashscreen" : { + "androidStyle" : "common", + "android" : { + "hdpi" : "static/splash/480.png", + "xhdpi" : "static/splash/720.png", + "xxhdpi" : "static/splash/1080.png" + } } }, "nativePlugins" : { diff --git a/pages/index/index.vue b/pages/index/index.vue index f7fc95d..6f0e72a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -206,6 +206,8 @@ }, (e) => { console.error('prmission grant error: ' + e); }); + plus.android.requestPermissions(["android.permission.BLUETOOTH_CONNECT"]); + plus.android.requestPermissions(["android.permission.BLUETOOTH_SCAN"]); // initBL(); }, onUnload() {