Commit f9cc342d by 朱建香

1117

parent 33797562
......@@ -292,8 +292,8 @@
"cancelAssociatedFailue": "取消关联失败",
"setHijackSuccess": "设为劫持指纹成功",
"setHijackFailue": "设为劫持指纹失败",
"cancelHijackSuccess": "设为劫持指纹成功",
"cancelHijackFailue": "设为劫持指纹失败"
"cancelHijackSuccess": "取消劫持指纹成功",
"cancelHijackFailue": "取消劫持指纹失败"
},
"addUnlockInfo":{
"opendoorMode": "选择要关联的开锁方式",
......
......@@ -314,6 +314,7 @@ function recordSelectChange(self, value) {
//tap 添加
function addButtonTap(self){
if(self.getOpenId()){
uComponents.showLoading(self);
iot.business.api.sendCustom('lock/bindOpenLog',{
data: {
......@@ -335,12 +336,12 @@ function addButtonTap(self){
},
error: (error) => {
console.log(error);
// if(window.iotDebug){
// iotDebug.push('end: 绑定开门方式失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'绑定开门方式失败');
// }
// if(window.iotDebug){
// iotDebug.push('end: 绑定开门方式失败'+JSON.stringify(error));
// }
// if (window.iotDebug) {
// iotDebug.upload(iot,'绑定开门方式失败');
// }
uComponents.openAlert(vmObj, Vue.t('addUnlockInfo.addInfoFailue'), {
text: Vue.t('dialog.confirm'), callback: function () {
}
......@@ -350,6 +351,14 @@ function addButtonTap(self){
uComponents.hideLoading(self);
}
});
setTimeout(function(){
uComponents.openAlert(vmObj, Vue.t('addUnlockInfo.addInfoFailue'), {
text: Vue.t('dialog.confirm'), callback: function () {
}
});
uComponents.hideLoading(self);
},config.wifi_add_timeout);
}
}
function selectOpenDoorModeTap(self, index){
......
......@@ -360,6 +360,7 @@ function unbindButtonTap(self){
success: (response) => {
console.log(response);
self.setStateShowFlag(true);
getUserInfo(self);
},
error: (error) => {
console.log(error);
......
......@@ -17106,6 +17106,7 @@ function recordSelectChange(self, value) {
//tap 添加
function addButtonTap(self) {
if (self.getOpenId()) {
_public.uComponents.showLoading(self);
_public.iot.business.api.sendCustom('lock/bindOpenLog', {
data: {
......@@ -17141,6 +17142,13 @@ function addButtonTap(self) {
_public.uComponents.hideLoading(self);
}
});
setTimeout(function () {
_public.uComponents.openAlert(vmObj, Vue.t('addUnlockInfo.addInfoFailue'), {
text: Vue.t('dialog.confirm'), callback: function callback() {}
});
_public.uComponents.hideLoading(self);
}, _config2.default.wifi_add_timeout);
}
}
function selectOpenDoorModeTap(self, index) {
......
......@@ -1208,6 +1208,7 @@ function unbindButtonTap(self) {
success: function success(response) {
console.log(response);
self.setStateShowFlag(true);
getUserInfo(self);
},
error: function error(_error2) {
console.log(_error2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment