2025年5月29日15:21:00

This commit is contained in:
17792275749
2025-05-29 15:21:02 +08:00
parent f98cfe010e
commit bffff89518
2 changed files with 24 additions and 28 deletions
-4
View File
@@ -65,13 +65,11 @@ Page({
wx.getSetting({
success: (res) => {
if (res.authSetting['scope.bluetooth']) {
wx.hideLoading();
this.openBluetoothAdapter();
} else {
wx.authorize({
scope: 'scope.bluetooth',
success: () => {
wx.hideLoading();
this.openBluetoothAdapter();
},
fail: (err) => {
@@ -126,7 +124,6 @@ Page({
});
wx.openBluetoothAdapter({
success: () => {
wx.hideLoading();
this.getDeviceSettingList();
},
fail: (err) => {
@@ -189,7 +186,6 @@ Page({
let fIndex = res_.findIndex(item => item.deviceId === res.result[0].deviceId);
if (fIndex >= 0) {
app.globalData.ppScale.plugin.Blue.stopBluetoothDevicesDiscovery();
wx.hideLoading();
wx.showLoading({
title: "正在连接设备...",
mask: true