Commit f9cc342d by 朱建香

1117

parent 33797562
...@@ -292,8 +292,8 @@ ...@@ -292,8 +292,8 @@
"cancelAssociatedFailue": "取消关联失败", "cancelAssociatedFailue": "取消关联失败",
"setHijackSuccess": "设为劫持指纹成功", "setHijackSuccess": "设为劫持指纹成功",
"setHijackFailue": "设为劫持指纹失败", "setHijackFailue": "设为劫持指纹失败",
"cancelHijackSuccess": "设为劫持指纹成功", "cancelHijackSuccess": "取消劫持指纹成功",
"cancelHijackFailue": "设为劫持指纹失败" "cancelHijackFailue": "取消劫持指纹失败"
}, },
"addUnlockInfo":{ "addUnlockInfo":{
"opendoorMode": "选择要关联的开锁方式", "opendoorMode": "选择要关联的开锁方式",
......
...@@ -314,6 +314,7 @@ function recordSelectChange(self, value) { ...@@ -314,6 +314,7 @@ function recordSelectChange(self, value) {
//tap 添加 //tap 添加
function addButtonTap(self){ function addButtonTap(self){
if(self.getOpenId()){
uComponents.showLoading(self); uComponents.showLoading(self);
iot.business.api.sendCustom('lock/bindOpenLog',{ iot.business.api.sendCustom('lock/bindOpenLog',{
data: { data: {
...@@ -335,12 +336,12 @@ function addButtonTap(self){ ...@@ -335,12 +336,12 @@ function addButtonTap(self){
}, },
error: (error) => { error: (error) => {
console.log(error); console.log(error);
// if(window.iotDebug){ // if(window.iotDebug){
// iotDebug.push('end: 绑定开门方式失败'+JSON.stringify(error)); // iotDebug.push('end: 绑定开门方式失败'+JSON.stringify(error));
// } // }
// if (window.iotDebug) { // if (window.iotDebug) {
// iotDebug.upload(iot,'绑定开门方式失败'); // iotDebug.upload(iot,'绑定开门方式失败');
// } // }
uComponents.openAlert(vmObj, Vue.t('addUnlockInfo.addInfoFailue'), { uComponents.openAlert(vmObj, Vue.t('addUnlockInfo.addInfoFailue'), {
text: Vue.t('dialog.confirm'), callback: function () { text: Vue.t('dialog.confirm'), callback: function () {
} }
...@@ -350,6 +351,14 @@ function addButtonTap(self){ ...@@ -350,6 +351,14 @@ function addButtonTap(self){
uComponents.hideLoading(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){ function selectOpenDoorModeTap(self, index){
......
...@@ -360,6 +360,7 @@ function unbindButtonTap(self){ ...@@ -360,6 +360,7 @@ function unbindButtonTap(self){
success: (response) => { success: (response) => {
console.log(response); console.log(response);
self.setStateShowFlag(true); self.setStateShowFlag(true);
getUserInfo(self);
}, },
error: (error) => { error: (error) => {
console.log(error); console.log(error);
......
...@@ -17106,6 +17106,7 @@ function recordSelectChange(self, value) { ...@@ -17106,6 +17106,7 @@ function recordSelectChange(self, value) {
//tap 添加 //tap 添加
function addButtonTap(self) { function addButtonTap(self) {
if (self.getOpenId()) {
_public.uComponents.showLoading(self); _public.uComponents.showLoading(self);
_public.iot.business.api.sendCustom('lock/bindOpenLog', { _public.iot.business.api.sendCustom('lock/bindOpenLog', {
data: { data: {
...@@ -17141,6 +17142,13 @@ function addButtonTap(self) { ...@@ -17141,6 +17142,13 @@ function addButtonTap(self) {
_public.uComponents.hideLoading(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) { function selectOpenDoorModeTap(self, index) {
......
...@@ -1208,6 +1208,7 @@ function unbindButtonTap(self) { ...@@ -1208,6 +1208,7 @@ function unbindButtonTap(self) {
success: function success(response) { success: function success(response) {
console.log(response); console.log(response);
self.setStateShowFlag(true); self.setStateShowFlag(true);
getUserInfo(self);
}, },
error: function error(_error2) { error: function error(_error2) {
console.log(_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