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
0aaa2248
Commit
0aaa2248
authored
Feb 08, 2018
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改首页优先级
parent
8029f26c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
9 deletions
+14
-9
dev/src/public/defaultConfig.js
+5
-4
dev/src/public/public.js
+2
-2
dev/src/view/device/v_index.js
+4
-2
dev/src/view/login/v_index.js
+2
-0
web/resources/font/tipFont.ttf
+0
-0
web/view/login/index.html
+1
-1
No files found.
dev/src/public/defaultConfig.js
View file @
0aaa2248
export
default
{
"url"
:
"https://cloud.iot.u-gen.net/"
,
//
"url": "http://192.168.2.96:20000",
"model"
:
"UGEN_SECURITY_SMARTDOOR_YJ2017"
//
"model": "USMARTLOCK_SECURITY_SMARTDOOR_SMART_LOCK"
//
"url": "https://cloud.iot.u-gen.net/",
"url"
:
"http://192.168.2.96:20000"
,
//
"model": "UGEN_SECURITY_SMARTDOOR_YJ2017"
"model"
:
"USMARTLOCK_SECURITY_SMARTDOOR_SMART_LOCK"
}
\ No newline at end of file
dev/src/public/public.js
View file @
0aaa2248
...
...
@@ -12,8 +12,8 @@ const iot = new UIOT({
lang
:
[
'zh'
,
'en'
],
vue
:
Vue
,
i18n
:
VueI18n
,
appId
:
'
2
0004'
,
appSecret
:
'
2
0004'
,
appId
:
'
1
0004'
,
appSecret
:
'
1
0004'
,
wx
:
{
appId
:
''
},
...
...
dev/src/view/device/v_index.js
View file @
0aaa2248
...
...
@@ -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 @
0aaa2248
...
...
@@ -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/resources/font/tipFont.ttf
View file @
0aaa2248
No preview for this file type
web/view/login/index.html
View file @
0aaa2248
...
...
@@ -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