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
3262d77a
Commit
3262d77a
authored
Dec 15, 2017
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1215
1.远程开门超时提示更改 2.android手机按钮覆盖问题
parent
941ff1b1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
12 deletions
+12
-12
dev/src/lang/en.json
+4
-2
dev/src/lang/zh.json
+1
-0
dev/src/view/addDevice/v_scanCodeAdd.js
+1
-1
dev/src/view/device/v_index.js
+2
-5
dev/src/view/login/v_index.js
+2
-2
web/resources/lang/en.json
+0
-0
web/resources/lang/zh.json
+0
-0
web/view/addDevice/addDevice.css
+1
-1
web/view/addDevice/scanCodeAdd.html
+1
-1
No files found.
dev/src/lang/en.json
View file @
3262d77a
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
"login"
:
"登录"
,
"login"
:
"登录"
,
"register"
:
"注册"
,
"register"
:
"注册"
,
"forgetPassword"
:
"忘记密码"
,
"forgetPassword"
:
"忘记密码"
,
"device"
:
"
智能指纹
锁"
,
"device"
:
"
U智
锁"
,
"opendoorRecord"
:
"开门记录"
,
"opendoorRecord"
:
"开门记录"
,
"alarmInfo"
:
"报警信息"
,
"alarmInfo"
:
"报警信息"
,
"remoteOpendoor"
:
"远程开门"
,
"remoteOpendoor"
:
"远程开门"
,
...
@@ -134,6 +134,7 @@
...
@@ -134,6 +134,7 @@
"passwordInputTip"
:
"请输入远程开门密码"
,
"passwordInputTip"
:
"请输入远程开门密码"
,
"openDoorSuccess"
:
"远程开门成功"
,
"openDoorSuccess"
:
"远程开门成功"
,
"openDoorFailure"
:
"远程开门失败"
,
"openDoorFailure"
:
"远程开门失败"
,
"remoteTimeout"
:
"远程开门超时"
,
"remoteOpendoorAgain"
:
"请尝试重试"
,
"remoteOpendoorAgain"
:
"请尝试重试"
,
"error"
:
{
"error"
:
{
"noPasswordTip"
:
"远程密码不能为空"
"noPasswordTip"
:
"远程密码不能为空"
...
@@ -330,7 +331,8 @@
...
@@ -330,7 +331,8 @@
"oldPasswordInputTipAgain"
:
"请再次输入旧密码"
"oldPasswordInputTipAgain"
:
"请再次输入旧密码"
},
},
"request"
:{
"request"
:{
"error"
:
"请求发送失败"
"error"
:
"请求发送失败"
,
"initError"
:
"初始化失败,请关闭APP重试"
},
},
"deviceList"
:{
"deviceList"
:{
"model"
:
"型号:"
,
"model"
:
"型号:"
,
...
...
dev/src/lang/zh.json
View file @
3262d77a
...
@@ -134,6 +134,7 @@
...
@@ -134,6 +134,7 @@
"passwordInputTip"
:
"请输入远程开门密码"
,
"passwordInputTip"
:
"请输入远程开门密码"
,
"openDoorSuccess"
:
"远程开门成功"
,
"openDoorSuccess"
:
"远程开门成功"
,
"openDoorFailure"
:
"远程开门失败"
,
"openDoorFailure"
:
"远程开门失败"
,
"remoteTimeout"
:
"远程开门超时"
,
"remoteOpendoorAgain"
:
"请尝试重试"
,
"remoteOpendoorAgain"
:
"请尝试重试"
,
"error"
:
{
"error"
:
{
"noPasswordTip"
:
"远程密码不能为空"
"noPasswordTip"
:
"远程密码不能为空"
...
...
dev/src/view/addDevice/v_scanCodeAdd.js
View file @
3262d77a
...
@@ -143,8 +143,8 @@ function deviceBind(self, lockId, relId){
...
@@ -143,8 +143,8 @@ function deviceBind(self, lockId, relId){
let
data
=
response
.
data
;
let
data
=
response
.
data
;
if
(
data
.
success
){
if
(
data
.
success
){
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'addDevice.bindSuccess'
),
{
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'addDevice.bindSuccess'
),
{
iot
.
navigator
.
fire
(
plus
.
webview
.
getWebviewById
(
'device'
),
'returnPage'
,{});
text
:
Vue
.
t
(
'dialog.confirm'
),
callback
:
function
()
{
text
:
Vue
.
t
(
'dialog.confirm'
),
callback
:
function
()
{
iot
.
navigator
.
fire
(
plus
.
webview
.
getWebviewById
(
'device'
),
'returnPage'
,{});
iot
.
navigator
.
openWindow
({
iot
.
navigator
.
openWindow
({
url
:
'../device/index.html'
,
url
:
'../device/index.html'
,
id
:
'device'
id
:
'device'
...
...
dev/src/view/device/v_index.js
View file @
3262d77a
...
@@ -45,7 +45,7 @@ function init() {
...
@@ -45,7 +45,7 @@ function init() {
//门锁管理
//门锁管理
doorlockManageDisabledFlag
:
false
,
doorlockManageDisabledFlag
:
false
,
//门锁最新消息是否滚动
//门锁最新消息是否滚动
activeFlag
:
fals
e
,
activeFlag
:
tru
e
,
//配置组件
//配置组件
componentsConfig
:
initComponentsConfig
(),
componentsConfig
:
initComponentsConfig
(),
//
//
...
@@ -485,7 +485,6 @@ function getDevices(self){
...
@@ -485,7 +485,6 @@ function getDevices(self){
self
.
deviceId
=
null
;
self
.
deviceId
=
null
;
self
.
uuid
=
null
;
self
.
uuid
=
null
;
uComponents
.
changeMarqueeText
(
self
,
[
Vue
.
t
(
'device.defaultNewMsg'
)]);
uComponents
.
changeMarqueeText
(
self
,
[
Vue
.
t
(
'device.defaultNewMsg'
)]);
// console.log("不滚");
self
.
activeFlag
=
false
;
self
.
activeFlag
=
false
;
self
.
opendoorRecordFlag
=
false
;
self
.
opendoorRecordFlag
=
false
;
self
.
securityAlarmFlag
=
false
;
self
.
securityAlarmFlag
=
false
;
...
@@ -1286,13 +1285,11 @@ function confirmButtonTap(self){
...
@@ -1286,13 +1285,11 @@ function confirmButtonTap(self){
}
}
});
});
}
}
console
.
log
(
'aaaa'
);
let
time
=
setTimeout
(
function
(){
let
time
=
setTimeout
(
function
(){
console
.
log
(
self
.
getStatus
());
console
.
log
(
self
.
getStatus
());
if
(
self
.
getStatus
()
==
0
){
if
(
self
.
getStatus
()
==
0
){
console
.
log
(
"timeout"
);
//连接失败
//连接失败
uComponents
.
changeCommLoadingStatusAndText
(
self
,
2
,
Vue
.
t
(
'remoteOpendoor.
openDoorFailure
'
));
uComponents
.
changeCommLoadingStatusAndText
(
self
,
2
,
Vue
.
t
(
'remoteOpendoor.
remoteTimeout
'
));
uComponents
.
changeCommButtonText
(
self
,
Vue
.
t
(
'remoteOpendoor.remoteOpendoorAgain'
));
uComponents
.
changeCommButtonText
(
self
,
Vue
.
t
(
'remoteOpendoor.remoteOpendoorAgain'
));
self
.
setStatus
(
2
);
self
.
setStatus
(
2
);
window
.
clearTimeout
(
time
);
window
.
clearTimeout
(
time
);
...
...
dev/src/view/login/v_index.js
View file @
3262d77a
...
@@ -20,7 +20,7 @@ function init() {
...
@@ -20,7 +20,7 @@ function init() {
//配置组件
//配置组件
componentsConfig
:
initComponentsConfig
(),
componentsConfig
:
initComponentsConfig
(),
clientId
:
null
,
clientId
:
null
,
showLoginButtonFlag
:
tru
e
showLoginButtonFlag
:
fals
e
},
},
mounted
(){
mounted
(){
if
(
window
.
iotDebug
){
if
(
window
.
iotDebug
){
...
@@ -120,7 +120,6 @@ function loginButtonTap(self){
...
@@ -120,7 +120,6 @@ function loginButtonTap(self){
}
}
var
data
=
uPublic
.
checkResponseData
(
response
.
data
);
var
data
=
uPublic
.
checkResponseData
(
response
.
data
);
if
(
data
){
if
(
data
){
self
.
setShowLoginButtonFlag
(
false
);
if
(
data
.
hasOwnProperty
(
'UserID'
)){
if
(
data
.
hasOwnProperty
(
'UserID'
)){
console
.
log
(
"sds登陆成功了"
);
console
.
log
(
"sds登陆成功了"
);
cloudsLogin
(
self
,
data
.
UserID
);
cloudsLogin
(
self
,
data
.
UserID
);
...
@@ -130,6 +129,7 @@ function loginButtonTap(self){
...
@@ -130,6 +129,7 @@ function loginButtonTap(self){
}
}
},
},
error
:
(
error
)
=>
{
error
:
(
error
)
=>
{
self
.
setShowLoginButtonFlag
(
true
);
console
.
log
(
error
);
console
.
log
(
error
);
if
(
window
.
iotDebug
){
if
(
window
.
iotDebug
){
iotDebug
.
push
(
'end: sds登陆失败'
+
JSON
.
stringify
(
error
));
iotDebug
.
push
(
'end: sds登陆失败'
+
JSON
.
stringify
(
error
));
...
...
web/resources/lang/en.json
View file @
3262d77a
This diff is collapsed.
Click to expand it.
web/resources/lang/zh.json
View file @
3262d77a
This diff is collapsed.
Click to expand it.
web/view/addDevice/addDevice.css
View file @
3262d77a
...
@@ -1183,7 +1183,7 @@ p {
...
@@ -1183,7 +1183,7 @@ p {
background-color
:
transparent
;
background-color
:
transparent
;
}
}
.
c
ontent
{
.
scanC
ontent
{
position
:
fixed
;
position
:
fixed
;
top
:
1.173rem
;
top
:
1.173rem
;
bottom
:
0
;
bottom
:
0
;
...
...
web/view/addDevice/scanCodeAdd.html
View file @
3262d77a
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<v-touch
tag=
"span"
class=
"header-left icon"
v-on:tap=
"onBackTap"
>

</v-touch>
<v-touch
tag=
"span"
class=
"header-left icon"
v-on:tap=
"onBackTap"
>

</v-touch>
<p>
{{ $t('title.scanCodeAdd') }}
</p>
<p>
{{ $t('title.scanCodeAdd') }}
</p>
</div>
</div>
<div
class=
"
c
ontent"
id=
"bcid"
>
<div
class=
"
scanC
ontent"
id=
"bcid"
>
</div>
</div>
<u-dialog
ref=
"udialog"
:init-param=
"componentsConfig.dialog.initParam"
></u-dialog>
<u-dialog
ref=
"udialog"
:init-param=
"componentsConfig.dialog.initParam"
></u-dialog>
<u-loading
ref=
"uloading"
:init-param=
"componentsConfig.loading.initParam"
></u-loading>
<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