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
c54c38d9
Commit
c54c38d9
authored
Mar 17, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'limit-free' into pre
parents
6df53996
4ff9966e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/components/Index/index.js
+11
-6
No files found.
src/components/Index/index.js
View file @
c54c38d9
...
...
@@ -357,15 +357,20 @@ function LimitFree({course}) {
}
//课程底部
function
Bottom
({
course
}){
if
(
course
.
is_buy
)
{
if
(
course
.
is_limit_free
&&
course
.
limit_free_status
===
1
)
{
function
Bottom
({
course
})
{
if
(
course
.
is_buy
)
{
if
(
course
.
is_limit_free
&&
course
.
limit_free_status
===
1
)
{
return
<
div
class
=
{
'isbuy'
}
>
已领取
<
/div
>
}
else
{
}
else
{
return
<
div
className
=
{
'isbuy'
}
>
已购买
<
/div
>
}
}
else
{
return
<
LimitFree
course
=
{
course
}
/
>
}
else
{
return
course
.
is_limit_free
?
<
LimitFree
course
=
{
course
}
/
>
:
<
p
className
=
"course-price"
>
<
span
className
=
"new"
>
¥
{
course
.
discounts_price
}
<
/span
>
<
span
className
=
"old"
>
¥
{
course
.
price
}
<
/span
>
<
/p
>
}
}
...
...
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