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
felix
DoorLock
Commits
ad0e7efa
Commit
ad0e7efa
authored
Dec 15, 2017
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1215
1.远程开门超时时间设置
parent
a0a13f49
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
77 additions
and
8 deletions
+77
-8
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
+2
-3
web/lib/less/doorlockManage/doorlockManage.less
+62
-0
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() {
},
mounted
(){
resolve
(
this
);
},
methods
:{
getTextWiFiName
(){
...
...
dev/src/view/device/v_index.js
View file @
ad0e7efa
...
...
@@ -97,7 +97,8 @@ function init() {
flag
:
true
,
time
:
null
,
timeout
:
null
,
handle
:
null
handle
:
null
,
remoteTime
:
null
},
mounted
(){
notificationListener
(
this
);
...
...
@@ -489,6 +490,8 @@ function getDevices(self){
self
.
opendoorRecordFlag
=
false
;
self
.
securityAlarmFlag
=
false
;
self
.
hijackAlarmFlag
=
false
;
self
.
setRemoteOpendoorDisabledFlag
(
true
);
self
.
setValueRemoteOpendoor
(
0
);
}
},
error
:
(
error
)
=>
{
...
...
@@ -868,6 +871,7 @@ function sdsDataPorcessing(self, data){
break
;
case
'5'
:
//远程开门失败
setRemoteOpenDoorLoading
(
self
,
2
,
Vue
.
t
(
'remoteOpendoor.openDoorFailure'
),
Vue
.
t
(
'remoteOpendoor.remoteOpendoorAgain'
));
break
;
}
...
...
@@ -925,6 +929,7 @@ function setRemoteOpenDoorLoading(self, status, text, buttonText){
self
.
setValueRemoteOpendoor
(
false
);
self
.
setRemoteOpendoorDisabledFlag
(
true
);
case
2
:
window
.
clearTimeout
(
self
.
remoteTime
);
case
0
:
self
.
setStatus
(
status
);
uComponents
.
changeCommLoadingStatusAndText
(
self
,
status
,
text
);
...
...
@@ -1285,14 +1290,14 @@ function confirmButtonTap(self){
}
});
}
let
t
ime
=
setTimeout
(
function
(){
self
.
remoteT
ime
=
setTimeout
(
function
(){
console
.
log
(
self
.
getStatus
());
if
(
self
.
getStatus
()
==
0
){
//连接失败
uComponents
.
changeCommLoadingStatusAndText
(
self
,
2
,
Vue
.
t
(
'remoteOpendoor.remoteTimeout'
));
uComponents
.
changeCommButtonText
(
self
,
Vue
.
t
(
'remoteOpendoor.remoteOpendoorAgain'
));
self
.
setStatus
(
2
);
window
.
clearTimeout
(
t
ime
);
window
.
clearTimeout
(
self
.
remoteT
ime
);
}
},
config
.
remote_opendoor_timeout
);
}
...
...
dev/src/view/login/v_index.js
View file @
ad0e7efa
...
...
@@ -43,6 +43,7 @@ function init() {
},
function
(
err
){
console
.
log
(
err
);
})
console
.
log
(
'innnnnnn'
);
},
methods
:{
getShowLoginButtonFlag
(){
...
...
@@ -104,6 +105,7 @@ function loginButtonTap(self){
// alert(error);
// console.log(err);
// })
console
.
log
(
"loginButton"
);
iot
.
business
.
sds
.
checkSDSInit
({
data
:
{},
success
:
(
response
)
=>
{
...
...
@@ -145,6 +147,7 @@ function loginButtonTap(self){
},
error
:
(
error
)
=>
{
//初始化失败,重新初始化
console
.
log
(
'eroor'
);
console
.
log
(
error
);
if
(
window
.
iotDebug
){
iotDebug
.
push
(
'end: 初始化失败'
+
JSON
.
stringify
(
error
));
...
...
web/lib/js/UIOT.js
View file @
ad0e7efa
...
...
@@ -5263,6 +5263,7 @@ var SDS = function () {
var
handle
=
null
;
handle
=
setInterval
(
function
()
{
_this
.
bridge
.
obj
.
getSDSStatus
(
function
(
ret
)
{
console
.
log
(
ret
);
switch
(
ret
)
{
case
0
:
//尚未初始化
...
...
web/lib/less/addDevice/addDevice.less
View file @
ad0e7efa
...
...
@@ -187,9 +187,8 @@
.custom-comm-loading();
.content{
width: 100%;
position: absolute;
.scanContent {
position: fixed;
top: 1.173rem;
bottom: 0;
left: 0;
...
...
web/lib/less/doorlockManage/doorlockManage.less
View file @
ad0e7efa
...
...
@@ -220,4 +220,66 @@
}
}
.custom-isClearSwitch-switch {
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 @@
<div
id=
"app"
v-cloak
>
<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>
</div>
<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