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
32fb53ac
Commit
32fb53ac
authored
Mar 13, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程详情页
parent
7dde01da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
src/components/Index/index.js
+6
-4
src/components/detail/index.js
+4
-3
No files found.
src/components/Index/index.js
View file @
32fb53ac
...
...
@@ -269,10 +269,12 @@ function CourseList({modules, toDetail}) {
{
item
.
is_buy
?
<
a
className
=
"isbuy"
>
已购买
<
/a
>
:
item
.
is_limit_free
?
<
p
className
=
{
'course-price'
}
>
<
span
className
=
{
'free'
}
>
免费领取
<
/span
>
<
span
className
=
{
'old'
}
>
¥
{
item
.
price
}
<
/span
>
<
/p
>
?
<
Link
to
=
{
`/detail?id=
${
item
.
course_id
}
`
}
>
<
p
className
=
{
'course-price'
}
>
<
span
className
=
{
'free'
}
>
免费领取
<
/span
>
<
span
className
=
{
'old'
}
>
¥
{
item
.
price
}
<
/span
>
<
/p
>
<
/Link
>
:
<
p
className
=
"course-price"
>
<
span
className
=
"new"
>
¥
{
item
.
discounts_price
}
<
/span
>
<
span
className
=
"old"
>
¥
{
item
.
price
}
<
/span
>
...
...
src/components/detail/index.js
View file @
32fb53ac
...
...
@@ -523,6 +523,7 @@ class Detail extends Component {
<
/button
>
<
button
onClick
=
{()
=>
{
history
.
push
(
`/play/video?id=
${
id
}
`
)
instance
.
close
()
}}
>
立即学习
<
/button
>
<
/div
>
...
...
@@ -651,15 +652,15 @@ class Detail extends Component {
is_vip 1是属于vip赠的 0是不在vip范围内的
*/
}
{
course_info
.
is_baoming
===
1
&&
course_info
.
is_pay
==
1
&&
course_info
.
contact_type
==
1
&&
course_info
.
course_qq
&&
!
(
course_info
.
is_limit_free
&&
course_info
.
limit_free_status
==
1
)
&&
course_info
.
is_baoming
===
1
&&
course_info
.
is_pay
==
1
&&
course_info
.
contact_type
==
1
&&
course_info
.
course_qq
&&
<
div
className
=
'group'
>
上课
QQ
群:
{
course_info
.
course_qq
}
,加群请备注您的学号:
{
course_info
.
uid
}
<
/div
>
}
{
course_info
.
is_baoming
===
1
&&
course_info
.
is_pay
==
1
&&
course_info
.
contact_type
==
2
&&
course_info
.
course_qq
&&
!
(
course_info
.
is_limit_free
&&
course_info
.
limit_free_status
==
1
)
&&
course_info
.
is_baoming
===
1
&&
course_info
.
is_pay
==
1
&&
course_info
.
contact_type
==
2
&&
course_info
.
course_qq
&&
<
div
className
=
'group'
>
请添加班主任微信:
{
course_info
.
course_qq
}
,添加时备注学号:
{
course_info
.
uid
}
请添加班主任微信:
{
course_info
.
course_qq
}
,添加时备注学号:
{
course_info
.
uid
}
<
/div
>
}
...
...
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