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
ef8c3132
Commit
ef8c3132
authored
Jan 31, 2018
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#31绑定成功之后取消按钮消失
parent
9c657e81
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
28 deletions
+11
-28
dev/src/view/addDevice/v_wifiAdd.js
+2
-22
dev/src/view/device/v_index.js
+9
-6
web/lib/js/UIOT.js
+0
-0
No files found.
dev/src/view/addDevice/v_wifiAdd.js
View file @
ef8c3132
...
@@ -219,17 +219,7 @@ function connectButtonTap(self){
...
@@ -219,17 +219,7 @@ function connectButtonTap(self){
iotDebug
.
upload
(
iot
,
'配网成功'
);
iotDebug
.
upload
(
iot
,
'配网成功'
);
}
}
//wifi连接成功,停止连接wifi
//wifi连接成功,停止连接wifi
uComponents
.
showProcess
(
self
,
0
,
Vue
.
t
(
'wifiAdd.wifiBindSuccess'
),
[{
uComponents
.
showProcess
(
self
,
0
,
Vue
.
t
(
'wifiAdd.wifiBindSuccess'
));
"class"
:
'custom-process-button custom-process-cancelButton'
,
'text'
:
Vue
.
t
(
'btn.cancel'
),
'callback'
:
()
=>
{
uComponents
.
hideProcess
(
self
);
window
.
clearInterval
(
self
.
timeout
);
//停止配网
iot
.
business
.
sds
.
stopFindDevices
({
success
:
(
response
)
=>
{},
error
:
(
error
)
=>
{}
});
}
}]);
}
}
},
},
error
:
(
error
)
=>
{
error
:
(
error
)
=>
{
...
@@ -260,17 +250,7 @@ function connectButtonTap(self){
...
@@ -260,17 +250,7 @@ function connectButtonTap(self){
if
(
window
.
iotDebug
)
{
if
(
window
.
iotDebug
)
{
iotDebug
.
upload
(
iot
,
'激活中'
);
iotDebug
.
upload
(
iot
,
'激活中'
);
}
}
uComponents
.
showProcess
(
self
,
0
,
Vue
.
t
(
'wifiAdd.deviceActivating'
),
[{
uComponents
.
showProcess
(
self
,
0
,
Vue
.
t
(
'wifiAdd.deviceActivating'
));
"class"
:
'custom-process-button custom-process-cancelButton'
,
'text'
:
Vue
.
t
(
'btn.cancel'
),
'callback'
:
()
=>
{
uComponents
.
hideProcess
(
self
);
window
.
clearInterval
(
self
.
timeout
);
//停止配网
iot
.
business
.
sds
.
stopFindDevices
({
success
:
(
response
)
=>
{},
error
:
(
error
)
=>
{}
});
}
}]);
}
else
if
(
response
.
data
==
"joined success"
){
}
else
if
(
response
.
data
==
"joined success"
){
if
(
window
.
iotDebug
){
if
(
window
.
iotDebug
){
iotDebug
.
push
(
'end: 激活成功'
+
JSON
.
stringify
(
response
));
iotDebug
.
push
(
'end: 激活成功'
+
JSON
.
stringify
(
response
));
...
...
dev/src/view/device/v_index.js
View file @
ef8c3132
...
@@ -1235,7 +1235,9 @@ function confirmButtonTap(self){
...
@@ -1235,7 +1235,9 @@ function confirmButtonTap(self){
if
(
self
.
boolPasswordMinlength
){
if
(
self
.
boolPasswordMinlength
){
if
(
self
.
getTextPassword
()
==
null
||
self
.
getTextPassword
().
trim
()
==
''
){
if
(
self
.
getTextPassword
()
==
null
||
self
.
getTextPassword
().
trim
()
==
''
){
self
.
setTextErrorTip
(
Vue
.
t
(
'remoteOpendoor.error.noPasswordTip'
));
self
.
setTextErrorTip
(
Vue
.
t
(
'remoteOpendoor.error.noPasswordTip'
));
}
else
{
}
else
if
(
uPublic
.
checkString
(
self
.
getTextPassword
())){
self
.
setTextErrorTip
(
Vue
.
t
(
'remoteOpendoor.textlengthTip'
));
}
else
if
(
self
.
textErrorTip
==
''
){
uComponents
.
showCommLoading
(
self
);
uComponents
.
showCommLoading
(
self
);
setRemoteOpenDoorLoading
(
self
,
0
,
Vue
.
t
(
'remoteOpendoor.loading'
));
setRemoteOpenDoorLoading
(
self
,
0
,
Vue
.
t
(
'remoteOpendoor.loading'
));
let
keyIv
=
crypto
.
enkey
(
self
.
mac
.
replace
(
/:/g
,
''
));
let
keyIv
=
crypto
.
enkey
(
self
.
mac
.
replace
(
/:/g
,
''
));
...
@@ -1281,11 +1283,12 @@ function confirmButtonTap(self){
...
@@ -1281,11 +1283,12 @@ function confirmButtonTap(self){
}
}
},
config
.
remote_opendoor_timeout
);
},
config
.
remote_opendoor_timeout
);
}
else
{
}
else
{
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'remoteOpendoor.textlengthTip'
),
{
self
.
setTextErrorTip
(
Vue
.
t
(
'remoteOpendoor.textlengthTip'
));
text
:
Vue
.
t
(
'dialog.confirm'
),
callback
:
function
()
{
// uComponents.openAlert(self, Vue.t('remoteOpendoor.textlengthTip'), {
// text: Vue.t('dialog.confirm'), callback: function () {
}
//
});
// }
// });
}
}
}
else
{
}
else
{
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'remoteOpendoor.offlineTip'
),
{
uComponents
.
openAlert
(
self
,
Vue
.
t
(
'remoteOpendoor.offlineTip'
),
{
...
...
web/lib/js/UIOT.js
View file @
ef8c3132
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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