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
f1529c89
Commit
f1529c89
authored
Aug 19, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
aa3624c9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
public/api.js
+2
-1
src/components/passport/setPassword/index.js
+3
-2
src/components/video/recommendation/index.js
+4
-1
No files found.
public/api.js
View file @
f1529c89
...
@@ -3,5 +3,6 @@ var API = {
...
@@ -3,5 +3,6 @@ var API = {
'search-api'
:
'https://search.julyedu.com'
,
'search-api'
:
'https://search.julyedu.com'
,
'passport-api'
:
'http://passport-test.julyedu.com'
,
'passport-api'
:
'http://passport-test.julyedu.com'
,
'base-api'
:
'http://api-test.julyedu.com'
,
'base-api'
:
'http://api-test.julyedu.com'
,
'record'
:
'record.julyedu.com:8001'
'record'
:
'record.julyedu.com:8001'
,
'process-api'
:
'ws:process-test.julyedu.com:9502'
}
}
src/components/passport/setPassword/index.js
View file @
f1529c89
...
@@ -98,8 +98,9 @@ const formikConfig = {
...
@@ -98,8 +98,9 @@ const formikConfig = {
function
forgotPasswordReset
(
values
,
props
)
{
function
forgotPasswordReset
(
values
,
props
)
{
let
key
=
sessionStorage
.
getItem
(
'r_type'
)
===
'email'
?
'email'
:
'tel'
let
key
=
sessionStorage
.
getItem
(
'r_type'
)
===
'email'
?
'email'
:
'tel'
http
.
post
(
`
${
API
[
'passport-api'
]}
/account/up_pass_by_
${
key
===
'email'
?
'email'
:
'phone'
}
`
,
{
let
requestKey
=
key
===
'email'
?
'email'
:
'phone'
[
key
]:
sessionStorage
.
getItem
(
key
),
http
.
post
(
`
${
API
[
'passport-api'
]}
/account/up_pass_by_
${
requestKey
}
`
,
{
[
requestKey
]:
sessionStorage
.
getItem
(
key
),
password
:
encrypt
(
values
.
password
)
password
:
encrypt
(
values
.
password
)
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
...
...
src/components/video/recommendation/index.js
View file @
f1529c89
...
@@ -36,7 +36,7 @@ class Recommendation extends PureComponent {
...
@@ -36,7 +36,7 @@ class Recommendation extends PureComponent {
if
(
data
.
code
===
200
){
if
(
data
.
code
===
200
){
this
.
setState
({
this
.
setState
({
list
:
data
.
data
list
:
Array
.
isArray
(
data
.
data
)
?
data
.
data
:
[]
})
})
}
else
{
}
else
{
...
@@ -52,6 +52,8 @@ class Recommendation extends PureComponent {
...
@@ -52,6 +52,8 @@ class Recommendation extends PureComponent {
render
()
{
render
()
{
return
(
return
(
this
.
state
.
list
.
length
?
<
div
className
=
'recommendation'
>
<
div
className
=
'recommendation'
>
<
div
className
=
{
'title'
}
>
相关推荐
<
/div
>
<
div
className
=
{
'title'
}
>
相关推荐
<
/div
>
<
ul
>
<
ul
>
...
@@ -80,6 +82,7 @@ class Recommendation extends PureComponent {
...
@@ -80,6 +82,7 @@ class Recommendation extends PureComponent {
}
}
<
/ul
>
<
/ul
>
<
/div
>
<
/div
>
:
null
);
);
}
}
}
}
...
...
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