Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
party-build-cloud
Commits
033813bd
Commit
033813bd
authored
Jun 14, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
忘记密码
parent
d259e50f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
forget-pwd.ts
src/pages/forget-pwd/forget-pwd.ts
+15
-5
No files found.
src/pages/forget-pwd/forget-pwd.ts
View file @
033813bd
...
...
@@ -27,7 +27,7 @@ export class ForgetPwdPage {
isSend
=
false
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
private
commonSer
:
CommonService
,
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
private
commonSer
:
CommonService
,
private
appService
:
AppService
,
private
tabSer
:
TabsService
)
{
}
...
...
@@ -50,9 +50,9 @@ export class ForgetPwdPage {
next
()
{
this
.
tabSer
.
checkCode
(
this
.
user
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errcode
==
"1000"
)
{
if
(
res
.
errcode
==
"1000"
)
{
this
.
isSend
=
true
;
}
else
{
}
else
{
this
.
commonSer
.
toast
(
res
.
errmsg
);
}
}
...
...
@@ -69,16 +69,26 @@ export class ForgetPwdPage {
};
this
.
tabSer
.
updatePassword
(
data
).
subscribe
(
(
res
)
=>
{
if
(
res
==
1
)
{
if
(
res
==
1
)
{
this
.
commonSer
.
toast
(
'密码修改成功'
);
this
.
logoutApp
();
this
.
navCtrl
.
pop
();
}
else
{
}
else
{
this
.
commonSer
.
toast
(
'密码修改失败'
);
}
}
);
}
logoutApp
()
{
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/app/logout"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
},
error
=>
{
}
);
}
check
()
{
if
(
this
.
passwordInfo
.
modifyPassword
==
''
||
this
.
passwordInfo
.
sureModifyPassword
==
''
)
{
...
...
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