Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DoorLock
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
朱建香
DoorLock
Commits
ad0e7efa
Commit
ad0e7efa
authored
Dec 15, 2017
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1215
1.远程开门超时时间设置
parent
a0a13f49
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
83 additions
and
14 deletions
+83
-14
dev/src/view/addDevice/v_wifiAdd.js
+0
-1
dev/src/view/device/v_index.js
+8
-3
dev/src/view/login/v_index.js
+3
-0
web/lib/js/UIOT.js
+1
-0
web/lib/less/addDevice/addDevice.less
+7
-7
web/lib/less/doorlockManage/doorlockManage.less
+63
-2
web/resources/font/iconfont.ttf
+0
-0
web/resources/image/doorlockUser.png
+0
-0
web/view/device/index.html
+1
-1
No files found.
dev/src/view/addDevice/v_wifiAdd.js
View file @
ad0e7efa
...
@@ -26,7 +26,6 @@ function init() {
...
@@ -26,7 +26,6 @@ function init() {
},
},
mounted
(){
mounted
(){
resolve
(
this
);
resolve
(
this
);
},
},
methods
:{
methods
:{
getTextWiFiName
(){
getTextWiFiName
(){
...
...
dev/src/view/device/v_index.js
View file @
ad0e7efa
...
@@ -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
t
ime
=
setTimeout
(
function
(){
self
.
remoteT
ime
=
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
(
t
ime
);
window
.
clearTimeout
(
self
.
remoteT
ime
);
}
}
},
config
.
remote_opendoor_timeout
);
},
config
.
remote_opendoor_timeout
);
}
}
...
...
dev/src/view/login/v_index.js
View file @
ad0e7efa
...
@@ -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
));
...
...
web/lib/js/UIOT.js
View file @
ad0e7efa
...
@@ -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
:
//尚未初始化
//尚未初始化
...
...
web/lib/less/addDevice/addDevice.less
View file @
ad0e7efa
...
@@ -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
web/lib/less/doorlockManage/doorlockManage.less
View file @
ad0e7efa
...
@@ -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/font/iconfont.ttf
View file @
ad0e7efa
No preview for this file type
web/resources/image/doorlockUser.png
View replaced file @
a0a13f49
View file @
ad0e7efa
2.6 KB
|
W:
|
H:
2.19 KB
|
W:
|
H:
2-up
Swipe
Onion skin
web/view/device/index.html
View file @
ad0e7efa
...
@@ -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"
>
æ
6f
;
</v-touch>
<v-touch
tag=
"span"
class=
"header-left icon"
v-on:tap=
"onMyInfoTap"
>
æ
9b
;
</v-touch>
<p>
{{ $t('title.device') }}
</p>
<p>
{{ $t('title.device') }}
</p>
</div>
</div>
<div
class=
"content"
>
<div
class=
"content"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment