|
@@ -3,11 +3,11 @@ const plugin = requirePlugin('ppScale-plugin') |
|
|
var app = getApp(); |
|
|
var app = getApp(); |
|
|
Page({ |
|
|
Page({ |
|
|
data: { |
|
|
data: { |
|
|
deviceslist: [{ |
|
|
|
|
|
|
|
|
deviceslist: [/* { |
|
|
name: "LFSmart Scale", |
|
|
name: "LFSmart Scale", |
|
|
|
|
|
|
|
|
deviceId: "CF:E6:16:22:82:28" |
|
|
deviceId: "CF:E6:16:22:82:28" |
|
|
}], |
|
|
|
|
|
|
|
|
} */], |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onHide() { |
|
|
onHide() { |
|
@@ -62,9 +62,9 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
initBlue() { |
|
|
initBlue() { |
|
|
let that = this; |
|
|
let that = this; |
|
|
/* that.setData({ |
|
|
|
|
|
|
|
|
that.setData({ |
|
|
deviceslist: '' |
|
|
deviceslist: '' |
|
|
}) */ |
|
|
|
|
|
|
|
|
}) |
|
|
console.log("初始化蓝牙"); |
|
|
console.log("初始化蓝牙"); |
|
|
wx.openBluetoothAdapter({ |
|
|
wx.openBluetoothAdapter({ |
|
|
mode: 'peripheral', |
|
|
mode: 'peripheral', |
|
|