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
caa42759
Commit
caa42759
authored
Aug 20, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solve question that not show kanjian info in course detial
parent
207a67c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
src/components/detail/btnstatus/index.js
+4
-10
src/components/detail/index.js
+2
-3
No files found.
src/components/detail/btnstatus/index.js
View file @
caa42759
...
...
@@ -228,17 +228,11 @@ class BtnStatus extends Component {
}
render
()
{
let
info
=
''
if
(
this
.
props
.
data
&&
this
.
props
.
data
.
course_info
)
{
info
=
this
.
props
.
data
.
course_info
}
const
{
countdown
}
=
this
.
state
;
const
{
user
}
=
this
.
props
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
const
{
barInfo
=
{}
}
=
this
.
props
;
console
.
log
(
this
.
props
);
// data 课程信息;barInfo 砍价信息
const
{
data
:
info
=
{},
barInfo
=
{},
user
=
{}
}
=
this
.
props
;
const
{
countdown
}
=
this
.
state
;
const
uid
=
user
.
data
&&
user
.
data
.
uid
;
return
(
<
div
>
{
/*正常购买*/
}
{
...
...
src/components/detail/index.js
View file @
caa42759
...
...
@@ -38,7 +38,6 @@ class Detail extends Component {
this
.
props
.
getCourses
();
}
const
{
courseInfo
}
=
this
.
props
;
console
.
log
(
this
.
props
);
if
(
courseInfo
.
course_info
.
is_bargain
)
{
this
.
getBargainInfo
();
}
...
...
@@ -268,7 +267,7 @@ class Detail extends Component {
{
/*砍价*/
}
{
(
!
courseInfo
.
is_aist
)
&&
this
.
props
.
courseInfo
&&
this
.
props
.
courseI
nfo
.
is_bargain
&&
(
!
courseInfo
.
is_aist
)
&&
this
.
props
.
courseInfo
.
course_info
&&
this
.
props
.
courseInfo
.
course_i
nfo
.
is_bargain
&&
<
Bargain
/>
}
...
...
@@ -277,7 +276,7 @@ class Detail extends Component {
{
/*课程按钮*/
}
<
BtnStatus
countdown
=
{
countdown
}
data
=
{
this
.
props
.
courseInfo
}
data
=
{
this
.
props
.
courseInfo
.
course_info
}
user
=
{
this
.
props
.
user
}
barInfo
=
{
this
.
state
.
barInfo
}
invitedFriends
=
{
this
.
invitedFriends
}
...
...
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