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
3d86c336
Commit
3d86c336
authored
Oct 12, 2017
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10122023
parent
86aa7ed4
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
12 deletions
+18
-12
dev/src/view/login/v_index.js
+6
-3
dev/src/view/login/v_login.js
+2
-2
dev/src/view/myInfo/v_index.js
+1
-1
web/view/login/index.js
+6
-3
web/view/login/login.js
+2
-2
web/view/myInfo/index.js
+1
-1
No files found.
dev/src/view/login/v_index.js
View file @
3d86c336
...
...
@@ -74,8 +74,9 @@ function loginButtonTap(self){
console
.
log
(
response
);
let
data
=
uPublic
.
checkResponseData
(
response
.
data
);
if
(
data
){
console
.
log
(
"云端登陆"
);
if
(
data
.
hasOwnProperty
(
'UserID'
)){
cloudsLogin
(
self
,
data
.
UserID
);
}
// iot.navigator.openWindow({
// url: '../device/index.html',
// id: 'device'
...
...
@@ -87,9 +88,11 @@ function loginButtonTap(self){
error
:
(
error
)
=>
{
console
.
log
(
error
);
//请求失败
uPublic
.
openRequestErrorAlert
(
self
);
//
uPublic.openRequestErrorAlert(self);
},
complete
:
()
=>
{}
complete
:
()
=>
{
uComponents
.
hideLoading
(
self
);
}
});
},
error
:
(
error
)
=>
{
...
...
dev/src/view/login/v_login.js
View file @
3d86c336
...
...
@@ -45,7 +45,7 @@ function init() {
let
data
=
uPublic
.
checkResponseData
(
response
.
data
);
if
(
data
){
iot
.
navigator
.
openWindow
({
url
:
'../device/'
,
url
:
'../device/
index.html
'
,
id
:
'device'
});
}
else
{
...
...
@@ -148,7 +148,7 @@ function passwordChange(self,text){
//tap 登录
function
loginButtonTap
(){
iot
.
navigator
.
openWindow
({
url
:
'../device/'
,
url
:
'../device/
index.html
'
,
id
:
'device'
});
}
...
...
dev/src/view/myInfo/v_index.js
View file @
3d86c336
...
...
@@ -124,7 +124,7 @@ function logoutButtonTap(self){
console
.
log
(
error
);
});
iot
.
navigator
.
openWindow
({
url
:
'../login/'
,
url
:
'../login/
index.html
'
,
id
:
'login'
});
let
wvs
=
plus
.
webview
.
all
();
...
...
web/view/login/index.js
View file @
3d86c336
...
...
@@ -82,8 +82,9 @@ function loginButtonTap(self) {
console
.
log
(
response
);
var
data
=
_public
.
uPublic
.
checkResponseData
(
response
.
data
);
if
(
data
)
{
console
.
log
(
"云端登陆"
);
if
(
data
.
hasOwnProperty
(
'UserID'
))
{
cloudsLogin
(
self
,
data
.
UserID
);
}
// iot.navigator.openWindow({
// url: '../device/index.html',
// id: 'device'
...
...
@@ -93,9 +94,11 @@ function loginButtonTap(self) {
error
:
function
error
(
_error
)
{
console
.
log
(
_error
);
//请求失败
_public
.
uPublic
.
openRequestErrorAlert
(
self
);
//
uPublic.openRequestErrorAlert(self);
},
complete
:
function
complete
()
{}
complete
:
function
complete
()
{
_public
.
uComponents
.
hideLoading
(
self
);
}
});
},
error
:
function
error
(
_error2
)
{
...
...
web/view/login/login.js
View file @
3d86c336
...
...
@@ -52,7 +52,7 @@ function init() {
var
data
=
_public
.
uPublic
.
checkResponseData
(
response
.
data
);
if
(
data
)
{
_public
.
iot
.
navigator
.
openWindow
({
url
:
'../device/'
,
url
:
'../device/
index.html
'
,
id
:
'device'
});
}
else
{}
...
...
@@ -153,7 +153,7 @@ function passwordChange(self, text) {
//tap 登录
function
loginButtonTap
()
{
_public
.
iot
.
navigator
.
openWindow
({
url
:
'../device/'
,
url
:
'../device/
index.html
'
,
id
:
'device'
});
}
...
...
web/view/myInfo/index.js
View file @
3d86c336
...
...
@@ -130,7 +130,7 @@ function logoutButtonTap(self) {
console
.
log
(
error
);
});
_public
.
iot
.
navigator
.
openWindow
({
url
:
'../login/'
,
url
:
'../login/
index.html
'
,
id
:
'login'
});
var
wvs
=
plus
.
webview
.
all
();
...
...
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