Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
fb9269ea
Commit
fb9269ea
authored
Jun 17, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定手机号
parent
c9da436c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/components/passport/bindingTel/index.js
+3
-3
src/components/passport/setPassword/index.js
+1
-1
No files found.
src/components/passport/bindingTel/index.js
View file @
fb9269ea
...
...
@@ -123,10 +123,10 @@ const formikConfig = {
if
(
data
.
errno
==
200
)
{
if
(
data
.
data
.
is_set_pwd
)
{
console
.
log
(
'set'
)
if
(
data
.
data
[
'is_set_pwd'
]
)
{
props
.
history
.
replace
(
`/passport/set-password`
)
}
else
{
location
.
assign
(
data
.
data
.
jump_url
)
location
.
assign
(
data
.
data
[
'jump_url'
]
)
}
...
...
src/components/passport/setPassword/index.js
View file @
fb9269ea
...
...
@@ -70,7 +70,7 @@ const formikConfig = {
let
key
=
sessionStorage
.
getItem
(
'r_type'
)
===
'email'
?
'email'
:
'tel'
let
encrypted
=
encrypt
(
values
.
password
)
http
.
post
(
`
${
api
[
'passport-api'
]}
/up_pass
${
key
===
'tel'
&&
'_by_phone'
||
''
}
`
,
{
http
.
post
(
`
${
api
[
'passport-api'
]}
/
account/
up_pass
${
key
===
'tel'
&&
'_by_phone'
||
''
}
`
,
{
[
key
]:
sessionStorage
.
getItem
(
key
),
pass
:
encrypted
,
re_pass
:
encrypted
...
...
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