From ded17a0b8e8aea8b5c8a318b45849b01df1bfe19 Mon Sep 17 00:00:00 2001 From: sunliwei Date: Wed, 4 Sep 2024 14:36:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 69c72c3..23c604f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -454,7 +454,7 @@ this.columns.push(arr) console.log(res); }) - + // request({ // url: '/system/dict-data/page?pageNo=1&pageSize=100&dictType=rescue_driver_record_type', // method: 'get' @@ -764,8 +764,8 @@ url: '/infra/file/upload', filePath: url, }).then((res) => { - console.log('images', res.fileName); - this.images.push(res.fileName) + console.log('images', res.data.url); + this.images.push(res.data.url) }) }, @@ -773,7 +773,7 @@ permissions() { - // #ifdef APP-PLUS + // #ifdef APP-PLUS if (plus.os.name == 'Android') { // 判断是Android console.log('1212'); var main = plus.android.runtimeMainActivity(); @@ -788,7 +788,7 @@ console.log(NotificationManagerCompat, 'NotificationManagerCompat'); console.log('areNotificationsEnabled12'); var areNotificationsEnabled = NotificationManagerCompat.from(main).areNotificationsEnabled(); - // 未开通‘允许通知’权限,则弹窗提醒开通,并点击确认后,跳转到系统设置页面进行设置 + // 未开通‘允许通知’权限,则弹窗提醒开通,并点击确认后,跳转到系统设置页面进行设置 console.log(areNotificationsEnabled, 'areNotificationsEnabled'); if (!areNotificationsEnabled) { uni.showModal({ @@ -798,21 +798,21 @@ if (res.confirm) { var Intent = plus.android.importClass('android.content.Intent'); var Build = plus.android.importClass("android.os.Build"); - //android 8.0引导 + //android 8.0引导 if (Build.VERSION.SDK_INT >= 26) { var intent = new Intent('android.settings.APP_NOTIFICATION_SETTINGS'); intent.putExtra('android.provider.extra.APP_PACKAGE', pkName); - } else if (Build.VERSION.SDK_INT >= 21) { //android 5.0-7.0 + } else if (Build.VERSION.SDK_INT >= 21) { //android 5.0-7.0 var intent = new Intent('android.settings.APP_NOTIFICATION_SETTINGS'); intent.putExtra("app_package", pkName); intent.putExtra("app_uid", uid); - } else { //(<21)其他--跳转到该应用管理的详情页 + } else { //(<21)其他--跳转到该应用管理的详情页 intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); var uri = Uri.fromParts("package", mainActivity.getPackageName(), null); intent.setData(uri); } - // 跳转到该应用的系统通知设置页 + // 跳转到该应用的系统通知设置页 main.startActivity(intent); } else if (res.cancel) { console.log('用户点击取消'); @@ -850,7 +850,7 @@ }) } } - // #endif + // #endif } } } @@ -1230,4 +1230,4 @@ font-size: 16px; font-weight: 700; } - \ No newline at end of file +