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
cb6577ea
Commit
cb6577ea
authored
Aug 22, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add classname in bargian middle page
parent
1586ccb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/components/bargainMiddlePage/bargain-middle-page.scss
+6
-2
src/components/bargainMiddlePage/index.js
+3
-2
No files found.
src/components/bargainMiddlePage/bargain-middle-page.scss
View file @
cb6577ea
...
...
@@ -307,15 +307,19 @@
.bargain
{
width
:
165px
;
height
:
30px
;
background
:
$bg_
077FD0
;
background
:
$bg_
FADD29
;
border-radius
:
2px
;
border
:
none
;
color
:
$
white
;
color
:
$
color_FF4000
;
-webkit-appearance
:
none
;
display
:
inline-block
;
text-align
:
center
;
line-height
:
30px
;
}
.button--study
{
color
:
$white
;
background
:
$bg_077FD0
;
}
.btns
{
display
:
flex
;
...
...
src/components/bargainMiddlePage/index.js
View file @
cb6577ea
...
...
@@ -11,6 +11,7 @@ import Overlay from '../detail/overlay'
import
{
compose
}
from
"redux"
import
{
connect
}
from
"react-redux"
;
import
{
getCourses
}
from
'./../detail/actions'
;
import
classnames
from
'classnames'
;
@
connect
(
state
=>
({
user
:
state
.
user
...
...
@@ -544,9 +545,9 @@ function CourseBottom(props) {
let
Buttons
if
(
props
.
item
.
bargain_status
===
2
)
{
// Buttons = <Link to={`/detail?id=${props.item.course_id}`} className={'bargain'}>我要砍价</Link>
Buttons
=
<
a
href
=
"javascript:;"
onClick
=
{()
=>
props
.
toDetail
(
props
.
item
.
course_id
)}
className
=
{
'bargain'
}
>
我要砍价
<
/a
>
Buttons
=
<
a
href
=
"javascript:;"
onClick
=
{()
=>
props
.
toDetail
(
props
.
item
.
course_id
)}
className
=
{
'bargain
bargian-study
'
}
>
我要砍价
<
/a
>
}
else
if
(
props
.
item
.
bargain_status
===
3
)
{
Buttons
=
<
Link
to
=
{
`/play/video?id=
${
props
.
item
.
v_course_id
}
`
}
className
=
{
'bargain'
}
>
去学习
<
/Link
>
Buttons
=
<
Link
to
=
{
`/play/video?id=
${
props
.
item
.
v_course_id
}
`
}
className
=
{
classnames
(
'bargain'
,
'button--study'
)
}
>
去学习
<
/Link
>
}
else
{
Buttons
=
(
<
div
className
=
"btns"
>
...
...
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