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
658ddaa3
Commit
658ddaa3
authored
Sep 22, 2017
by
wangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.0.4 / 2017-09-20
================== * 1.修改生成绑定二维码页面样式
parent
1c44f093
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
69 additions
and
19 deletions
+69
-19
History.md
+6
-1
dev/src/lang/zh.json
+1
-0
dev/src/view/login/v_index.js
+22
-9
web/lib/less/doorlockManage/doorlockManage.less
+5
-3
web/lib/less/login/login.less
+5
-0
web/resources/image/guideBg.png
+0
-0
web/resources/lang/zh.json
+2
-2
web/view/doorlockManage/doorlockManage.css
+4
-2
web/view/doorlockManage/qrcode.html
+1
-1
web/view/login/index.html
+1
-1
web/view/login/login.css
+22
-0
No files found.
History.md
View file @
658ddaa3
1.0.4 / 2017-09-20
1.0.5 / 2017-09-22
==================
*
1.修改引导页面样式
1.
0.4 / 2017-09-20
==================
*
1.修改生成绑定二维码页面样式
...
...
dev/src/lang/zh.json
View file @
658ddaa3
...
...
@@ -6,6 +6,7 @@
},
"btn"
:
{
"confirm"
:
"确定"
,
"guideLogin"
:
"账号/密码登录"
,
"login"
:
"登录"
,
"getCode"
:
"获取验证码"
,
"register"
:
"注册"
,
...
...
dev/src/view/login/v_index.js
View file @
658ddaa3
...
...
@@ -11,22 +11,20 @@ import {iot, uPublic, uComponents} from '../../public/public.js';
iot
.
ready
(
init
);
function
init
()
{
//通用 dialog、loading组件
uPublic
.
componentsInit
([
'u-dialog'
,
'u-loading'
]);
//通用
按钮、
dialog、loading组件
uPublic
.
componentsInit
([
'u-
button'
,
'u-
dialog'
,
'u-loading'
]);
const
app
=
new
Vue
({
data
:{
//配置组件
componentsConfig
:
initComponentsConfig
()
},
mounted
(){
setTimeout
(
function
(){
iot
.
navigator
.
openWindow
({
url
:
'./login.html'
,
id
:
'login'
});
},
2000
)
mounted
(){
},
methods
:{
//tap 账号/密码登录
onLoginButtonTap
(){
loginButtonTap
();
}
}
}).
$mount
(
'#app'
);
}
...
...
@@ -34,6 +32,13 @@ function init() {
//配置组件参数
function
initComponentsConfig
()
{
return
{
//登录 button 参数
loginButton
:
{
initParam
:
{
class
:
'custom-guide-button'
,
text
:
Vue
.
t
(
'btn.guideLogin'
)
}
},
dialog
:
{
initParam
:
{
class
:
'custom-dialog'
...
...
@@ -45,4 +50,11 @@ function initComponentsConfig() {
}
}
}
}
function
loginButtonTap
(){
iot
.
navigator
.
openWindow
({
url
:
'./login.html'
,
id
:
'login'
});
}
\ No newline at end of file
web/lib/less/doorlockManage/doorlockManage.less
View file @
658ddaa3
...
...
@@ -20,9 +20,11 @@
padding-left: 0;
text-indent: 0;
}
canvas{
margin: 0 auto;
display: block;
p{
width: 200px;
height: 200px;
margin: 0 auto;
border: 1px solid;/*no*/
}
}
}
...
...
web/lib/less/login/login.less
View file @
658ddaa3
...
...
@@ -81,6 +81,11 @@
.button();
}
.custom-guide-button{
.buttonPosition();
.button();
}
.link{
width: 275px;
margin: 5px auto;
...
...
web/resources/image/guideBg.png
View replaced file @
1c44f093
View file @
658ddaa3
210 KB
|
W:
|
H:
619 KB
|
W:
|
H:
2-up
Swipe
Onion skin
web/resources/lang/zh.json
View file @
658ddaa3
{
"loading"
:
"loading..."
,
"scroll"
:{
"clickToLoadMore"
:
"点击加载更多"
,
"loading"
:
"loading..."
},
"btn"
:{
"confirm"
:
"确定"
,
"login"
:
"登录"
,
"getCode"
:
"获取验证码"
,
"register"
:
"注册"
,
"logout"
:
"退出系统"
,
"save"
:
"保存"
,
"qrcode"
:
"生成二维码"
,
"wifiAdd"
:
"开始配置Wi-Fi"
,
"connect"
:
"连接"
,
"bindUser"
:
"绑定姓名"
,
"bind"
:
"我要绑定"
,
"reBound"
:
"请重新绑定"
,
"saveQRcode"
:
"保存二维码到相册"
},
"dialog"
:{
"confirm"
:
"确认"
,
"cancel"
:
"取消"
},
"title"
:{
"login"
:
"登录"
,
"register"
:
"注册"
,
"forgetPassword"
:
"忘记密码"
,
"device"
:
"智能指纹锁"
,
"opendoorRecord"
:
"开门记录"
,
"alarmInfo"
:
"报警信息"
,
"remoteOpendoor"
:
"远程开门"
,
"hijackRecord"
:
"劫持记录"
,
"doorlockManage"
:
"门锁管理"
,
"editName"
:
"修改名称"
,
"qrcode"
:
"生成绑定二维码"
,
"addDevice"
:
"添加设备"
,
"scanCodeAdd"
:
"扫描绑定设备"
,
"wifiAddHelp"
:
"配置Wi-Fi"
,
"wifiAdd"
:
"连接Wi-Fi"
,
"bindUserHelp"
:
"ID-姓名绑定"
,
"bindUser"
:
"绑定用户"
,
"userList"
:
"用户列表"
},
"guide"
:{
"footer"
:
"指纹改变生活"
},
"login"
:{
"telInputTip"
:
"请输入手机号"
,
"passwordInputTip"
:
"请输入密码"
,
"register"
:
"快速注册"
,
"forgetPassword"
:
"忘记密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"passWordNull"
:
"请输入密码"
}},
"register"
:{
"telInputTip"
:
"请输入手机号"
,
"codeInputTip"
:
"请输入验证码"
,
"passwordInputTip"
:
"请输入6位登录密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"codeNull"
:
"请输入验证码"
,
"passWordNull"
:
"请输入密码"
}},
"forgetPassword"
:{
"telInputTip"
:
"请输入手机号"
,
"codeInputTip"
:
"请输入验证码"
,
"passwordInputTip"
:
"请输入6位登录密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"codeNull"
:
"请输入验证码"
,
"passWordNull"
:
"请输入密码"
}},
"device"
:{
"opendoorRecord"
:
"开门记录"
,
"securityAlarm"
:
"安全报警"
,
"remoteOpendoor"
:
"远程开门"
,
"hijackAlarm"
:
"劫持报警"
,
"followTitle"
:
"关注服务号"
,
"followCont1"
:
"关注 “i智信” 微信服务号可随时随地掌握设备动态<br>再也不担心错过重要通知,赶紧按下方提示试试吧"
,
"followCont2"
:
"1.保存二维码-2.用微信从<span>相册选取扫码</span>-3.关注"
,
"laterFollow"
:
"稍后关注"
},
"opendoorRecord"
:{
"noRecordTip"
:
"暂无记录"
},
"alarmInfo"
:{
"noInfoTip"
:
"暂无信息"
},
"remoteOpendoor"
:{
"passwordInputTip"
:
"请输入远程开门密码"
,
"error"
:{}},
"hijackRecord"
:{
"noRecordTip"
:
"暂无记录"
},
"doorlockManage"
:{
"noDeviceTip"
:
"暂无设备"
,
"deleteDialogTip"
:
"<span>{0}</span>将被删除"
,
"logoutDialogTip"
:
"确定要退出系统吗?"
},
"editName"
:{
"nameInputTip"
:
"请输入门锁名称"
,
"error"
:{}},
"qrcode"
:{
"helpTitle"
:
"注意事项:"
,
"helpCont1"
:
"1.仅超级管理员(通过Wi-Fi配网绑定的用户为超级管理员)可以生成绑定二维码"
,
"helpCont2"
:
"2.二维码有效时间为10分钟且只能使用一次"
,
"helpCont3"
:
"3.用户只需要扫描该二维码即可绑定指纹锁"
,
"helpCont4"
:
"4.绑定失败则需要重新生成二维码进行绑定"
},
"addDevice"
:{
"scanCodeAdd"
:
"扫描绑定设备"
,
"wifiAdd"
:
"配置Wi-Fi"
},
"wifiAddHelp"
:{
"helpTitle"
:
"配置Wi-Fi说明:"
,
"helpCont1"
:
"1.按下指纹锁背面的按钮,进入主菜单,选择Wi-Fi设置→配置Wi-Fi,门锁进入等待配网状态"
,
"helpCont2"
:
"2.点击页面 “开始配置Wi-Fi” 按钮,进入Wi-Fi配网画面"
,
"helpCont3"
:
"3.输入Wi-Fi密码,点击 “l连接” 按钮,等待锁端相应,直至配网成功"
,
"helpCont4"
:
"(提示:如果指纹锁已经绑定过用户,重新绑定成功后会清除之前所有绑定信息)"
},
"wifiAdd"
:{
"passwordInputTip"
:
"请输入Wi-Fi密码"
,
"remindTitle"
:
"配置Wi-Fi提醒:"
,
"remindCont1"
:
"1. 请确保Wi-Fi信号良好"
,
"remindCont2"
:
"2. 本产品暂不支持5GHz无线网络"
,
"error"
:{}},
"bindUserHelp"
:{
"helpTitle"
:
"配对姓名说明:"
,
"helpCont1"
:
"1.在指纹锁上录入指纹、密码、卡并获得相应ID"
,
"helpCont2"
:
"2.通过姓名绑定将该ID绑定对应用户姓名"
,
"helpCont3"
:
"3.绑定成功后,开门记录中将会显示已绑定的用户姓名"
,
"helpCont4"
:
"4.用户姓名信息只保存在APP端,不影响锁端设置"
,
"boundUser"
:
"查看已绑定ID姓名"
},
"bindUser"
:{
"editHeadTip"
:
"点击编辑用户头像"
,
"nameTitle"
:
"姓名"
,
"fingerprintIDTitle"
:
"指纹ID"
,
"passwordIDTitle"
:
"密码ID"
,
"ICCardIDTitle"
:
"IC卡ID"
,
"requiredInputTip"
:
"(必填)"
,
"optionalInputTip"
:
"(选填)"
,
"error"
:{}},
"userList"
:{
"name"
:
"姓名:{0}"
,
"id"
:
"指纹ID:<span>{0}</span>密码ID:<span>{1}</span>IC卡ID:<span>{2}</span>"
,
"noUserTip"
:
"暂无用户"
},
"commstatusLoading"
:{
"connectSuccess"
:
"Wi-Fi连接成功,正在绑定..."
,
"bindSuccess"
:
"绑定成功"
,
"bindFailed"
:
"绑定失败"
}}
\ No newline at end of file
{
"loading"
:
"loading..."
,
"scroll"
:{
"clickToLoadMore"
:
"点击加载更多"
,
"loading"
:
"loading..."
},
"btn"
:{
"confirm"
:
"确定"
,
"guideLogin"
:
"账号/密码登录"
,
"login"
:
"登录"
,
"getCode"
:
"获取验证码"
,
"register"
:
"注册"
,
"logout"
:
"退出系统"
,
"save"
:
"保存"
,
"qrcode"
:
"生成二维码"
,
"wifiAdd"
:
"开始配置Wi-Fi"
,
"connect"
:
"连接"
,
"bindUser"
:
"绑定姓名"
,
"bind"
:
"我要绑定"
,
"reBound"
:
"请重新绑定"
,
"saveQRcode"
:
"保存二维码到相册"
},
"dialog"
:{
"confirm"
:
"确认"
,
"cancel"
:
"取消"
},
"title"
:{
"login"
:
"登录"
,
"register"
:
"注册"
,
"forgetPassword"
:
"忘记密码"
,
"device"
:
"智能指纹锁"
,
"opendoorRecord"
:
"开门记录"
,
"alarmInfo"
:
"报警信息"
,
"remoteOpendoor"
:
"远程开门"
,
"hijackRecord"
:
"劫持记录"
,
"doorlockManage"
:
"门锁管理"
,
"editName"
:
"修改名称"
,
"qrcode"
:
"生成绑定二维码"
,
"addDevice"
:
"添加设备"
,
"scanCodeAdd"
:
"扫描绑定设备"
,
"wifiAddHelp"
:
"配置Wi-Fi"
,
"wifiAdd"
:
"连接Wi-Fi"
,
"bindUserHelp"
:
"ID-姓名绑定"
,
"bindUser"
:
"绑定用户"
,
"userList"
:
"用户列表"
},
"guide"
:{
"footer"
:
"指纹改变生活"
},
"login"
:{
"telInputTip"
:
"请输入手机号"
,
"passwordInputTip"
:
"请输入密码"
,
"register"
:
"快速注册"
,
"forgetPassword"
:
"忘记密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"passWordNull"
:
"请输入密码"
}},
"register"
:{
"telInputTip"
:
"请输入手机号"
,
"codeInputTip"
:
"请输入验证码"
,
"passwordInputTip"
:
"请输入6位登录密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"codeNull"
:
"请输入验证码"
,
"passWordNull"
:
"请输入密码"
}},
"forgetPassword"
:{
"telInputTip"
:
"请输入手机号"
,
"codeInputTip"
:
"请输入验证码"
,
"passwordInputTip"
:
"请输入6位登录密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"codeNull"
:
"请输入验证码"
,
"passWordNull"
:
"请输入密码"
}},
"device"
:{
"opendoorRecord"
:
"开门记录"
,
"securityAlarm"
:
"安全报警"
,
"remoteOpendoor"
:
"远程开门"
,
"hijackAlarm"
:
"劫持报警"
,
"followTitle"
:
"关注服务号"
,
"followCont1"
:
"关注 “i智信” 微信服务号可随时随地掌握设备动态<br>再也不担心错过重要通知,赶紧按下方提示试试吧"
,
"followCont2"
:
"1.保存二维码-2.用微信从<span>相册选取扫码</span>-3.关注"
,
"laterFollow"
:
"稍后关注"
},
"opendoorRecord"
:{
"noRecordTip"
:
"暂无记录"
},
"alarmInfo"
:{
"noInfoTip"
:
"暂无信息"
},
"remoteOpendoor"
:{
"passwordInputTip"
:
"请输入远程开门密码"
,
"error"
:{}},
"hijackRecord"
:{
"noRecordTip"
:
"暂无记录"
},
"doorlockManage"
:{
"noDeviceTip"
:
"暂无设备"
,
"deleteDialogTip"
:
"<span>{0}</span>将被删除"
,
"logoutDialogTip"
:
"确定要退出系统吗?"
},
"editName"
:{
"nameInputTip"
:
"请输入门锁名称"
,
"error"
:{}},
"qrcode"
:{
"helpTitle"
:
"注意事项:"
,
"helpCont1"
:
"1.仅超级管理员(通过Wi-Fi配网绑定的用户为超级管理员)可以生成绑定二维码"
,
"helpCont2"
:
"2.二维码有效时间为10分钟且只能使用一次"
,
"helpCont3"
:
"3.用户只需要扫描该二维码即可绑定指纹锁"
,
"helpCont4"
:
"4.绑定失败则需要重新生成二维码进行绑定"
},
"addDevice"
:{
"scanCodeAdd"
:
"扫描绑定设备"
,
"wifiAdd"
:
"配置Wi-Fi"
},
"wifiAddHelp"
:{
"helpTitle"
:
"配置Wi-Fi说明:"
,
"helpCont1"
:
"1.按下指纹锁背面的按钮,进入主菜单,选择Wi-Fi设置→配置Wi-Fi,门锁进入等待配网状态"
,
"helpCont2"
:
"2.点击页面 “开始配置Wi-Fi” 按钮,进入Wi-Fi配网画面"
,
"helpCont3"
:
"3.输入Wi-Fi密码,点击 “l连接” 按钮,等待锁端相应,直至配网成功"
,
"helpCont4"
:
"(提示:如果指纹锁已经绑定过用户,重新绑定成功后会清除之前所有绑定信息)"
},
"wifiAdd"
:{
"passwordInputTip"
:
"请输入Wi-Fi密码"
,
"remindTitle"
:
"配置Wi-Fi提醒:"
,
"remindCont1"
:
"1. 请确保Wi-Fi信号良好"
,
"remindCont2"
:
"2. 本产品暂不支持5GHz无线网络"
,
"error"
:{}},
"bindUserHelp"
:{
"helpTitle"
:
"配对姓名说明:"
,
"helpCont1"
:
"1.在指纹锁上录入指纹、密码、卡并获得相应ID"
,
"helpCont2"
:
"2.通过姓名绑定将该ID绑定对应用户姓名"
,
"helpCont3"
:
"3.绑定成功后,开门记录中将会显示已绑定的用户姓名"
,
"helpCont4"
:
"4.用户姓名信息只保存在APP端,不影响锁端设置"
,
"boundUser"
:
"查看已绑定ID姓名"
},
"bindUser"
:{
"editHeadTip"
:
"点击编辑用户头像"
,
"nameTitle"
:
"姓名"
,
"fingerprintIDTitle"
:
"指纹ID"
,
"passwordIDTitle"
:
"密码ID"
,
"ICCardIDTitle"
:
"IC卡ID"
,
"requiredInputTip"
:
"(必填)"
,
"optionalInputTip"
:
"(选填)"
,
"error"
:{}},
"userList"
:{
"name"
:
"姓名:{0}"
,
"id"
:
"指纹ID:<span>{0}</span>密码ID:<span>{1}</span>IC卡ID:<span>{2}</span>"
,
"noUserTip"
:
"暂无用户"
},
"commstatusLoading"
:{
"connectSuccess"
:
"Wi-Fi连接成功,正在绑定..."
,
"bindSuccess"
:
"绑定成功"
,
"bindFailed"
:
"绑定失败"
}}
\ No newline at end of file
web/view/doorlockManage/doorlockManage.css
View file @
658ddaa3
...
...
@@ -454,9 +454,11 @@ p {
text-indent
:
0
;
}
.qrcodeHelp
li
canvas
{
.qrcodeHelp
li
p
{
width
:
5.333rem
;
height
:
5.333rem
;
margin
:
0
auto
;
display
:
block
;
border
:
1px
solid
;
}
.u-button
{
...
...
web/view/doorlockManage/qrcode.html
View file @
658ddaa3
...
...
@@ -32,7 +32,7 @@
<li>
{{ $t('qrcode.helpCont3') }}
</li>
<li>
{{ $t('qrcode.helpCont4') }}
</li>
<li>
<
canvas></canvas
>
<
p></p
>
</li>
</ul>
<u-button
:init-param=
"componentsConfig.qrcodeButton.initParam"
v-on:u-button-tap=
"onQRcodeButtonTap"
></u-button>
...
...
web/view/login/index.html
View file @
658ddaa3
...
...
@@ -21,7 +21,7 @@
<div
id=
"app"
v-cloak
>
<div
class=
"guideBg"
>
<
p>
{{ $t('guide.footer') }}
</p
>
<
u-button
:init-param=
"componentsConfig.loginButton.initParam"
v-on:u-button-tap=
"onLoginButtonTap"
></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>
...
...
web/view/login/login.css
View file @
658ddaa3
...
...
@@ -749,6 +749,28 @@ p {
color
:
#999
;
}
.custom-guide-button
{
position
:
absolute
;
bottom
:
1.733rem
;
left
:
0
;
right
:
0
;
width
:
7.333rem
;
border-radius
:
0.133rem
;
background-color
:
transparent
;
border
:
1px
solid
;
color
:
#00ffff
;
font-size
:
0.427rem
;
}
.custom-guide-button
:active
{
background-color
:
#153D4C
;
}
.custom-guide-button.disabled
{
background-color
:
transparent
;
color
:
#999
;
}
.link
{
width
:
7.333rem
;
margin
:
0.133rem
auto
;
...
...
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