|
@@ -371,7 +371,7 @@ Page({
|
|
|
var deviceList = that.data.deviceList;
|
|
|
if (!strings.isEmpty(deviceList)) {
|
|
|
for (var i = 0; i < deviceList.length; i++) {
|
|
|
- if (deviceList[i].connectType == 3) {
|
|
|
+ if (deviceList[i].connectType == 3 && device.state == "online") {
|
|
|
let topic = `/AIrSMArT_${deviceList[i].deviceId.split("BLUFI_")[1]}/status/onoffline`;
|
|
|
app.subscribe(topic);
|
|
|
}
|
|
@@ -632,6 +632,10 @@ Page({
|
|
|
};
|
|
|
|
|
|
var device = deviceList[deviceListSelect];
|
|
|
+ if (device.connectType != 3 || device.state != "online") {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
var tempDeviceId = device.deviceId;
|
|
|
///删除当前选中这个
|
|
|
deviceList.splice(deviceListSelect, 1);
|
|
@@ -666,6 +670,7 @@ Page({
|
|
|
};
|
|
|
|
|
|
var device = deviceList[deviceListSelect];
|
|
|
+ console.log("gasdfasdfqweqrwq====" + device.ProdModel);
|
|
|
wx.navigateTo({
|
|
|
url: './../deviceWake/deviceWake?deviceId=' + device.deviceId + "&clientType=" + device.ProdModel,
|
|
|
});
|