Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
dy-wx2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
dfe95d13
authored
2019-10-16 23:18:29 +0800
by
fuenxin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add login status
1 parent
be407d08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
js/controller/mainController.js
js/controller/mainController.js
View file @
dfe95d1
...
...
@@ -22,6 +22,7 @@ angular.module('myApp')
if
(
data
.
meta
.
code
==
200
)
{
data
.
data
.
userName
=
res
.
data
.
mobile
;
globalService
.
saveData
(
'user'
,
data
.
data
);
$scope
.
userinfo
.
loginState
=
true
;
layer
.
open
({
content
:
'登录成功'
,
time
:
1
...
...
@@ -60,6 +61,7 @@ angular.module('myApp')
localStorage
.
removeItem
(
'ls.user'
)
loginUrlCode
()
}
else
{
$scope
.
userinfo
.
loginState
=
true
;
dingdaService
.
getUnfinishedOrder
().
success
(
function
(
data
,
status
)
{
if
(
data
.
meta
.
code
===
303
)
{
layer
.
open
({
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment