|
@@ -502,24 +502,19 @@ Page({
|
|
///点击item
|
|
///点击item
|
|
// [{"deviceId":"BLUFI_7cdfa1fcbb24","name":"BLUFI_7cdfa1fcbb24","state":"online","ProdModel":"MW-2AX(WIFI-N)","devName":"猫王小王子OTR-X"}]
|
|
// [{"deviceId":"BLUFI_7cdfa1fcbb24","name":"BLUFI_7cdfa1fcbb24","state":"online","ProdModel":"MW-2AX(WIFI-N)","devName":"猫王小王子OTR-X"}]
|
|
onTapItem(e) {
|
|
onTapItem(e) {
|
|
|
|
+ var that = this;
|
|
if (!that.data.isLogin) {
|
|
if (!that.data.isLogin) {
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
url: './../login/login'
|
|
url: './../login/login'
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
- var that = this;
|
|
|
|
var item = e.currentTarget.dataset.item;
|
|
var item = e.currentTarget.dataset.item;
|
|
var connectType = item.connectType;
|
|
var connectType = item.connectType;
|
|
- console.log("gadfadfqwwerq===00===" + connectType);
|
|
|
|
if (connectType == 3) {
|
|
if (connectType == 3) {
|
|
- console.log("gadfadfqwwerq===11===" + connectType);
|
|
|
|
if (e.currentTarget.dataset.index === that.data.deviceListIndex) {
|
|
if (e.currentTarget.dataset.index === that.data.deviceListIndex) {
|
|
- console.log("gadfadfqwwerq===22===" + connectType);
|
|
|
|
that.goWake();
|
|
that.goWake();
|
|
} else {
|
|
} else {
|
|
- console.log("gadfadfqwwerq===33===" + connectType);
|
|
|
|
that.actionDevice(e.currentTarget.dataset.index)
|
|
that.actionDevice(e.currentTarget.dataset.index)
|
|
}
|
|
}
|
|
return;
|
|
return;
|