2025年5月29日15:21:00
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user