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
Hide 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 = {
'search-api'
:
'https://search.julyedu.com'
,
'passport-api'
:
'http://passport-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 = {
function
forgotPasswordReset
(
values
,
props
)
{
let
key
=
sessionStorage
.
getItem
(
'r_type'
)
===
'email'
?
'email'
:
'tel'
http
.
post
(
`
${
API
[
'passport-api'
]}
/account/up_pass_by_
${
key
===
'email'
?
'email'
:
'phone'
}
`
,
{
[
key
]:
sessionStorage
.
getItem
(
key
),
let
requestKey
=
key
===
'email'
?
'email'
:
'phone'
http
.
post
(
`
${
API
[
'passport-api'
]}
/account/up_pass_by_
${
requestKey
}
`
,
{
[
requestKey
]:
sessionStorage
.
getItem
(
key
),
password
:
encrypt
(
values
.
password
)
})
.
then
(
res
=>
{
...
...
src/components/video/recommendation/index.js
View file @
f1529c89
...
...
@@ -36,7 +36,7 @@ class Recommendation extends PureComponent {
if
(
data
.
code
===
200
){
this
.
setState
({
list
:
data
.
data
list
:
Array
.
isArray
(
data
.
data
)
?
data
.
data
:
[]
})
}
else
{
...
...
@@ -52,6 +52,8 @@ class Recommendation extends PureComponent {
render
()
{
return
(
this
.
state
.
list
.
length
?
<
div
className
=
'recommendation'
>
<
div
className
=
{
'title'
}
>
相关推荐
<
/div
>
<
ul
>
...
...
@@ -80,6 +82,7 @@ class Recommendation extends PureComponent {
}
<
/ul
>
<
/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