|
@@ -116,7 +116,6 @@ Page({
|
|
// app.subscribe(topic);
|
|
// app.subscribe(topic);
|
|
// }
|
|
// }
|
|
}
|
|
}
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
// 回调
|
|
// 回调
|
|
@@ -127,6 +126,7 @@ Page({
|
|
if (option) {
|
|
if (option) {
|
|
payloads = JSON.parse(option.payload);
|
|
payloads = JSON.parse(option.payload);
|
|
};
|
|
};
|
|
|
|
+
|
|
switch (type) {
|
|
switch (type) {
|
|
case "connect":
|
|
case "connect":
|
|
that.connectSuccess();
|
|
that.connectSuccess();
|
|
@@ -149,7 +149,6 @@ Page({
|
|
actionIndex,
|
|
actionIndex,
|
|
});
|
|
});
|
|
} else if (payloads.type === "play" || payloads.type === "play_state") {
|
|
} else if (payloads.type === "play" || payloads.type === "play_state") {
|
|
-
|
|
|
|
if (that.data.deviceListIndex === null) {
|
|
if (that.data.deviceListIndex === null) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -309,7 +308,6 @@ Page({
|
|
if (that.data.deviceList.length === 0 || that.data.deviceListIndex === null) {
|
|
if (that.data.deviceList.length === 0 || that.data.deviceListIndex === null) {
|
|
return
|
|
return
|
|
};
|
|
};
|
|
-
|
|
|
|
let topic = `/AIrSMArT_${that.data.deviceList[that.data.deviceListIndex].name.split("BLUFI_")[1]}/user/pub_response`;
|
|
let topic = `/AIrSMArT_${that.data.deviceList[that.data.deviceListIndex].name.split("BLUFI_")[1]}/user/pub_response`;
|
|
app.subscribe(topic);
|
|
app.subscribe(topic);
|
|
const obj = {
|
|
const obj = {
|
|
@@ -361,7 +359,7 @@ Page({
|
|
},
|
|
},
|
|
|
|
|
|
getchannelData(clientType) {
|
|
getchannelData(clientType) {
|
|
- var that = this;Ï
|
|
|
|
|
|
+ var that = this;
|
|
if (that.data.deviceListIndex === null) {
|
|
if (that.data.deviceListIndex === null) {
|
|
return;
|
|
return;
|
|
};
|
|
};
|