Commit 3262d77a by 朱建香

1215

1.远程开门超时提示更改
2.android手机按钮覆盖问题
parent 941ff1b1
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
"login": "登录", "login": "登录",
"register": "注册", "register": "注册",
"forgetPassword": "忘记密码", "forgetPassword": "忘记密码",
"device": "智能指纹锁", "device": "U智锁",
"opendoorRecord": "开门记录", "opendoorRecord": "开门记录",
"alarmInfo": "报警信息", "alarmInfo": "报警信息",
"remoteOpendoor": "远程开门", "remoteOpendoor": "远程开门",
...@@ -134,6 +134,7 @@ ...@@ -134,6 +134,7 @@
"passwordInputTip": "请输入远程开门密码", "passwordInputTip": "请输入远程开门密码",
"openDoorSuccess": "远程开门成功", "openDoorSuccess": "远程开门成功",
"openDoorFailure": "远程开门失败", "openDoorFailure": "远程开门失败",
"remoteTimeout": "远程开门超时",
"remoteOpendoorAgain": "请尝试重试", "remoteOpendoorAgain": "请尝试重试",
"error": { "error": {
"noPasswordTip": "远程密码不能为空" "noPasswordTip": "远程密码不能为空"
...@@ -330,7 +331,8 @@ ...@@ -330,7 +331,8 @@
"oldPasswordInputTipAgain": "请再次输入旧密码" "oldPasswordInputTipAgain": "请再次输入旧密码"
}, },
"request":{ "request":{
"error": "请求发送失败" "error": "请求发送失败",
"initError": "初始化失败,请关闭APP重试"
}, },
"deviceList":{ "deviceList":{
"model": "型号:", "model": "型号:",
......
...@@ -134,6 +134,7 @@ ...@@ -134,6 +134,7 @@
"passwordInputTip": "请输入远程开门密码", "passwordInputTip": "请输入远程开门密码",
"openDoorSuccess": "远程开门成功", "openDoorSuccess": "远程开门成功",
"openDoorFailure": "远程开门失败", "openDoorFailure": "远程开门失败",
"remoteTimeout": "远程开门超时",
"remoteOpendoorAgain": "请尝试重试", "remoteOpendoorAgain": "请尝试重试",
"error": { "error": {
"noPasswordTip": "远程密码不能为空" "noPasswordTip": "远程密码不能为空"
......
...@@ -143,8 +143,8 @@ function deviceBind(self, lockId, relId){ ...@@ -143,8 +143,8 @@ function deviceBind(self, lockId, relId){
let data = response.data; let data = response.data;
if(data.success){ if(data.success){
uComponents.openAlert(self, Vue.t('addDevice.bindSuccess'), { uComponents.openAlert(self, Vue.t('addDevice.bindSuccess'), {
iot.navigator.fire(plus.webview.getWebviewById('device'),'returnPage',{});
text: Vue.t('dialog.confirm'), callback: function () { text: Vue.t('dialog.confirm'), callback: function () {
iot.navigator.fire(plus.webview.getWebviewById('device'),'returnPage',{});
iot.navigator.openWindow({ iot.navigator.openWindow({
url: '../device/index.html', url: '../device/index.html',
id: 'device' id: 'device'
......
...@@ -45,7 +45,7 @@ function init() { ...@@ -45,7 +45,7 @@ function init() {
//门锁管理 //门锁管理
doorlockManageDisabledFlag: false, doorlockManageDisabledFlag: false,
//门锁最新消息是否滚动 //门锁最新消息是否滚动
activeFlag: false, activeFlag: true,
//配置组件 //配置组件
componentsConfig: initComponentsConfig(), componentsConfig: initComponentsConfig(),
// //
...@@ -485,7 +485,6 @@ function getDevices(self){ ...@@ -485,7 +485,6 @@ function getDevices(self){
self.deviceId = null; self.deviceId = null;
self.uuid = null; self.uuid = null;
uComponents.changeMarqueeText(self, [Vue.t('device.defaultNewMsg')]); uComponents.changeMarqueeText(self, [Vue.t('device.defaultNewMsg')]);
// console.log("不滚");
self.activeFlag = false; self.activeFlag = false;
self.opendoorRecordFlag = false; self.opendoorRecordFlag = false;
self.securityAlarmFlag = false; self.securityAlarmFlag = false;
...@@ -1286,13 +1285,11 @@ function confirmButtonTap(self){ ...@@ -1286,13 +1285,11 @@ function confirmButtonTap(self){
} }
}); });
} }
console.log('aaaa');
let time = setTimeout(function (){ let time = setTimeout(function (){
console.log(self.getStatus()); console.log(self.getStatus());
if(self.getStatus() == 0){ if(self.getStatus() == 0){
console.log("timeout");
//连接失败 //连接失败
uComponents.changeCommLoadingStatusAndText(self, 2, Vue.t('remoteOpendoor.openDoorFailure')); uComponents.changeCommLoadingStatusAndText(self, 2, Vue.t('remoteOpendoor.remoteTimeout'));
uComponents.changeCommButtonText(self, Vue.t('remoteOpendoor.remoteOpendoorAgain')); uComponents.changeCommButtonText(self, Vue.t('remoteOpendoor.remoteOpendoorAgain'));
self.setStatus(2); self.setStatus(2);
window.clearTimeout(time); window.clearTimeout(time);
......
...@@ -20,7 +20,7 @@ function init() { ...@@ -20,7 +20,7 @@ function init() {
//配置组件 //配置组件
componentsConfig: initComponentsConfig(), componentsConfig: initComponentsConfig(),
clientId: null, clientId: null,
showLoginButtonFlag: true showLoginButtonFlag: false
}, },
mounted(){ mounted(){
if(window.iotDebug){ if(window.iotDebug){
...@@ -120,7 +120,6 @@ function loginButtonTap(self){ ...@@ -120,7 +120,6 @@ function loginButtonTap(self){
} }
var data = uPublic.checkResponseData(response.data); var data = uPublic.checkResponseData(response.data);
if(data){ if(data){
self.setShowLoginButtonFlag(false);
if(data.hasOwnProperty('UserID')){ if(data.hasOwnProperty('UserID')){
console.log("sds登陆成功了"); console.log("sds登陆成功了");
cloudsLogin(self, data.UserID); cloudsLogin(self, data.UserID);
...@@ -130,6 +129,7 @@ function loginButtonTap(self){ ...@@ -130,6 +129,7 @@ function loginButtonTap(self){
} }
}, },
error: (error) => { error: (error) => {
self.setShowLoginButtonFlag(true);
console.log(error); console.log(error);
if(window.iotDebug){ if(window.iotDebug){
iotDebug.push('end: sds登陆失败'+JSON.stringify(error)); iotDebug.push('end: sds登陆失败'+JSON.stringify(error));
......
...@@ -1183,7 +1183,7 @@ p { ...@@ -1183,7 +1183,7 @@ p {
background-color: transparent; background-color: transparent;
} }
.content { .scanContent {
position: fixed; position: fixed;
top: 1.173rem; top: 1.173rem;
bottom: 0; bottom: 0;
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<v-touch tag="span" class="header-left icon" v-on:tap="onBackTap">&#xe611;</v-touch> <v-touch tag="span" class="header-left icon" v-on:tap="onBackTap">&#xe611;</v-touch>
<p>{{ $t('title.scanCodeAdd') }}</p> <p>{{ $t('title.scanCodeAdd') }}</p>
</div> </div>
<div class="content" id="bcid" > <div class="scanContent" id="bcid" >
</div> </div>
<u-dialog ref="udialog" :init-param="componentsConfig.dialog.initParam"></u-dialog> <u-dialog ref="udialog" :init-param="componentsConfig.dialog.initParam"></u-dialog>
<u-loading ref="uloading" :init-param="componentsConfig.loading.initParam"></u-loading> <u-loading ref="uloading" :init-param="componentsConfig.loading.initParam"></u-loading>
......
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