openDoorAndStartTime(data) {
var _this = this;
plugin.controlLock(plugin.ControlAction.OPEN, data.lockData, ret => {
console.log(ret, 'ret')
if (ret.errorCode === 10003) {
uni.hideLoading();
_this.$global.msg(ret.errorMsg);
console.log("获取版本信息时设备连接已断开", ret)
}
}, null, data.deviceId).then(resa => {
console.log(resa, 'resa')
if (!!resa.deviceId) deviceId = resa.deviceId;
uni.hideLoading()
if (resa.errorCode === 0) {
_this.$global.msg("开门成功!");
} else {
console.log(resa, 'error');
_this.$global.msg("开锁失败!" + resa.errorMsg);
}
}).catch(e=>{
uni.hideLoading()
_this.$global.msg(JSON.stringify(e))
console.log(e, 'error')
})
},