更新用户信息 同步
This commit is contained in:
@@ -55,12 +55,10 @@ Page({
|
|||||||
app.globalData.ppScale.plugin.Blue.setDeviceSetting(seviceList);
|
app.globalData.ppScale.plugin.Blue.setDeviceSetting(seviceList);
|
||||||
app.globalData.ppScale.plugin.Blue.start(seviceList[0].deviceName, false);
|
app.globalData.ppScale.plugin.Blue.start(seviceList[0].deviceName, false);
|
||||||
app.globalData.ppScale.plugin.bus.subscribe("devicesList", (res) => {
|
app.globalData.ppScale.plugin.bus.subscribe("devicesList", (res) => {
|
||||||
console.log("deviceInfo ===> devicesList", res);
|
|
||||||
let fIndex = res.findIndex(item => item.deviceId === this.data.deviceInfo.deviceId);
|
let fIndex = res.findIndex(item => item.deviceId === this.data.deviceInfo.deviceId);
|
||||||
if (fIndex >= 0) {
|
if (fIndex > -1) {
|
||||||
app.globalData.ppScale.plugin.Blue.stopBluetoothDevicesDiscovery();
|
app.globalData.ppScale.plugin.Blue.stopBluetoothDevicesDiscovery();
|
||||||
app.globalData.ppScale.plugin.Blue.createBLEConnection(res[fIndex]);
|
app.globalData.ppScale.plugin.Blue.createBLEConnection(res[fIndex]);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ Page({
|
|||||||
userInfo: wx.getStorageSync("userInfo"),
|
userInfo: wx.getStorageSync("userInfo"),
|
||||||
ssid: app.globalData.ppScale.wifi.ssid
|
ssid: app.globalData.ppScale.wifi.ssid
|
||||||
});
|
});
|
||||||
|
this.getSubUser();
|
||||||
},
|
},
|
||||||
|
|
||||||
completeClick() {
|
completeClick() {
|
||||||
@@ -90,7 +91,6 @@ Page({
|
|||||||
|
|
||||||
resetDevice() {
|
resetDevice() {
|
||||||
app.globalData.ppScale.device = {
|
app.globalData.ppScale.device = {
|
||||||
setting: [],
|
|
||||||
list: [],
|
list: [],
|
||||||
mac: null,
|
mac: null,
|
||||||
name: "",
|
name: "",
|
||||||
|
|||||||
Reference in New Issue
Block a user