Commit ec48f787 by jenny

Merge branch 'zjx' into 'master'

1215

See merge request iot-project-js/doorlock!5
parents 5058ebb4 ad0e7efa
...@@ -26,7 +26,6 @@ function init() { ...@@ -26,7 +26,6 @@ function init() {
}, },
mounted(){ mounted(){
resolve(this); resolve(this);
}, },
methods:{ methods:{
getTextWiFiName(){ getTextWiFiName(){
......
...@@ -97,7 +97,8 @@ function init() { ...@@ -97,7 +97,8 @@ function init() {
flag: true, flag: true,
time: null, time: null,
timeout: null, timeout: null,
handle: null handle: null,
remoteTime: null
}, },
mounted(){ mounted(){
notificationListener(this); notificationListener(this);
...@@ -489,6 +490,8 @@ function getDevices(self){ ...@@ -489,6 +490,8 @@ function getDevices(self){
self.opendoorRecordFlag = false; self.opendoorRecordFlag = false;
self.securityAlarmFlag = false; self.securityAlarmFlag = false;
self.hijackAlarmFlag = false; self.hijackAlarmFlag = false;
self.setRemoteOpendoorDisabledFlag(true);
self.setValueRemoteOpendoor(0);
} }
}, },
error: (error) => { error: (error) => {
...@@ -868,6 +871,7 @@ function sdsDataPorcessing(self, data){ ...@@ -868,6 +871,7 @@ function sdsDataPorcessing(self, data){
break; break;
case '5': case '5':
//远程开门失败 //远程开门失败
setRemoteOpenDoorLoading(self, 2, Vue.t('remoteOpendoor.openDoorFailure'), Vue.t('remoteOpendoor.remoteOpendoorAgain')); setRemoteOpenDoorLoading(self, 2, Vue.t('remoteOpendoor.openDoorFailure'), Vue.t('remoteOpendoor.remoteOpendoorAgain'));
break; break;
} }
...@@ -925,6 +929,7 @@ function setRemoteOpenDoorLoading(self, status, text, buttonText){ ...@@ -925,6 +929,7 @@ function setRemoteOpenDoorLoading(self, status, text, buttonText){
self.setValueRemoteOpendoor(false); self.setValueRemoteOpendoor(false);
self.setRemoteOpendoorDisabledFlag(true); self.setRemoteOpendoorDisabledFlag(true);
case 2: case 2:
window.clearTimeout(self.remoteTime);
case 0: case 0:
self.setStatus(status); self.setStatus(status);
uComponents.changeCommLoadingStatusAndText(self, status, text); uComponents.changeCommLoadingStatusAndText(self, status, text);
...@@ -1285,14 +1290,14 @@ function confirmButtonTap(self){ ...@@ -1285,14 +1290,14 @@ function confirmButtonTap(self){
} }
}); });
} }
let time = setTimeout(function (){ self.remoteTime = setTimeout(function (){
console.log(self.getStatus()); console.log(self.getStatus());
if(self.getStatus() == 0){ if(self.getStatus() == 0){
//连接失败 //连接失败
uComponents.changeCommLoadingStatusAndText(self, 2, Vue.t('remoteOpendoor.remoteTimeout')); 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(self.remoteTime);
} }
},config.remote_opendoor_timeout); },config.remote_opendoor_timeout);
} }
......
...@@ -43,6 +43,7 @@ function init() { ...@@ -43,6 +43,7 @@ function init() {
},function(err){ },function(err){
console.log(err); console.log(err);
}) })
console.log('innnnnnn');
}, },
methods:{ methods:{
getShowLoginButtonFlag(){ getShowLoginButtonFlag(){
...@@ -104,6 +105,7 @@ function loginButtonTap(self){ ...@@ -104,6 +105,7 @@ function loginButtonTap(self){
// alert(error); // alert(error);
// console.log(err); // console.log(err);
// }) // })
console.log("loginButton");
iot.business.sds.checkSDSInit({ iot.business.sds.checkSDSInit({
data: {}, data: {},
success: (response) => { success: (response) => {
...@@ -145,6 +147,7 @@ function loginButtonTap(self){ ...@@ -145,6 +147,7 @@ function loginButtonTap(self){
}, },
error: (error) => { error: (error) => {
//初始化失败,重新初始化 //初始化失败,重新初始化
console.log('eroor');
console.log(error); console.log(error);
if(window.iotDebug){ if(window.iotDebug){
iotDebug.push('end: 初始化失败'+JSON.stringify(error)); iotDebug.push('end: 初始化失败'+JSON.stringify(error));
......
...@@ -5263,6 +5263,7 @@ var SDS = function () { ...@@ -5263,6 +5263,7 @@ var SDS = function () {
var handle = null; var handle = null;
handle = setInterval(function () { handle = setInterval(function () {
_this.bridge.obj.getSDSStatus(function (ret) { _this.bridge.obj.getSDSStatus(function (ret) {
console.log(ret);
switch (ret) { switch (ret) {
case 0: case 0:
//尚未初始化 //尚未初始化
......
...@@ -187,11 +187,10 @@ ...@@ -187,11 +187,10 @@
.custom-comm-loading(); .custom-comm-loading();
.content{ .scanContent {
width: 100%; position: fixed;
position: absolute; top: 1.173rem;
top: 1.173rem; bottom: 0;
bottom: 0; left: 0;
left: 0; width: 100%;
width: 100%;
} }
\ No newline at end of file
...@@ -220,4 +220,66 @@ ...@@ -220,4 +220,66 @@
} }
} }
.unbindState-dialog(); .custom-isClearSwitch-switch {
\ No newline at end of file width: 5.333rem;
height: auto;
text-align: center;
color: #00ffff;
margin: 0.72rem auto 0;
padding: 0.267rem 0;
}
.custom-isClearSwitch-switch .u-switch-handle {
position: relative;
top: auto;
left: auto;
-webkit-transform: none;
transform: none;
width: 0.453rem;
height: 0.453rem;
border: 0;
border-radius: 0;
display: inline-block;
vertical-align: middle;
margin-right: 0.16rem;
}
.custom-isClearSwitch-switch .u-switch-handle:before {
font-family: iconfont;
font-size: 0.453rem;
-webkit-font-smoothing: antialiased;
line-height: 1;
top: 0;
width: auto;
height: auto;
border-radius: 0;
background-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.custom-isClearSwitch-switch .u-switch-text {
display: inline-block;
vertical-align: middle;
}
.custom-isClearSwitch-switch.u-switch-on .u-switch-handle {
background-color: transparent;
}
.custom-isClearSwitch-switch.u-switch-on .u-switch-handle:before {
content: '\e6aa';
left: 0;
}
.custom-isClearSwitch-switch.u-switch-off .u-switch-handle {
background-color: transparent;
}
.custom-isClearSwitch-switch.u-switch-off .u-switch-handle:before {
content: '\e6a9';
left: 0;
}
.unbindState-dialog();
web/resources/image/doorlockUser.png

2.6 KB | W: | H:

web/resources/image/doorlockUser.png

2.19 KB | W: | H:

web/resources/image/doorlockUser.png
web/resources/image/doorlockUser.png
web/resources/image/doorlockUser.png
web/resources/image/doorlockUser.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<div id="app" v-cloak> <div id="app" v-cloak>
<div class="header"> <div class="header">
<v-touch tag="span" class="header-left icon" v-on:tap="onMyInfoTap">&#xe66f;</v-touch> <v-touch tag="span" class="header-left icon" v-on:tap="onMyInfoTap">&#xe69b;</v-touch>
<p>{{ $t('title.device') }}</p> <p>{{ $t('title.device') }}</p>
</div> </div>
<div class="content"> <div class="content">
......
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