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
87a76062
Commit
87a76062
authored
Aug 22, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未登陆时,课程详情页提示未登陆问题修改
parent
14f6bd88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/components/detail/bargain/index.js
+4
-1
src/components/detail/btnstatus/index.js
+2
-2
No files found.
src/components/detail/bargain/index.js
View file @
87a76062
...
@@ -29,7 +29,10 @@ class Bargain extends Component {
...
@@ -29,7 +29,10 @@ class Bargain extends Component {
}
}
componentDidMount
()
{
componentDidMount
()
{
this
.
getBargainInfo
()
const
{
user
=
{}
}
=
this
.
props
;
if
(
user
.
code
===
200
)
{
this
.
getBargainInfo
();
}
}
}
// 获取助理好友
// 获取助理好友
...
...
src/components/detail/btnstatus/index.js
View file @
87a76062
...
@@ -39,8 +39,8 @@ class BtnStatus extends Component {
...
@@ -39,8 +39,8 @@ class BtnStatus extends Component {
// }
// }
componentWillReceiveProps
(
nextProps
)
{
componentWillReceiveProps
(
nextProps
)
{
const
{
data
=
{}}
=
nextProps
;
const
{
data
=
{}
,
user
=
{}
}
=
nextProps
;
if
(
data
.
is_bargain
)
{
if
(
data
.
is_bargain
&&
user
.
code
!==
4030
)
{
this
.
getBargainInfo
();
this
.
getBargainInfo
();
}
}
// if(nextProps.data && nextProps.data.is_bargain) {
// if(nextProps.data && nextProps.data.is_bargain) {
...
...
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