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
3302bbd5
Commit
3302bbd5
authored
Oct 13, 2017
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1013
parent
576447a4
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
249 additions
and
224 deletions
+249
-224
dev/src/lang/zh.json
+3
-2
dev/src/view/doorlockUsers/v_doorlockUser.js
+16
-14
web/lib/less/doorlockManage/doorlockManage.less
+1
-1
web/lib/less/myInfo/myInfo.less
+71
-70
web/resources/lang/zh.json
+2
-2
web/view/doorlockManage/editName.html
+0
-1
web/view/doorlockUsers/doorlockUser.js
+21
-27
web/view/myInfo/editNickname.html
+8
-6
web/view/myInfo/editPassword.html
+1
-1
web/view/myInfo/index.html
+6
-6
web/view/myInfo/myInfo.css
+120
-94
No files found.
dev/src/lang/zh.json
View file @
3302bbd5
...
...
@@ -54,10 +54,11 @@
"userList"
:
"用户列表"
,
"doorlockUser"
:
"门锁用户"
,
"addUser"
:
"添加用户"
,
"editName"
:
"修改名称"
,
"inviteBind"
:
"邀请绑定"
,
"unlockInfo"
:
"绑定开锁信息"
,
"myInfo"
:
"个人信息"
"myInfo"
:
"个人信息"
,
"editNickname"
:
"修改昵称"
,
"editPassword"
:
"修改密码"
},
"guide"
:{
"footer"
:
"指纹改变生活"
...
...
dev/src/view/doorlockUsers/v_doorlockUser.js
View file @
3302bbd5
...
...
@@ -24,7 +24,7 @@ function init() {
bindShowFlag
:
true
,
unbindShowFlag
:
false
,
stateShowFlag
:
false
,
guideShowFlag
:
fals
e
,
guideShowFlag
:
tru
e
,
guideStep1ShowFlag
:
false
,
guideStep2ShowFlag
:
false
,
guideStep3ShowFlag
:
false
,
...
...
@@ -36,8 +36,9 @@ function init() {
mounted
(){
this
.
extras
=
iot
.
navigator
.
getExtras
();
console
.
log
(
this
.
extras
);
checkFirstAddUser
(
this
);
getUserInfo
(
this
);
showGuide
(
this
);
// checkFirstAddUser(this);
// getUserInfo(this);
},
methods
:{
getBindShowFlag
(){
...
...
@@ -175,22 +176,22 @@ function initComponentsConfig() {
}
//判断是否第一次添加用户
function
checkFirstAddUser
(){
function
checkFirstAddUser
(
self
){
iot
.
storage
.
getMap
(
'isFirstAddUser'
,
(
res
)
=>
{
if
(
res
)
{
}
else
{
//显示引导动画
showGuide
();
showGuide
(
self
);
}
},
()
=>
{
//显示 引导动画
showGuide
();
showGuide
(
self
);
});
}
//显示动画
async
function
showGuide
(){
async
function
showGuide
(
self
){
try
{
let
time
=
await
sleep
(
1000
);
self
.
setGuideStep1ShowFlag
(
true
);
...
...
@@ -198,11 +199,11 @@ async function showGuide(){
time
=
await
sleep
(
1000
);
self
.
setGuideStep2ShowFlag
(
true
);
time
=
await
sleep
(
1000
);
self
.
setGuideStep3ShowFlag
(
true
),
time
=
await
sleep
(
1000
);
self
.
setGuideStep4ShowFlag
(
true
);
//
time = await sleep(1000);
//
self.setGuideStep3ShowFlag(true),
//
//
time = await sleep(1000);
//
self.setGuideStep4ShowFlag(true);
}
catch
(
err
){
console
.
log
(
err
);
...
...
@@ -297,8 +298,9 @@ function deleteUserButtonTap(self){
function
nextButtonTap
(
self
){
self
.
setGuideStep1ShowFlag
(
false
);
self
.
setGuideStep2ShowFlag
(
false
);
self
.
setGuideStep3ShowFlag
(
true
);
self
.
setGuideStep4ShowFlag
(
true
);
// self.setGuideStep3ShowFlag(true);
// self.setGuideStep4ShowFlag(true);
}
//tap 我知道了
...
...
web/lib/less/doorlockManage/doorlockManage.less
View file @
3302bbd5
...
...
@@ -151,7 +151,7 @@
.errorTip();
}
//门锁管理
//门锁管理
.doorlockManage{
font-size: 16px;
padding: 17px 72px 17px 42px;
...
...
web/lib/less/myInfo/myInfo.less
View file @
3302bbd5
@import "../public/public.less";
@import "../public/header.less";
.u-text();
.custom-editNickname-text,.custom-editPassword-text{
input{
font-size: @CUSTOM-EDITNAMETEXT-COMPONENT-INPUT-FONTSIZE;
padding-left: 46px;
&::-webkit-input-placeholder{
color: @CUSTOM-TEXT-COMPONENT-INPUT-PLACEHOLDER-COLOR;
}
}
//x icon
.u-text-clear{
right: 41px;
&:before{
content: '\e601';
font-family: iconfont;
color: @CUSTOM-TEXT-COMPONENT-DEFAULTICON-COLOR;
font-size: @CUSTOM-EDITNAMETEXT-COMPONENT-DEFAULTICON-FONTSIZE;
}
}
&:after{
.white_gradient_border();
}
}
//
.u-text();
//
//
.custom-editNickname-text,.custom-editPassword-text{
//
input{
//
font-size: @CUSTOM-EDITNAMETEXT-COMPONENT-INPUT-FONTSIZE;
//
padding-left: 46px;
//
&::-webkit-input-placeholder{
//
color: @CUSTOM-TEXT-COMPONENT-INPUT-PLACEHOLDER-COLOR;
//
}
//
}
//
//x icon
//
.u-text-clear{
//
right: 41px;
//
&:before{
//
content: '\e601';
//
font-family: iconfont;
//
color: @CUSTOM-TEXT-COMPONENT-DEFAULTICON-COLOR;
//
font-size: @CUSTOM-EDITNAMETEXT-COMPONENT-DEFAULTICON-FONTSIZE;
//
}
//
}
//
&:after{
//
.white_gradient_border();
//
}
//
}
.u-button();
...
...
@@ -33,56 +33,56 @@
.buttonPosition();
}
.editMyInfo{
position: absolute;
top: 44px;
bottom: 0;
left: 0;
height: auto;
width: 100%;
li{
width: 100%;
height: 55px;
position: relative;
line-height: 55px;
padding: 0 43px;
&:after{
//
.defaultBorder();
.white_gradient_border();
}
span{
//去掉span
// &:first-child{
// font-size: 16px;
// line-height: 1;
// .flex();
// }
// &:first-child{
// float: right;
// font-family: iconfont;
// font-size: @TEXT-COMPONENT-ICON-FONTSIZE;
// -webkit-font-smoothing: antialiased;
// .transform(rotate(180deg));
// }
// &:last-child{
font-size: 12px;
float: right;
// }
}
.editNickname, .editPassword{
font-size: 16px;
padding: 17px 72px 17px 42px;
position: relative;
overflow: hidden;
p{
float: right;
color: #A0A0A7;
font-size: 12px;
margin-top: 3px;
}
// > icon
&:before{
content: '\e6a7';
.transformV_center(right,35px);
.iconfont(@USERINFOLINK-ICON-FONTSIZE);
}
&:after{
content: '';
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 1px;/*no*/
.white_gradient_border();
}
.editPassword{
span{
// &:nth-child(2){
font-family: iconfont;
font-size: @TEXT-COMPONENT-ICON-FONTSIZE;
-webkit-font-smoothing: antialiased;
// }
}
}
.editPassword{
p{
font-family: iconfont;
}
}
//修改昵称
.u-text();
.inputBox{
margin: 0 42px;
padding-bottom: 40px;
}
.custom-editNickname-text{
.textInput(0,17px,@CUSTOM-EDITTEXT-COMPONENT-INPUT-FONTSIZE);
}
.errorTip{
position: absolute;
left: 0;
right: 0;
.errorTip();
}
\ No newline at end of file
web/resources/lang/zh.json
View file @
3302bbd5
{
"loading"
:
"loading..."
,
"scroll"
:{
"clickToLoadMore"
:
"点击加载更多"
,
"loading"
:
"loading..."
},
"btn"
:{
"confirm"
:
"确定"
,
"guideLogin"
:
"账号/密码登录"
,
"login"
:
"登录"
,
"getCode"
:
"获取验证码"
,
"register"
:
"注册"
,
"logout"
:
"退出系统"
,
"save"
:
"保存"
,
"qrcode"
:
"生成二维码"
,
"wifiAdd"
:
"开始配置Wi-Fi"
,
"connect"
:
"连接"
,
"bindUser"
:
"绑定姓名"
,
"bind"
:
"我要绑定"
,
"reBound"
:
"请重新绑定"
,
"saveQRcode"
:
"保存二维码到相册"
,
"unbind"
:
"解绑"
,
"deleteUser"
:
"删除该用户"
,
"qrcodeReset"
:
"重新生成二维码"
,
"add"
:
"添加"
,
"next"
:
"下一步"
,
"iSee"
:
"我知道了"
,
"unbindDoorlock"
:
"解绑门锁"
},
"dialog"
:{
"confirm"
:
"确认"
,
"cancel"
:
"取消"
,
"unbind"
:
"解绑"
,
"delete"
:
"删除"
},
"title"
:{
"login"
:
"登录"
,
"register"
:
"注册"
,
"forgetPassword"
:
"忘记密码"
,
"device"
:
"智能指纹锁"
,
"opendoorRecord"
:
"开门记录"
,
"alarmInfo"
:
"报警信息"
,
"remoteOpendoor"
:
"远程开门"
,
"hijackRecord"
:
"劫持记录"
,
"doorlockManage"
:
"门锁管理"
,
"editName"
:
"修改名称"
,
"qrcode"
:
"生成绑定二维码"
,
"addDevice"
:
"添加设备"
,
"scanCodeAdd"
:
"扫描绑定设备"
,
"wifiAddHelp"
:
"配置Wi-Fi"
,
"wifiAdd"
:
"连接Wi-Fi"
,
"bindUserHelp"
:
"ID-姓名绑定"
,
"bindUser"
:
"绑定用户"
,
"userList"
:
"用户列表"
,
"doorlockUser"
:
"门锁用户"
,
"addUser"
:
"添加用户"
,
"inviteBind"
:
"邀请绑定"
,
"unlockInfo"
:
"绑定开锁信息"
,
"myInfo"
:
"个人信息"
},
"guide"
:{
"footer"
:
"指纹改变生活"
},
"login"
:{
"telInputTip"
:
"请输入手机号"
,
"passwordInputTip"
:
"请输入密码"
,
"register"
:
"快速注册"
,
"forgetPassword"
:
"忘记密码"
,
"failure"
:
"登陆失败"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"passWordNull"
:
"请输入密码"
}},
"register"
:{
"telInputTip"
:
"请输入手机号"
,
"codeInputTip"
:
"请输入验证码"
,
"passwordInputTip"
:
"请输入6位登录密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"codeNull"
:
"请输入验证码"
,
"passWordNull"
:
"请输入密码"
}},
"forgetPassword"
:{
"telInputTip"
:
"请输入手机号"
,
"codeInputTip"
:
"请输入验证码"
,
"passwordInputTip"
:
"请输入6位登录密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"codeNull"
:
"请输入验证码"
,
"passWordNull"
:
"请输入密码"
}},
"device"
:{
"opendoorRecord"
:
"开门记录"
,
"securityAlarm"
:
"安全报警"
,
"doorlockUser"
:
"门锁用户"
,
"remoteOpendoor"
:
"远程开门"
,
"hijackAlarm"
:
"劫持报警"
,
"doorlockManage"
:
"门锁管理"
,
"followTitle"
:
"关注服务号"
,
"followCont1"
:
"关注 “i智信” 微信服务号可随时随地掌握设备动态<br>再也不担心错过重要通知,赶紧按下方提示试试吧"
,
"followCont2"
:
"1.保存二维码-2.用微信从<span>相册选取扫码</span>-3.关注"
,
"laterFollow"
:
"稍后关注"
,
"newMsgDoorlock"
:
"门锁最新消息"
,
"doorLockRinging"
:
"门铃响了"
,
"defaultNewMsg"
:
"您尚未绑定门锁"
,
"bindDoorlock"
:
"绑定门锁"
},
"opendoorRecord"
:{
"noRecordTip"
:
"暂无记录"
,
"passwordOpenDoor"
:
"密码开门"
,
"fingerprintOpenDoor"
:
"指纹开门"
,
"ICcardOpenDoor"
:
"IC卡开门"
,
"remoteOpenDoor"
:
"遥控器开门"
,
"keyOpenDoor"
:
"钥匙开门"
,
"hijackingAlarm"
:
"劫持报警"
,
"appRemoteOpenDoor"
:
"app远程开门"
},
"alarmInfo"
:{
"noInfoTip"
:
"暂无信息"
,
"tamperAlarm"
:
"防撬报警"
,
"trialAlarm"
:
"试错报警"
,
"powerAlarm"
:
"欠电报警"
,
"fackLockAlram"
:
"假锁报警"
},
"remoteOpendoor"
:{
"passwordInputTip"
:
"请输入远程开门密码"
,
"openDoorSuccess"
:
"远程开门成功"
,
"openDoorFailure"
:
"远程开门失败"
,
"error"
:{
"noPasswordTip"
:
"远程密码不能为空"
}},
"hijackRecord"
:{
"noRecordTip"
:
"暂无记录"
,
"hijackingAlarm"
:
"劫持指纹报警"
},
"doorlockManage"
:{
"name"
:
"名称"
,
"deleteDialogTip"
:
"<span>{0}</span>将被删除"
,
"logoutDialogTip"
:
"确定要退出系统吗?"
,
"deleteSuccess"
:
"删除成功"
,
"deleteFailue"
:
"删除失败"
,
"defaultNickname"
:
"门锁"
,
"unbindDialogTip"
:
"<span></span>解锁门锁后,您将失去对该门锁<br>所有查看、管理等功能操作"
,
"unbindSuccess"
:
"解绑成功"
},
"editName"
:{
"nameInputTip"
:
"请输入设备名称"
,
"editNameSuccess"
:
"修改名称成功"
,
"editNameFailue"
:
"修改名称失败"
,
"error"
:{
"nameCanNotBeBlank"
:
"设备名称不能为空"
}},
"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"
:
"昵称:"
,
"noUserTip"
:
"暂无用户"
},
"commstatusLoading"
:{
"connectSuccess"
:
"Wi-Fi连接成功,正在绑定..."
,
"bindSuccess"
:
"绑定成功"
,
"bindFailed"
:
"绑定失败"
},
"addUser"
:{
"nameInputTip"
:
"请输入您想添加的用户名"
,
"addUserSuccess"
:
"添加用户成功"
,
"addUserFailure"
:
"添加用户失败"
,
"error"
:{
"nameCanNotEmpty"
:
"用户名不能为空"
}},
"doorlockUser"
:{
"name"
:
"昵称:"
,
"inviteBind"
:
"邀请绑定"
,
"bindUnlockInfo"
:
"绑定开锁信息"
,
"opendoorRecord"
:
"历史开门记录"
,
"unbindDialogTip"
:
"<span></span>解绑后,您将失去对门锁所有查看功能该用户仍在用户列表中"
,
"deleteUserDialogTip"
:
"删除后,二者不再为绑定关系,用户无法查看该门锁下的任何信息,该用户名下绑定的所有ID号仍可以显示在开门记录中"
,
"unbindSuccess"
:
"解绑成功"
,
"unbindFailue"
:
"解绑失败"
,
"guideStep1Tip1"
:
"邀请绑定成功"
,
"guideStep1Tip2"
:
"(可查看开门记录,报警记录等<br>相关门锁信息)"
,
"guideStep3Tip"
:
"绑定后看可了解<br>该用户的开门情况"
},
"inviteBind"
:{
"title"
:
"注意事项:"
,
"cont1"
:
"1.直接通过微信扫一扫添加门锁"
,
"cont2"
:
"2.将此二维码保存为图片,发送给好友,好友通过长按识别二维码"
},
"unlockInfo"
:{
"bindUnlockInfo"
:
"已绑定的开锁信息"
,
"noInfoTip"
:
"目前无绑定任何信息,请添加"
},
"addUnlockInfo"
:{
"opendoorMode"
:
"开门方式"
,
"fingerprint"
:
"指纹"
,
"password"
:
"密码"
,
"icCard"
:
"IC卡"
,
"key"
:
"钥匙"
,
"hijackFingerprint"
:
"劫持指纹"
,
"opendoorRecord"
:
"今日开门记录"
,
"tip"
:
"仅显示未绑定开门记录"
},
"myInfo"
:{
"editNickname"
:
"修改昵称"
,
"editPassword"
:
"修改密码"
,
"logoutDialogTip"
:
"确定要退出系统吗?"
},
"editNickname"
:{
"nickNameInputTip"
:
"请输入昵称"
},
"editPassword"
:{
"newPasswordInputTip"
:
"请输入新密码"
,
"oldPasswordInputTip"
:
"请输入旧密码"
,
"oldPasswordInputTipAgain"
:
"请再次输入旧密码"
},
"request"
:{
"error"
:
"请求发送失败"
}}
\ 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"
:
"保存二维码到相册"
,
"unbind"
:
"解绑"
,
"deleteUser"
:
"删除该用户"
,
"qrcodeReset"
:
"重新生成二维码"
,
"add"
:
"添加"
,
"next"
:
"下一步"
,
"iSee"
:
"我知道了"
,
"unbindDoorlock"
:
"解绑门锁"
},
"dialog"
:{
"confirm"
:
"确认"
,
"cancel"
:
"取消"
,
"unbind"
:
"解绑"
,
"delete"
:
"删除"
},
"title"
:{
"login"
:
"登录"
,
"register"
:
"注册"
,
"forgetPassword"
:
"忘记密码"
,
"device"
:
"智能指纹锁"
,
"opendoorRecord"
:
"开门记录"
,
"alarmInfo"
:
"报警信息"
,
"remoteOpendoor"
:
"远程开门"
,
"hijackRecord"
:
"劫持记录"
,
"doorlockManage"
:
"门锁管理"
,
"editName"
:
"修改名称"
,
"qrcode"
:
"生成绑定二维码"
,
"addDevice"
:
"添加设备"
,
"scanCodeAdd"
:
"扫描绑定设备"
,
"wifiAddHelp"
:
"配置Wi-Fi"
,
"wifiAdd"
:
"连接Wi-Fi"
,
"bindUserHelp"
:
"ID-姓名绑定"
,
"bindUser"
:
"绑定用户"
,
"userList"
:
"用户列表"
,
"doorlockUser"
:
"门锁用户"
,
"addUser"
:
"添加用户"
,
"inviteBind"
:
"邀请绑定"
,
"unlockInfo"
:
"绑定开锁信息"
,
"myInfo"
:
"个人信息"
,
"editNickname"
:
"修改昵称"
,
"editPassword"
:
"修改密码"
},
"guide"
:{
"footer"
:
"指纹改变生活"
},
"login"
:{
"telInputTip"
:
"请输入手机号"
,
"passwordInputTip"
:
"请输入密码"
,
"register"
:
"快速注册"
,
"forgetPassword"
:
"忘记密码"
,
"failure"
:
"登陆失败"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"passWordNull"
:
"请输入密码"
}},
"register"
:{
"telInputTip"
:
"请输入手机号"
,
"codeInputTip"
:
"请输入验证码"
,
"passwordInputTip"
:
"请输入6位登录密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"codeNull"
:
"请输入验证码"
,
"passWordNull"
:
"请输入密码"
}},
"forgetPassword"
:{
"telInputTip"
:
"请输入手机号"
,
"codeInputTip"
:
"请输入验证码"
,
"passwordInputTip"
:
"请输入6位登录密码"
,
"error"
:{
"telNull"
:
"请输入手机号"
,
"codeNull"
:
"请输入验证码"
,
"passWordNull"
:
"请输入密码"
}},
"device"
:{
"opendoorRecord"
:
"开门记录"
,
"securityAlarm"
:
"安全报警"
,
"doorlockUser"
:
"门锁用户"
,
"remoteOpendoor"
:
"远程开门"
,
"hijackAlarm"
:
"劫持报警"
,
"doorlockManage"
:
"门锁管理"
,
"followTitle"
:
"关注服务号"
,
"followCont1"
:
"关注 “i智信” 微信服务号可随时随地掌握设备动态<br>再也不担心错过重要通知,赶紧按下方提示试试吧"
,
"followCont2"
:
"1.保存二维码-2.用微信从<span>相册选取扫码</span>-3.关注"
,
"laterFollow"
:
"稍后关注"
,
"newMsgDoorlock"
:
"门锁最新消息"
,
"doorLockRinging"
:
"门铃响了"
,
"defaultNewMsg"
:
"您尚未绑定门锁"
,
"bindDoorlock"
:
"绑定门锁"
},
"opendoorRecord"
:{
"noRecordTip"
:
"暂无记录"
,
"passwordOpenDoor"
:
"密码开门"
,
"fingerprintOpenDoor"
:
"指纹开门"
,
"ICcardOpenDoor"
:
"IC卡开门"
,
"remoteOpenDoor"
:
"遥控器开门"
,
"keyOpenDoor"
:
"钥匙开门"
,
"hijackingAlarm"
:
"劫持报警"
,
"appRemoteOpenDoor"
:
"app远程开门"
},
"alarmInfo"
:{
"noInfoTip"
:
"暂无信息"
,
"tamperAlarm"
:
"防撬报警"
,
"trialAlarm"
:
"试错报警"
,
"powerAlarm"
:
"欠电报警"
,
"fackLockAlram"
:
"假锁报警"
},
"remoteOpendoor"
:{
"passwordInputTip"
:
"请输入远程开门密码"
,
"openDoorSuccess"
:
"远程开门成功"
,
"openDoorFailure"
:
"远程开门失败"
,
"error"
:{
"noPasswordTip"
:
"远程密码不能为空"
}},
"hijackRecord"
:{
"noRecordTip"
:
"暂无记录"
,
"hijackingAlarm"
:
"劫持指纹报警"
},
"doorlockManage"
:{
"name"
:
"名称"
,
"deleteDialogTip"
:
"<span>{0}</span>将被删除"
,
"logoutDialogTip"
:
"确定要退出系统吗?"
,
"deleteSuccess"
:
"删除成功"
,
"deleteFailue"
:
"删除失败"
,
"defaultNickname"
:
"门锁"
,
"unbindDialogTip"
:
"<span></span>解锁门锁后,您将失去对该门锁<br>所有查看、管理等功能操作"
,
"unbindSuccess"
:
"解绑成功"
},
"editName"
:{
"nameInputTip"
:
"请输入设备名称"
,
"editNameSuccess"
:
"修改名称成功"
,
"editNameFailue"
:
"修改名称失败"
,
"error"
:{
"nameCanNotBeBlank"
:
"设备名称不能为空"
}},
"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"
:
"昵称:"
,
"noUserTip"
:
"暂无用户"
},
"commstatusLoading"
:{
"connectSuccess"
:
"Wi-Fi连接成功,正在绑定..."
,
"bindSuccess"
:
"绑定成功"
,
"bindFailed"
:
"绑定失败"
},
"addUser"
:{
"nameInputTip"
:
"请输入您想添加的用户名"
,
"addUserSuccess"
:
"添加用户成功"
,
"addUserFailure"
:
"添加用户失败"
,
"error"
:{
"nameCanNotEmpty"
:
"用户名不能为空"
}},
"doorlockUser"
:{
"name"
:
"昵称:"
,
"inviteBind"
:
"邀请绑定"
,
"bindUnlockInfo"
:
"绑定开锁信息"
,
"opendoorRecord"
:
"历史开门记录"
,
"unbindDialogTip"
:
"<span></span>解绑后,您将失去对门锁所有查看功能该用户仍在用户列表中"
,
"deleteUserDialogTip"
:
"删除后,二者不再为绑定关系,用户无法查看该门锁下的任何信息,该用户名下绑定的所有ID号仍可以显示在开门记录中"
,
"unbindSuccess"
:
"解绑成功"
,
"unbindFailue"
:
"解绑失败"
,
"guideStep1Tip1"
:
"邀请绑定成功"
,
"guideStep1Tip2"
:
"(可查看开门记录,报警记录等<br>相关门锁信息)"
,
"guideStep3Tip"
:
"绑定后看可了解<br>该用户的开门情况"
},
"inviteBind"
:{
"title"
:
"注意事项:"
,
"cont1"
:
"1.直接通过微信扫一扫添加门锁"
,
"cont2"
:
"2.将此二维码保存为图片,发送给好友,好友通过长按识别二维码"
},
"unlockInfo"
:{
"bindUnlockInfo"
:
"已绑定的开锁信息"
,
"noInfoTip"
:
"目前无绑定任何信息,请添加"
},
"addUnlockInfo"
:{
"opendoorMode"
:
"开门方式"
,
"fingerprint"
:
"指纹"
,
"password"
:
"密码"
,
"icCard"
:
"IC卡"
,
"key"
:
"钥匙"
,
"hijackFingerprint"
:
"劫持指纹"
,
"opendoorRecord"
:
"今日开门记录"
,
"tip"
:
"仅显示未绑定开门记录"
},
"myInfo"
:{
"editNickname"
:
"修改昵称"
,
"editPassword"
:
"修改密码"
,
"logoutDialogTip"
:
"确定要退出系统吗?"
},
"editNickname"
:{
"nickNameInputTip"
:
"请输入昵称"
},
"editPassword"
:{
"newPasswordInputTip"
:
"请输入新密码"
,
"oldPasswordInputTip"
:
"请输入旧密码"
,
"oldPasswordInputTipAgain"
:
"请再次输入旧密码"
},
"request"
:{
"error"
:
"请求发送失败"
}}
\ No newline at end of file
web/view/doorlockManage/editName.html
View file @
3302bbd5
...
...
@@ -18,7 +18,6 @@
<script
type=
"text/javascript"
src=
"../../lib/js/UIOT.js"
></script>
</head>
<body
ontouchstart=
""
>
<div
id=
"app"
v-cloak
>
<div
class=
"header"
>
<v-touch
tag=
"span"
class=
"header-left icon"
v-on:tap=
"onBackTap"
>

</v-touch>
...
...
web/view/doorlockUsers/doorlockUser.js
View file @
3302bbd5
...
...
@@ -37,7 +37,7 @@ function init() {
bindShowFlag
:
true
,
unbindShowFlag
:
false
,
stateShowFlag
:
false
,
guideShowFlag
:
fals
e
,
guideShowFlag
:
tru
e
,
guideStep1ShowFlag
:
false
,
guideStep2ShowFlag
:
false
,
guideStep3ShowFlag
:
false
,
...
...
@@ -49,8 +49,9 @@ function init() {
mounted
:
function
mounted
()
{
this
.
extras
=
_public
.
iot
.
navigator
.
getExtras
();
console
.
log
(
this
.
extras
);
checkFirstAddUser
(
this
);
getUserInfo
(
this
);
showGuide
(
this
);
// checkFirstAddUser(this);
// getUserInfo(this);
},
methods
:
{
...
...
@@ -197,20 +198,20 @@ function initComponentsConfig() {
}
//判断是否第一次添加用户
function
checkFirstAddUser
()
{
function
checkFirstAddUser
(
self
)
{
_public
.
iot
.
storage
.
getMap
(
'isFirstAddUser'
,
function
(
res
)
{
if
(
res
)
{}
else
{
//显示引导动画
showGuide
();
showGuide
(
self
);
}
},
function
()
{
//显示 引导动画
showGuide
();
showGuide
(
self
);
});
}
//显示动画
function
showGuide
()
{
function
showGuide
(
self
)
{
var
time
;
return
_regenerator2
.
default
.
async
(
function
showGuide$
(
_context
)
{
while
(
1
)
{
...
...
@@ -233,34 +234,26 @@ function showGuide() {
self
.
setGuideStep2ShowFlag
(
true
);
_context
.
next
=
11
;
return
_regenerator2
.
default
.
awrap
(
sleep
(
1000
));
case
11
:
time
=
_context
.
sent
;
self
.
setGuideStep3ShowFlag
(
true
);
_context
.
next
=
15
;
return
_regenerator2
.
default
.
awrap
(
sleep
(
1000
));
case
15
:
time
=
_context
.
sent
;
self
.
setGuideStep4ShowFlag
(
true
);
_context
.
next
=
22
;
// time = await sleep(1000);
// self.setGuideStep3ShowFlag(true),
//
// time = await sleep(1000);
// self.setGuideStep4ShowFlag(true);
_context
.
next
=
14
;
break
;
case
1
9
:
_context
.
prev
=
1
9
;
case
1
1
:
_context
.
prev
=
1
1
;
_context
.
t0
=
_context
[
'catch'
](
0
);
console
.
log
(
_context
.
t0
);
case
22
:
case
14
:
case
'end'
:
return
_context
.
stop
();
}
}
},
null
,
this
,
[[
0
,
1
9
]]);
},
null
,
this
,
[[
0
,
1
1
]]);
}
function
sleep
(
time
)
{
...
...
@@ -344,8 +337,9 @@ function deleteUserButtonTap(self) {
function
nextButtonTap
(
self
)
{
self
.
setGuideStep1ShowFlag
(
false
);
self
.
setGuideStep2ShowFlag
(
false
);
self
.
setGuideStep3ShowFlag
(
true
);
self
.
setGuideStep4ShowFlag
(
true
);
// self.setGuideStep3ShowFlag(true);
// self.setGuideStep4ShowFlag(true);
}
//tap 我知道了
...
...
web/view/myInfo/editNickname.html
View file @
3302bbd5
...
...
@@ -21,16 +21,18 @@
<div
id=
"app"
v-cloak
>
<div
class=
"header"
>
<v-touch
tag=
"span"
class=
"header-left icon"
v-on:tap=
"onBackTap"
>

</v-touch>
<p>
{{ $t('title.
doorlockUsers
') }}
</p>
<p>
{{ $t('title.
editNickname
') }}
</p>
<v-touch
tag=
"span"
class=
"header-right"
v-on:tap=
"onSaveTap"
>
{{ $t('btn.save') }}
</v-touch>
</div>
<div
class=
"content"
>
<u-text
:init-param=
"componentsConfig.nameInput.initParam"
:text=
"textNickName"
v-on:u-text-change=
"onNicknameChange(arguments[0])"
></u-text>
<p
class=
"errorTip"
v-if=
"textErrorTip"
>
{{ textErrorTip }}
</p
>
<u-dialog
ref=
"udialog"
:init-param=
"componentsConfig.dialog.initParam"
></u-dialog
>
<u-loading
ref=
"uloading"
:init-param=
"componentsConfig.loading.initParam"
></u-loading
>
<div
class=
"inputBox"
>
<u-text
:init-param=
"componentsConfig.nameInput.initParam"
:text=
"textNickName"
v-on:u-text-change=
"onNicknameChange(arguments[0])"
></u-text
>
<p
class=
"errorTip"
v-if=
"textErrorTip"
>
{{ textErrorTip }}
</p
>
</div
>
</div>
<u-dialog
ref=
"udialog"
:init-param=
"componentsConfig.dialog.initParam"
></u-dialog>
<u-loading
ref=
"uloading"
:init-param=
"componentsConfig.loading.initParam"
></u-loading>
</div>
<script
type=
"text/javascript"
src=
"./editNickname.js"
defer
async
></script>
</body>
...
...
web/view/myInfo/editPassword.html
View file @
3302bbd5
...
...
@@ -21,7 +21,7 @@
<div
id=
"app"
v-cloak
>
<div
class=
"header"
>
<v-touch
tag=
"span"
class=
"header-left icon"
v-on:tap=
"onBackTap"
>

</v-touch>
<p>
{{ $t('title.
doorlockUsers
') }}
</p>
<p>
{{ $t('title.
editPassword
') }}
</p>
<v-touch
tag=
"span"
class=
"header-right"
v-on:tap=
"onSaveTap"
>
{{ $t('btn.save') }}
</v-touch>
</div>
<div
class=
"content"
>
...
...
web/view/myInfo/index.html
View file @
3302bbd5
...
...
@@ -23,16 +23,16 @@
<v-touch
tag=
"span"
class=
"header-left icon"
v-on:tap=
"onBackTap"
>

</v-touch>
<p>
{{ $t('title.myInfo') }}
</p>
</div>
<
ul
class=
"editMyInfo
"
>
<v-touch
tag=
"
li
"
class=
"editNickname"
v-on:tap=
"onEditNicknameTap"
>
<
div
class=
"content
"
>
<v-touch
tag=
"
div
"
class=
"editNickname"
v-on:tap=
"onEditNicknameTap"
>
{{ $t('myInfo.editNickname') }}
<
span>
{{ nickname }}
</span
>
<
p>
{{ nickname }}
</p
>
</v-touch>
<v-touch
tag=
"
li
"
class=
"editPassword"
v-on:tap=
"onEditPasswordTap"
>
<v-touch
tag=
"
div
"
class=
"editPassword"
v-on:tap=
"onEditPasswordTap"
>
{{ $t('myInfo.editPassword') }}
<
span>

</span
>
<
p>

</p
>
</v-touch>
</
ul
>
</
div
>
<u-button
:init-param=
"componentsConfig.logoutButton.initParam"
v-on:u-button-tap=
"onLogoutButtonTap"
></u-button>
<u-dialog
ref=
"udialog"
:init-param=
"componentsConfig.dialog.initParam"
></u-dialog>
<u-loading
ref=
"uloading"
:init-param=
"componentsConfig.loading.initParam"
></u-loading>
...
...
web/view/myInfo/myInfo.css
View file @
3302bbd5
...
...
@@ -452,6 +452,97 @@ p {
padding-top
:
1.173rem
;
}
.u-button
{
width
:
6.4rem
;
color
:
#fff
;
font-size
:
inherit
;
background-color
:
#007aff
;
border-radius
:
0.533rem
;
text-align
:
center
;
line-height
:
1
;
margin
:
0
auto
;
padding
:
0.267rem
0
;
-webkit-transition
:
all
0.2s
linear
;
transition
:
all
0.2s
linear
;
background-clip
:
padding-box
;
}
.u-button
:active
{
background-color
:
#0065ff
;
}
.u-button.disabled
{
background-color
:
#bbb
;
}
.custom-button
{
width
:
7.333rem
;
border-radius
:
0.133rem
;
background-color
:
transparent
;
border
:
1px
solid
;
color
:
#00ffff
;
font-size
:
0.427rem
;
position
:
absolute
;
bottom
:
1.733rem
;
left
:
0
;
right
:
0
;
}
.custom-button
:active
{
background-color
:
#153D4C
;
}
.custom-button.disabled
{
background-color
:
transparent
;
color
:
#999
;
}
.editNickname
,
.editPassword
{
font-size
:
0.427rem
;
padding
:
0.453rem
1.92rem
0.453rem
1.12rem
;
position
:
relative
;
overflow
:
hidden
;
}
.editNickname
p
,
.editPassword
p
{
float
:
right
;
color
:
#A0A0A7
;
font-size
:
0.32rem
;
margin-top
:
0.08rem
;
}
.editNickname
:before
,
.editPassword
:before
{
content
:
'\e6a7'
;
position
:
absolute
;
top
:
50%
;
right
:
0.933rem
;
-webkit-transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
font-family
:
iconfont
;
font-size
:
0.667rem
;
-webkit-font-smoothing
:
antialiased
;
line-height
:
1
;
}
.editNickname
:after
,
.editPassword
:after
{
content
:
''
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
height
:
1px
;
background
:
-webkit-linear-gradient
(
left
,
#242635
,
#fff
,
#242635
);
background
:
linear-gradient
(
to
right
,
#242635
,
#fff
,
#242635
);
}
.editPassword
p
{
font-family
:
iconfont
;
}
.u-text
{
width
:
100%
;
display
:
table
;
...
...
@@ -544,122 +635,57 @@ p {
}
}
.custom-editNickname-text
input
,
.custom-editPassword-text
input
{
font-size
:
0.48rem
;
padding-left
:
1.227rem
;
}
.custom-editNickname-text
input
::-webkit-input-placeholder
,
.custom-editPassword-text
input
::-webkit-input-placeholder
{
color
:
#91929a
;
}
.custom-editNickname-text
.u-text-clear
,
.custom-editPassword-text
.u-text-clear
{
right
:
1.093rem
;
}
.custom-editNickname-text
.u-text-clear
:before
,
.custom-editPassword-text
.u-text-clear
:before
{
content
:
'\e601'
;
font-family
:
iconfont
;
color
:
#00ffff
;
font-size
:
0.533rem
;
.inputBox
{
margin
:
0
1.12rem
;
padding-bottom
:
1.067rem
;
}
.custom-editNickname-text
:after
,
.custom-editPassword-text
:after
{
background
:
-webkit-linear-gradient
(
left
,
#242635
,
#fff
,
#242635
);
background
:
linear-gradient
(
to
right
,
#242635
,
#fff
,
#242635
);
.custom-editNickname-text
{
margin-top
:
0
;
}
.u-button
{
width
:
6.4rem
;
color
:
#fff
;
font-size
:
inherit
;
background-color
:
#007aff
;
border-radius
:
0.533rem
;
text-align
:
center
;
line-height
:
1
;
margin
:
0
auto
;
padding
:
0.267rem
0
;
-webkit-transition
:
all
0.2s
linear
;
transition
:
all
0.2s
linear
;
background-clip
:
padding-box
;
.custom-editNickname-text
input
{
padding-top
:
0.453rem
;
padding-bottom
:
0.453rem
;
padding-right
:
0.667rem
;
font-size
:
0.427rem
;
}
.
u-button
:active
{
background-color
:
#0065ff
;
.
custom-editNickname-text
input
::-webkit-input-placeholder
{
color
:
#91929a
;
}
.u-button.disabled
{
background-color
:
#bbb
;
.custom-editNickname-text
.u-text-icon
{
font-size
:
0.64rem
;
width
:
1.28rem
;
padding-left
:
0.24rem
;
vertical-align
:
text-bottom
;
}
.custom-button
{
width
:
7.333rem
;
border-radius
:
0.133rem
;
background-color
:
transparent
;
border
:
1px
solid
;
.custom-editNickname-text
.u-text-clear
:before
,
.custom-editNickname-text
.u-text-see
:before
{
font-family
:
iconfont
;
color
:
#00ffff
;
font-size
:
0.427rem
;
position
:
absolute
;
bottom
:
1.733rem
;
left
:
0
;
right
:
0
;
}
.custom-button
:active
{
background-color
:
#153D4C
;
}
.custom-button.disabled
{
background-color
:
transparent
;
color
:
#999
;
font-size
:
0.347rem
;
}
.editMyInfo
{
position
:
absolute
;
top
:
1.173rem
;
bottom
:
0
;
left
:
0
;
height
:
auto
;
width
:
100%
;
.custom-editNickname-text
.u-text-clear
{
right
:
-0.187rem
;
}
.editMyInfo
li
{
width
:
100%
;
height
:
1.467rem
;
position
:
relative
;
line-height
:
1.467rem
;
padding
:
0
1.147rem
;
.custom-editNickname-text
.u-text-clear
:before
{
content
:
'\e724'
;
}
.editMyInfo
li
:after
{
content
:
''
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
height
:
1px
;
background
:
#bbb
;
.custom-editNickname-text
:after
{
background
:
-webkit-linear-gradient
(
left
,
#242635
,
#fff
,
#242635
);
background
:
linear-gradient
(
to
right
,
#242635
,
#fff
,
#242635
);
}
.editMyInfo
li
span
{
font-size
:
0.32rem
;
float
:
right
;
}
.editMyInfo
.editPassword
span
{
font-family
:
iconfont
;
font-size
:
0.533rem
;
-webkit-font-smoothing
:
antialiased
;
}
.errorTip
{
position
:
absolute
;
left
:
0
;
right
:
0
;
color
:
#fc2168
;
font-size
:
0.427rem
;
-webkit-transform
:
scale
(
0.7
);
...
...
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