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
49e173cc
Commit
49e173cc
authored
Feb 02, 2018
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页效果制作
parent
3b4bc53c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
73 additions
and
43 deletions
+73
-43
dev/src/lang/zh.json
+13
-13
dev/src/public/public.js
+1
-1
dev/src/view/device/v_index.js
+9
-10
web/lib/less/device/device.less
+17
-5
web/resources/image/green_remoteOpendoor_icon2.png
+0
-0
web/resources/lang/zh.json
+0
-0
web/view/device/device.css
+30
-13
web/view/device/index.html
+3
-1
No files found.
dev/src/lang/zh.json
View file @
49e173cc
{
{
"loading"
:
"
loading
..."
,
"loading"
:
"
数据加载中
..."
,
"scroll"
:
{
"scroll"
:
{
"clickToLoadMore"
:
"上拉加载更多"
,
"clickToLoadMore"
:
"上拉加载更多"
,
"loading"
:
"loading"
"loading"
:
"loading"
...
@@ -22,20 +22,20 @@
...
@@ -22,20 +22,20 @@
"openNotify"
:
"开启推送通知"
,
"openNotify"
:
"开启推送通知"
,
"reBound"
:
"重新绑定"
,
"reBound"
:
"重新绑定"
,
"saveQRcode"
:
"保存二维码到相册"
,
"saveQRcode"
:
"保存二维码到相册"
,
"unbind"
:
"解
绑
"
,
"unbind"
:
"解
除授权
"
,
"deleteUser"
:
"删除该用户"
,
"deleteUser"
:
"删除该用户"
,
"qrcodeReset"
:
"重新生成二维码"
,
"qrcodeReset"
:
"重新生成二维码"
,
"add"
:
"添加"
,
"add"
:
"添加"
,
"next"
:
"下一步"
,
"next"
:
"下一步"
,
"iSee"
:
"我知道了"
,
"iSee"
:
"我知道了"
,
"unbindDoorlock"
:
"解
绑
门锁"
,
"unbindDoorlock"
:
"解
除授权
门锁"
,
"finish"
:
"完成"
,
"finish"
:
"完成"
,
"cancel"
:
"取消"
"cancel"
:
"取消"
},
},
"dialog"
:{
"dialog"
:{
"confirm"
:
"确认"
,
"confirm"
:
"确认"
,
"cancel"
:
"取消"
,
"cancel"
:
"取消"
,
"unbind"
:
"解
绑
"
,
"unbind"
:
"解
除授权
"
,
"delete"
:
"删除"
"delete"
:
"删除"
},
},
"title"
:{
"title"
:{
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
"userList"
:
"用户列表"
,
"userList"
:
"用户列表"
,
"doorlockUser"
:
"门锁用户"
,
"doorlockUser"
:
"门锁用户"
,
"addUser"
:
"添加用户"
,
"addUser"
:
"添加用户"
,
"inviteBind"
:
"邀请
绑定
"
,
"inviteBind"
:
"邀请
授权
"
,
"unlockInfo"
:
"关联开锁信息"
,
"unlockInfo"
:
"关联开锁信息"
,
"myInfo"
:
"个人信息"
,
"myInfo"
:
"个人信息"
,
"editNickname"
:
"修改昵称"
,
"editNickname"
:
"修改昵称"
,
...
@@ -162,8 +162,8 @@
...
@@ -162,8 +162,8 @@
"alarmMsgPush"
:
"报警消息推送"
,
"alarmMsgPush"
:
"报警消息推送"
,
"opendoorMsgPush"
:
"开门消息推送"
,
"opendoorMsgPush"
:
"开门消息推送"
,
"unbindDialogTip"
:
"确认解除绑定"
,
"unbindDialogTip"
:
"确认解除绑定"
,
"unbindSuccess"
:
"<img src='../../resources/image/green_unbindSuccess_icon.png'>解
绑
成功"
,
"unbindSuccess"
:
"<img src='../../resources/image/green_unbindSuccess_icon.png'>解
除授权
成功"
,
"unbindFailue"
:
"<img src='../../resources/image/green_unbindSuccess_icon.png'>解
绑
失败"
"unbindFailue"
:
"<img src='../../resources/image/green_unbindSuccess_icon.png'>解
除授权
失败"
},
},
"editName"
:{
"editName"
:{
"nameInputTip"
:
"请输入门锁名称"
,
"nameInputTip"
:
"请输入门锁名称"
,
...
@@ -255,15 +255,15 @@
...
@@ -255,15 +255,15 @@
},
},
"doorlockUser"
:{
"doorlockUser"
:{
"name"
:
"昵称:"
,
"name"
:
"昵称:"
,
"inviteBind"
:
"邀请
绑定
"
,
"inviteBind"
:
"邀请
授权
"
,
"bindUnlockInfo"
:
"关联开锁信息"
,
"bindUnlockInfo"
:
"关联开锁信息"
,
"editUsername"
:
"编辑用户昵称"
,
"editUsername"
:
"编辑用户昵称"
,
"opendoorRecord"
:
"历史开门记录"
,
"opendoorRecord"
:
"历史开门记录"
,
"unbindDialogTip"
:
"<img src='../../resources/image/green_unbind_icon.png'>解
绑
后,该用户不能对门锁下的信息进行查看"
,
"unbindDialogTip"
:
"<img src='../../resources/image/green_unbind_icon.png'>解
除授权
后,该用户不能对门锁下的信息进行查看"
,
"deleteUserDialogTip"
:
"删除后,用户对应的开锁id取消关联,同时失去信息查看权限。"
,
"deleteUserDialogTip"
:
"删除后,用户对应的开锁id取消关联,同时失去信息查看权限。"
,
"unbindSuccess"
:
"<img src='../../resources/image/green_unbindSuccess_icon.png'>解
绑
成功"
,
"unbindSuccess"
:
"<img src='../../resources/image/green_unbindSuccess_icon.png'>解
除授权
成功"
,
"unbindFailue"
:
"<img src='../../resources/image/green_unbindSuccess_icon.png'>解
绑
失败"
,
"unbindFailue"
:
"<img src='../../resources/image/green_unbindSuccess_icon.png'>解
除授权
失败"
,
"guideStep1Tip1"
:
"邀请
绑定
成功"
,
"guideStep1Tip1"
:
"邀请
授权
成功"
,
"guideStep1Tip2"
:
"(受邀用户可查看开门记录,报警记录等<br>相关门锁信息)"
,
"guideStep1Tip2"
:
"(受邀用户可查看开门记录,报警记录等<br>相关门锁信息)"
,
"guideStep3Tip"
:
"关联后可了解<br>该用户的开门情况"
,
"guideStep3Tip"
:
"关联后可了解<br>该用户的开门情况"
,
"deleteSuccess"
:
"删除成功"
,
"deleteSuccess"
:
"删除成功"
,
...
@@ -349,7 +349,7 @@
...
@@ -349,7 +349,7 @@
"oldPasswordInputTipAgain"
:
"请再次输入旧密码"
"oldPasswordInputTipAgain"
:
"请再次输入旧密码"
},
},
"request"
:{
"request"
:{
"error"
:
"
请求发送
失败"
,
"error"
:
"
数据加载
失败"
,
"initError"
:
"初始化失败,请关闭APP重试"
"initError"
:
"初始化失败,请关闭APP重试"
},
},
"deviceList"
:{
"deviceList"
:{
...
...
dev/src/public/public.js
View file @
49e173cc
...
@@ -46,7 +46,7 @@ uPublic.recalc = function () {
...
@@ -46,7 +46,7 @@ uPublic.recalc = function () {
recalc
=
function
()
{
recalc
=
function
()
{
var
clientWidth
=
docEl
.
clientWidth
;
var
clientWidth
=
docEl
.
clientWidth
;
if
(
!
clientWidth
)
return
;
if
(
!
clientWidth
)
return
;
docEl
.
style
.
fontSize
=
parseInt
(
clientWidth
/
10
,
10
)
+
'px'
;
docEl
.
style
.
fontSize
=
clientWidth
/
10
+
'px'
;
};
};
window
.
addEventListener
(
resizeEvt
,
recalc
,
false
);
window
.
addEventListener
(
resizeEvt
,
recalc
,
false
);
recalc
();
recalc
();
...
...
dev/src/view/device/v_index.js
View file @
49e173cc
...
@@ -969,9 +969,7 @@ function setBellRing(self, time){
...
@@ -969,9 +969,7 @@ function setBellRing(self, time){
let
now
=
moment
(
new
Date
(),
"YYYY-MM-DD hh:mm:ss"
);
let
now
=
moment
(
new
Date
(),
"YYYY-MM-DD hh:mm:ss"
);
time
=
moment
(
time
,
"YYYY-MM-DD hh:mm:ss"
);
time
=
moment
(
time
,
"YYYY-MM-DD hh:mm:ss"
);
if
(
now
.
diff
(
time
,
'seconds'
)
<
config
.
ringBell_timeout
&&
now
.
diff
(
time
,
'seconds'
)
>=
0
){
if
(
now
.
diff
(
time
,
'seconds'
)
<
config
.
ringBell_timeout
&&
now
.
diff
(
time
,
'seconds'
)
>=
0
){
self
.
setMsgTime
(
now
.
format
(
"HH:mm"
));
ringBell
(
self
,
time
);
self
.
setMsgText
(
Vue
.
t
(
'device.doorLockRinging'
));
ringBell
(
self
);
}
}
}
}
...
@@ -1032,7 +1030,7 @@ function setRemoteOpenDoorLoading(self, status, text, buttonText){
...
@@ -1032,7 +1030,7 @@ function setRemoteOpenDoorLoading(self, status, text, buttonText){
}
}
//响铃动画和铃声设置
//响铃动画和铃声设置
function
ringBell
(
self
){
function
ringBell
(
self
,
time
){
// window.clearInterval(self.time);
// window.clearInterval(self.time);
// window.clearTimeout(self.timeout);
// window.clearTimeout(self.timeout);
// let i = 0;
// let i = 0;
...
@@ -1044,12 +1042,13 @@ function ringBell(self){
...
@@ -1044,12 +1042,13 @@ function ringBell(self){
// },config.await_time*2);
// },config.await_time*2);
if
(
self
.
getDoorbellRingingFlag
()
===
false
){
if
(
self
.
getDoorbellRingingFlag
()
===
false
){
self
.
setDoorbellRingingFlag
(
true
);
self
.
setDoorbellRingingFlag
(
true
);
//设置当前为普通状态
// //设置当前为普通状态
self
.
setWarmingShowFlag
(
false
);
// self.setWarmingShowFlag(false);
//更换icon
// //更换icon
self
.
setMsgClass
(
"doorbell_img"
);
// self.setMsgClass("doorbell_img");
//开启普通动画效果
// //开启普通动画效果
self
.
setNormalApertureShow
(
true
);
// self.setNormalApertureShow(true);
setMsgStatus
(
self
,
false
,
"doorbell_img"
,
true
,
false
,
time
.
format
(
"HH:mm"
),
Vue
.
t
(
'device.doorLockRinging'
));
let
p
=
plus
.
audio
.
createPlayer
(
config
.
audioUrl
);
let
p
=
plus
.
audio
.
createPlayer
(
config
.
audioUrl
);
self
.
timeout
=
setTimeout
(()
=>
{
self
.
timeout
=
setTimeout
(()
=>
{
p
=
plus
.
audio
.
createPlayer
(
config
.
audioUrl
);
p
=
plus
.
audio
.
createPlayer
(
config
.
audioUrl
);
...
...
web/lib/less/device/device.less
View file @
49e173cc
...
@@ -137,8 +137,14 @@
...
@@ -137,8 +137,14 @@
}
}
.remoteOpendoor_img{
.remoteOpendoor_img{
.bgImgSize(40px,40px,"green_remoteOpendoor_icon.png",center,cover);
// .bgImgSize(40px,40px,"green_remoteOpendoor_icon.png",center,cover);
.animation(remoteOpendoor .5s steps(3) infinite);
width: 37.5px;
height: 37.5px;
background-size: 112.5px 37.5px;
background-repeat: no-repeat;
background-position: 0 0;
.bgImg("green_remoteOpendoor_icon.png");
.animation(remoteOpendoor 2s step-start infinite);
}
}
.hijack_img{
.hijack_img{
...
@@ -202,11 +208,17 @@
...
@@ -202,11 +208,17 @@
});
});
.keyframes(remoteOpendoor,{
.keyframes(remoteOpendoor,{
from
{
0%
{
background-position: 0 0;
background-position: 0 0;
}
}
to{
33.33%{
background-position: -120px 0;
background-position: -37.5px 0;
}
66.66%{
background-position: -75px 0;
}
100% {
background-position: 0 0;
}
}
});
});
...
...
web/resources/image/green_remoteOpendoor_icon2.png
deleted
100644 → 0
View file @
3b4bc53c
2.49 KB
web/resources/lang/zh.json
View file @
49e173cc
This diff is collapsed.
Click to expand it.
web/view/device/device.css
View file @
49e173cc
...
@@ -1083,13 +1083,14 @@ p {
...
@@ -1083,13 +1083,14 @@ p {
}
}
.remoteOpendoor_img
{
.remoteOpendoor_img
{
width
:
1.067rem
;
width
:
1rem
;
height
:
1.067rem
;
height
:
1rem
;
background
:
url("../../resources/image/green_remoteOpendoor_icon.png")
no-repeat
center
;
background-size
:
3rem
1rem
;
-webkit-background-size
:
cover
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
background-position
:
0
0
;
-webkit-animation
:
remoteOpendoor
0.5s
steps
(
3
)
infinite
;
background-image
:
url("../../resources/image/green_remoteOpendoor_icon.png")
;
animation
:
remoteOpendoor
0.5s
steps
(
3
)
infinite
;
-webkit-animation
:
remoteOpendoor
2s
step-start
infinite
;
animation
:
remoteOpendoor
2s
step-start
infinite
;
}
}
.hijack_img
{
.hijack_img
{
...
@@ -1202,22 +1203,38 @@ p {
...
@@ -1202,22 +1203,38 @@ p {
}
}
@-webkit-keyframes
remoteOpendoor
{
@-webkit-keyframes
remoteOpendoor
{
from
{
0
%
{
background-position
:
0
0
;
background-position
:
0
0
;
}
}
to
{
33
.33
%
{
background-position
:
-3.2rem
0
;
background-position
:
-1rem
0
;
}
66
.66
%
{
background-position
:
-2rem
0
;
}
100
%
{
background-position
:
0
0
;
}
}
}
}
@keyframes
remoteOpendoor
{
@keyframes
remoteOpendoor
{
from
{
0
%
{
background-position
:
0
0
;
background-position
:
0
0
;
}
}
to
{
33
.33
%
{
background-position
:
-3.2rem
0
;
background-position
:
-1rem
0
;
}
66
.66
%
{
background-position
:
-2rem
0
;
}
100
%
{
background-position
:
0
0
;
}
}
}
}
...
...
web/view/device/index.html
View file @
49e173cc
...
@@ -32,7 +32,9 @@
...
@@ -32,7 +32,9 @@
<div
class=
"doorbellCircle"
>
<div
class=
"doorbellCircle"
>
<div
class=
"doorbell"
v-bind:class=
"{ active: doorbellRingingFlag }"
>
<div
class=
"doorbell"
v-bind:class=
"{ active: doorbellRingingFlag }"
>
<!--<img :src="msgIconSrc">-->
<!--<img :src="msgIconSrc">-->
<p
:class=
" msgClass "
></p>
<p
:class=
" msgClass "
>
</p>
</div>
</div>
</div>
</div>
<div
class=
"doorbellTip"
><span>
{{ msgTime }}
</span>
{{ msgText }}
</div>
<div
class=
"doorbellTip"
><span>
{{ msgTime }}
</span>
{{ msgText }}
</div>
...
...
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