|
@@ -564,16 +564,6 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- goWake() {
|
|
|
- if (this.data.deviceListIndex === null) {
|
|
|
- return;
|
|
|
- };
|
|
|
-
|
|
|
- wx.navigateTo({
|
|
|
- url: './../deviceWake/deviceWake?deviceId=' + this.data.deviceList[this.data.deviceListIndex].deviceId + "&clientType=" + this.data.deviceList[this.data.deviceListIndex].ProdModel,
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
goChnnel() {
|
|
|
wx.setStorage({
|
|
|
key: "channelDeta",
|
|
@@ -680,13 +670,20 @@ Page({
|
|
|
var item = e.currentTarget.dataset.item;
|
|
|
var devName = item.devName;
|
|
|
if (devName == "猫王小王子OTR-X") {
|
|
|
- that.setData({
|
|
|
- indexPage: 1
|
|
|
- });
|
|
|
+ that.goWake();
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ goWake() {
|
|
|
+ if (this.data.deviceListIndex === null) {
|
|
|
+ return;
|
|
|
+ };
|
|
|
+ wx.navigateTo({
|
|
|
+ url: './../deviceWake/deviceWake?deviceId=' + this.data.deviceList[this.data.deviceListIndex].deviceId + "&clientType=" + this.data.deviceList[this.data.deviceListIndex].ProdModel,
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
deleteDevice(e) {
|
|
|
wx.showModal({
|
|
|
title: '确定删除?',
|