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
725fc44b
Commit
725fc44b
authored
Aug 23, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
3eeadcad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
src/components/Index/index.js
+7
-7
src/components/detail/btnstatus/index.js
+16
-16
No files found.
src/components/Index/index.js
View file @
725fc44b
...
...
@@ -140,10 +140,10 @@ class Index extends Component {
this
.
state
.
tabdata
.
map
((
item
,
index
)
=>
{
return
(
<
li
key
=
{
index
}
>
<
a
href
=
{
item
.
href
}
>
<
Link
to
=
{
item
.
href
}
>
<
img
src
=
{
item
.
src
}
alt
=
""
/>
<
span
>
{
item
.
name
}
<
/span
>
<
/
a
>
<
/
Link
>
<
/li
>
)
})
...
...
@@ -201,11 +201,11 @@ function TopSwiper({bannerList}) {
{
bannerList
&&
bannerList
.
length
>
0
&&
bannerList
.
map
((
item
,
index
)
=>
{
return
(
Number
.
isNaN
(
parseInt
(
item
.
jump_url
))
?
<
a
href
=
{
item
.
jump_url
}
key
=
{
index
}
>
<
Link
to
=
{
item
.
jump_url
}
key
=
{
index
}
>
{
/* <Link to={item.jump_url} key={index}> */
}
<
img
className
=
"item"
src
=
{
item
.
name
}
alt
=
""
/>
{
/* </Link> */
}
<
/
a
>
:
<
/
Link
>
:
<
Link
to
=
{{
pathname
:
'/detail'
,
search
:
`?id=
${
item
.
jump_url
}
`
}}
key
=
{
index
}
>
<
img
className
=
"item"
src
=
{
item
.
name
}
alt
=
""
/>
<
/Link
>
...
...
@@ -233,11 +233,11 @@ function CourseList({modules, toDetail}) {
<
h2
className
=
"title"
>
{
modules
.
name
}
<
/h2
>
{
modules
.
show_more
===
1
&&
<
a
className
=
"more"
href
=
'/classify'
>
更多
><
/a
>
<
Link
className
=
"more"
to
=
'/classify'
>
更多
><
/Link
>
}
{
modules
.
show_more
===
2
&&
<
a
className
=
"more"
href
=
{
modules
.
more_page
}
>
更多
><
/a
>
<
Link
className
=
"more"
to
=
{
modules
.
more_page
}
>
更多
><
/Link
>
}
<
LazyLoad
offset
=
{
50
}
>
<
ul
className
=
'index-course-detail'
>
...
...
@@ -270,7 +270,7 @@ function CourseList({modules, toDetail}) {
<
/p
>
}
{
item
.
isbuy
&&
<
a
href
=
"/#"
className
=
"isbuy"
>
已购买
<
/a
>
<
a
className
=
"isbuy"
>
已购买
<
/a
>
}
<
/div
>
)
...
...
src/components/detail/btnstatus/index.js
View file @
725fc44b
...
...
@@ -244,10 +244,10 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
info
.
group_status
!==
3
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult consult-s'
href
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
Link
className
=
'consult consult-s'
to
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
i
className
=
'iconfont iconerji'
><
/i
>
<
span
>
课程咨询
<
/span
>
<
/
a
>
<
/
Link
>
{
info
.
in_cart
&&
<
Link
to
=
'/shopcart'
className
=
'btn btn-s bg-FCCD05'
>
去购物车结算
<
/Link
>
...
...
@@ -265,10 +265,10 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
1
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult consult-m'
href
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
Link
className
=
'consult consult-m'
to
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
i
className
=
'iconfont iconerji'
/>
<
span
>
课程咨询
<
/span
>
<
/
a
>
<
/
Link
>
<
Link
to
=
{
`/play/video?id=
${
info
.
v_course_id
}
`
}
className
=
'btn btn-m bg-09f'
>
开始学习
<
/Link
>
<
/div
>
}
...
...
@@ -276,10 +276,10 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
info
.
group_status
===
3
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult consult-s'
href
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
Link
className
=
'consult consult-s'
to
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
i
className
=
'iconfont iconerji'
><
/i
>
<
span
>
课程咨询
<
/span
>
<
/
a
>
<
/
Link
>
<
button
className
=
'btn btn-s bg-F4AAA7'
onClick
=
{
this
.
simpleCourse
}
>
<
span
>
{
`¥
${
info
.
price1
}
`
}
<
/span
>
<
span
>
直接购买
<
/span
>
...
...
@@ -297,10 +297,10 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
info
.
group_status
===
4
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult consult-s'
href
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
Link
className
=
'consult consult-s'
to
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
i
className
=
'iconfont iconerji'
><
/i
>
<
span
>
课程咨询
<
/span
>
<
/
a
>
<
/
Link
>
<
div
className
=
'btn btn-l bg-E02E24'
onClick
=
{
this
.
props
.
invitedFriends
}
>
邀请好友参团
{
countdown
}
后结束
<
/div
>
...
...
@@ -311,10 +311,10 @@ class BtnStatus extends Component {
{
info
.
is_baoming
===
0
&&
this
.
props
.
data
&&
this
.
props
.
data
.
is_bargain
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult consult-s'
href
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
Link
className
=
'consult consult-s'
to
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
i
className
=
'iconfont iconerji'
><
/i
>
<
span
>
课程咨询
<
/span
>
<
/
a
>
<
/
Link
>
<
button
className
=
'btn btn-s bg-F4AAA7'
>
<
span
>
¥
{
info
.
price1
}
<
/span
>
<
span
onClick
=
{
this
.
tobuy
}
>
直接购买
<
/span
>
...
...
@@ -339,10 +339,10 @@ class BtnStatus extends Component {
{
this
.
state
.
isbuy
===
20
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult-l'
href
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
Link
className
=
'consult-l'
to
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
i
className
=
'iconfont iconerji'
><
/i
>
<
span
>
课程咨询
<
/span
>
<
/
a
>
<
/
Link
>
<
/div
>
}
...
...
@@ -350,10 +350,10 @@ class BtnStatus extends Component {
{
(
info
.
is_aist
&&
(
this
.
props
.
user
.
hasError
||
info
.
is_baoming
===
0
))
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult consult-m'
href
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
Link
className
=
'consult consult-m'
to
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
i
className
=
'iconfont iconerji'
><
/i
>
<
span
>
课程咨询
<
/span
>
<
/
a
>
<
/
Link
>
<
button
className
=
'btn sign-up-now'
onClick
=
{
e
=>
this
.
signUpNow
()}
>
<
span
>
立即报名
<
/span
>
...
...
@@ -364,10 +364,10 @@ class BtnStatus extends Component {
{
info
.
is_aist
&&
!
this
.
props
.
user
.
hasError
&&
info
.
is_baoming
===
1
&&
<
div
className
=
'btns-box'
>
<
a
className
=
'consult consult-m'
href
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
Link
className
=
'consult consult-m'
to
=
"https://q.url.cn/AB8aue?_type=wpa&qidian=true"
>
<
i
className
=
'iconfont iconerji'
><
/i
>
<
span
>
课程咨询
<
/span
>
<
/
a
>
<
/
Link
>
{
info
.
aist_start_time
===
""
?
...
...
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