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
9376cbad
authored
2019-01-06 13:46:48 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
获取code 重新登录
1 parent
9e43930c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
js/controller/mainController.js
js/controller/mainController.js
View file @
9376cba
...
...
@@ -17,6 +17,7 @@ angular.module('myApp')
if
(
code
){
dingdaService
.
verifyThirdCode
(
code
).
success
(
function
(
res
)
{
if
(
res
.
mate
.
code
==
200
)
{
dingdaService
.
verifyPhoneCode
(
res
.
data
.
mobile
,
res
.
data
.
code
).
success
(
function
(
data
)
{
if
(
data
.
meta
.
code
==
200
)
{
data
.
data
.
userName
=
$scope
.
phoneNumberVal
;
globalService
.
saveData
(
'user'
,
data
.
data
);
...
...
@@ -36,9 +37,7 @@ angular.module('myApp')
// layer.msg(data.data.error);
return
;
}
// dingdaService.verifyPhoneCode(res.data.mobile, res.data.code).success(function (data) {
//
// })
})
}
if
(
res
.
mate
.
code
==
500
){
$state
.
go
(
'login'
,
{},
{
reload
:
true
});
...
...
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