Browse Source

优化 蓝牙设备列表提示

feat-bluetooth
chenJinxu 6 months ago
parent
commit
57c47ef680
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      miniprogram/pages/bluetooth/bluetooth.js

+ 4
- 4
miniprogram/pages/bluetooth/bluetooth.js View File

@@ -3,11 +3,11 @@ const plugin = requirePlugin('ppScale-plugin')
var app = getApp();
Page({
data: {
deviceslist: [{
deviceslist: [/* {
name: "LFSmart Scale",

deviceId: "CF:E6:16:22:82:28"
}],
} */],

},
onHide() {
@@ -62,9 +62,9 @@ Page({
},
initBlue() {
let that = this;
/* that.setData({
that.setData({
deviceslist: ''
}) */
})
console.log("初始化蓝牙");
wx.openBluetoothAdapter({
mode: 'peripheral',


Loading…
Cancel
Save