|
@@ -121,7 +121,7 @@ Page({
|
|
that.addConnectBlueDevice(connectDevice);
|
|
that.addConnectBlueDevice(connectDevice);
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- } else { }
|
|
|
|
|
|
+ } else {}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -130,7 +130,6 @@ Page({
|
|
var that = this;
|
|
var that = this;
|
|
// BtHelper.getInstance().initBluetoothAdapter();
|
|
// BtHelper.getInstance().initBluetoothAdapter();
|
|
var l = wx.getStorageSync("deviceList") || "";
|
|
var l = wx.getStorageSync("deviceList") || "";
|
|
- console.log("gadsfasdfqwwreqewrq==33==" + JSON.parse(l).length);
|
|
|
|
if (!strings.isEmpty(l)) {
|
|
if (!strings.isEmpty(l)) {
|
|
try {
|
|
try {
|
|
var list = JSON.parse(l);
|
|
var list = JSON.parse(l);
|
|
@@ -822,8 +821,6 @@ Page({
|
|
return id !== item.deviceId
|
|
return id !== item.deviceId
|
|
});
|
|
});
|
|
wx.setStorageSync("deviceList", JSON.stringify(deviceList));
|
|
wx.setStorageSync("deviceList", JSON.stringify(deviceList));
|
|
- var l = wx.getStorageSync("deviceList") || "";
|
|
|
|
- console.log("gadsfasdfqwwreqewrq==33==" + JSON.parse(l).length);
|
|
|
|
that.setData({
|
|
that.setData({
|
|
deviceList,
|
|
deviceList,
|
|
});
|
|
});
|
|
@@ -850,8 +847,6 @@ Page({
|
|
return id !== item.deviceId
|
|
return id !== item.deviceId
|
|
});
|
|
});
|
|
wx.setStorageSync("deviceList", JSON.stringify(deviceList));
|
|
wx.setStorageSync("deviceList", JSON.stringify(deviceList));
|
|
- var l = wx.getStorageSync("deviceList") || "";
|
|
|
|
- console.log("gadsfasdfqwwreqewrq==33==" + JSON.parse(l).length);
|
|
|
|
that.setData({
|
|
that.setData({
|
|
deviceList,
|
|
deviceList,
|
|
thisDeviceMac: null
|
|
thisDeviceMac: null
|
|
@@ -1043,8 +1038,6 @@ Page({
|
|
finalList = finalList.concat(onNoLineBlueList);
|
|
finalList = finalList.concat(onNoLineBlueList);
|
|
// 更新缓存
|
|
// 更新缓存
|
|
wx.setStorageSync("deviceList", JSON.stringify(finalList));
|
|
wx.setStorageSync("deviceList", JSON.stringify(finalList));
|
|
- var l = wx.getStorageSync("deviceList") || "";
|
|
|
|
- console.log("gadsfasdfqwwreqewrq==33==" + JSON.parse(l).length);
|
|
|
|
that.setData({
|
|
that.setData({
|
|
deviceList: finalList
|
|
deviceList: finalList
|
|
});
|
|
});
|