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
14b2ed3a
Commit
14b2ed3a
authored
Feb 08, 2018
by
wjd
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jianxiang' into 'test/96'
Jianxiang See merge request iot-project-js/doorlock!43
parents
a0e23a2d
b69005ef
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
20 additions
and
15 deletions
+20
-15
dev/config/lang.js
+2
-1
dev/src/public/defaultConfig.js
+0
-0
dev/src/public/public.js
+0
-0
dev/src/view/addDevice/v_scanCodeAdd.js
+4
-4
dev/src/view/device/v_index.js
+4
-2
dev/src/view/login/v_index.js
+2
-0
web/lib/less/device/device.less
+3
-3
web/resources/font/tipFont.ttf
+0
-0
web/resources/image/red_securityAlarmLight_icon.png
+0
-0
web/view/device/device.css
+4
-4
web/view/login/index.html
+1
-1
No files found.
dev/config/lang.js
View file @
14b2ed3a
...
...
@@ -2,7 +2,7 @@ const path = require('path');
const
srcPath
=
path
.
join
(
__dirname
,
".."
,
"src"
);
const
outputPath
=
"../resources/lang/"
;
module
.
exports
=
{
lang
:[
"zh"
,
"en"
],
lang
:[
"zh"
],
group
:
srcPath
,
output
:
outputPath
};
\ No newline at end of file
dev/src/public/defaultConfig.js
View file @
14b2ed3a
dev/src/public/public.js
View file @
14b2ed3a
dev/src/view/addDevice/v_scanCodeAdd.js
View file @
14b2ed3a
...
...
@@ -72,11 +72,11 @@ function resolve(self){
},
function
(
err
)
{
console
.
log
(
'error'
,
err
);
plus
.
nativeUI
.
confirm
(
Vue
.
t
(
"addDevice.openCameraTip"
),
(
e
)
=>
{
if
(
e
.
index
==
0
){
if
(
e
.
index
==
1
){
iot
.
native
.
toAppSetting
();
}
backTap
(
self
);
},{
"title"
:
""
,
"buttons"
:
[
Vue
.
t
(
"
addDevice.openCamera"
),
Vue
.
t
(
"btn.cancel
"
)]});
},{
"title"
:
""
,
"buttons"
:
[
Vue
.
t
(
"
btn.cancel"
),
Vue
.
t
(
"addDevice.openCamera
"
)]});
});
}
else
{
let
isFistOpenCamera
=
iot
.
storage
.
getMap
(
'isFistOpenCamera'
);
...
...
@@ -88,11 +88,11 @@ function resolve(self){
},
function
(
err
)
{
console
.
log
(
'error'
,
err
);
plus
.
nativeUI
.
confirm
(
Vue
.
t
(
"addDevice.openCameraTip"
),
(
e
)
=>
{
if
(
e
.
index
==
0
){
if
(
e
.
index
==
1
){
iot
.
native
.
toAppSetting
();
}
backTap
(
self
);
},{
"title"
:
""
,
"buttons"
:
[
Vue
.
t
(
"
addDevice.openCamera"
),
Vue
.
t
(
"btn.cancel
"
)]});
},{
"title"
:
""
,
"buttons"
:
[
Vue
.
t
(
"
btn.cancel"
),
Vue
.
t
(
"addDevice.openCamera
"
)]});
});
}
else
{
openScanCode
(
self
);
...
...
dev/src/view/device/v_index.js
View file @
14b2ed3a
...
...
@@ -1010,12 +1010,14 @@ function setRemoteOpendoor(self, time){
let
now
=
moment
(
new
Date
(),
"YYYY-MM-DD hh:mm:ss"
);
time
=
moment
(
time
,
"YYYY-MM-DD hh:mm:ss"
);
console
.
log
(
now
.
diff
(
time
,
'seconds'
));
if
(
now
.
diff
(
time
,
'seconds'
)
<
config
.
pushMsg_timeout
&&
now
.
diff
(
time
,
'seconds'
)
>=
0
){
if
(
now
.
diff
(
time
,
'seconds'
)
<
config
.
pushMsg_timeout
&&
now
.
diff
(
time
,
'seconds'
)
>=
0
&&
(
self
.
getRole
()
==
0
)
){
self
.
setValueRemoteOpendoor
(
true
);
self
.
setRemoteOpendoorDisabledFlag
(
false
);
//停止响铃
stopDoorbellRing
(
self
);
if
((
self
.
getMsgClass
()
!=
'hijack_img'
)
&&
(
self
.
getMsgClass
()
!=
'securityAlarm_img'
)){
setMsgStatus
(
self
,
false
,
"remoteOpendoor_img"
,
true
,
false
,
time
.
format
(
"HH:mm"
),
Vue
.
t
(
'device.remoteOpendoor'
));
}
// //设置当前为普通状态
// self.setWarmingShowFlag(false);
// //更换icon
...
...
@@ -1067,7 +1069,7 @@ function setRemoteOpenDoorLoading(self, status, text, buttonText){
//响铃动画和铃声设置
function
ringBell
(
self
,
time
){
if
(
self
.
getDoorbellRingingFlag
()
===
false
){
if
(
self
.
getDoorbellRingingFlag
()
===
false
&&
(
self
.
getMsgClass
()
!=
'remoteOpendoor_img'
)
&&
(
self
.
getMsgClass
()
!=
'hijack_img'
)
&&
(
self
.
getMsgClass
()
!=
'securityAlarm_img'
)
){
self
.
setDoorbellRingingFlag
(
true
);
setMsgStatus
(
self
,
false
,
"doorbell_img"
,
true
,
false
,
time
.
format
(
"HH:mm"
),
Vue
.
t
(
'device.doorLockRinging'
));
let
p
=
plus
.
audio
.
createPlayer
(
config
.
audioUrl
);
...
...
dev/src/view/login/v_index.js
View file @
14b2ed3a
...
...
@@ -32,6 +32,8 @@ function init() {
console
.
log
(
iot
.
business
.
user
.
isLogin
());
if
(
iot
.
business
.
user
.
isLogin
()){
loginButtonTap
(
this
);
}
else
{
this
.
setShowLoginButtonFlag
(
true
);
}
// document.addEventListener("resume", () => {
// if(!this.showLoginButtonFlag){
...
...
web/lib/less/device/device.less
View file @
14b2ed3a
...
...
@@ -188,11 +188,11 @@
.bgImg("red_securityAlarm_icon.png");
&:before{
content: '';
width: 100%;
height: 100%;
display: block;
position: absolute;
.bgImgSize(40px,40px,"red_securityAlarmLight_icon.png",center,cover);
top: 0;
left: 0;
.bgImgSize(100%,100%,"red_securityAlarmLight_icon.png",center,cover);
.animation(alarmLight 2.5s linear infinite);
}
}
...
...
web/resources/font/tipFont.ttf
View file @
14b2ed3a
No preview for this file type
web/resources/image/red_securityAlarmLight_icon.png
0 → 100644
View file @
14b2ed3a
1.98 KB
web/view/device/device.css
View file @
14b2ed3a
...
...
@@ -1143,12 +1143,12 @@ p {
.securityAlarm_img
:before
{
content
:
''
;
width
:
100%
;
height
:
100%
;
display
:
block
;
position
:
absolute
;
width
:
1.067rem
;
height
:
1.067rem
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
background
:
url("../../resources/image/red_securityAlarmLight_icon.png")
no-repeat
center
;
-webkit-background-size
:
cover
;
background-size
:
cover
;
...
...
web/view/login/index.html
View file @
14b2ed3a
...
...
@@ -23,7 +23,7 @@
<div
id=
"app"
v-cloak
>
<div
class=
"guideBg"
>
<u-button
:init-param=
"componentsConfig.loginButton.initParam"
v-on:u-button-tap=
"onLoginButtonTap"
></u-button>
<u-button
:init-param=
"componentsConfig.loginButton.initParam"
v-on:u-button-tap=
"onLoginButtonTap"
v-show=
"showLoginButtonFlag"
></u-button>
</div>
<u-dialog
ref=
"udialog"
:init-param=
"componentsConfig.dialog.initParam"
></u-dialog>
<u-loading
ref=
"uloading"
:init-param=
"componentsConfig.loading.initParam"
></u-loading>
...
...
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