|
@ -1042,7 +1042,7 @@ Page({ |
|
|
remotePasswordStatus:false |
|
|
remotePasswordStatus:false |
|
|
}) |
|
|
}) |
|
|
if (deviceinfo.manufactureId == 201||deviceinfo.manufactureId == 221) { |
|
|
if (deviceinfo.manufactureId == 201||deviceinfo.manufactureId == 221) { |
|
|
if (app.globalData.zgBlueStatus) { |
|
|
|
|
|
|
|
|
if (this.data.isSearch) { |
|
|
if (event == 0) { |
|
|
if (event == 0) { |
|
|
this.openTheDoor() |
|
|
this.openTheDoor() |
|
|
} else if (event == 1) { |
|
|
} else if (event == 1) { |
|
@ -1098,14 +1098,23 @@ Page({ |
|
|
if (this.data.isSearch) { |
|
|
if (this.data.isSearch) { |
|
|
if (event == '0') { |
|
|
if (event == '0') { |
|
|
this.LwjopenLock() |
|
|
this.LwjopenLock() |
|
|
} if(event == '3') { |
|
|
|
|
|
|
|
|
}else if(event == '3') { |
|
|
this.configurewifj() |
|
|
this.configurewifj() |
|
|
|
|
|
}else if(event == '12'){ |
|
|
|
|
|
this.goPasswordList() |
|
|
|
|
|
}else if(event == '1'){ |
|
|
|
|
|
this.addPincode() |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.searchDevicesMethods() |
|
|
this.searchDevicesMethods() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
addPincode: function() { |
|
|
|
|
|
var that = this |
|
|
|
|
|
taskId = 51 |
|
|
|
|
|
that.initBluetooth() |
|
|
|
|
|
}, |
|
|
configurewifj() { |
|
|
configurewifj() { |
|
|
var that = this |
|
|
var that = this |
|
|
taskId = 121 |
|
|
taskId = 121 |
|
@ -1174,6 +1183,8 @@ Page({ |
|
|
} else if (that.data.event == '3') { |
|
|
} else if (that.data.event == '3') { |
|
|
console.log("1298wifi"); |
|
|
console.log("1298wifi"); |
|
|
that.configurewifj() |
|
|
that.configurewifj() |
|
|
|
|
|
}else if(that.data.event == '12'){ |
|
|
|
|
|
that.goPasswordList() |
|
|
} |
|
|
} |
|
|
wx.hideLoading({ |
|
|
wx.hideLoading({ |
|
|
success: (res) => {}, |
|
|
success: (res) => {}, |
|
@ -2158,7 +2169,8 @@ Page({ |
|
|
clearInterval(that.data.timer) |
|
|
clearInterval(that.data.timer) |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
bleStatus: '蓝牙已连接', |
|
|
bleStatus: '蓝牙已连接', |
|
|
deviceId: deviceId |
|
|
|
|
|
|
|
|
deviceId: deviceId, |
|
|
|
|
|
isSearch: true |
|
|
}) |
|
|
}) |
|
|
app.globalData.zgBlueStatus = true |
|
|
app.globalData.zgBlueStatus = true |
|
|
wx.hideLoading() |
|
|
wx.hideLoading() |
|
@ -2965,6 +2977,8 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
}else if(deviceinfo.manufactureId == 1201 || deviceinfo.manufactureId == 1241){ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|