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
df12fe0d
Commit
df12fe0d
authored
Jul 23, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
特训营返现标签添加
parent
9b966c69
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
48 additions
and
3 deletions
+48
-3
src/components/Index/image/return.icon.png
+0
-0
src/components/Index/index.js
+4
-1
src/components/Index/index.scss
+10
-0
src/components/classify/image/return.icon.png
+0
-0
src/components/classify/index.js
+7
-2
src/components/classify/index.scss
+11
-0
src/components/detail/image/return.icon.png
+0
-0
src/components/detail/index.js
+5
-0
src/components/detail/index.scss
+11
-0
No files found.
src/components/Index/image/return.icon.png
0 → 100644
View file @
df12fe0d
7.21 KB
src/components/Index/index.js
View file @
df12fe0d
...
...
@@ -230,8 +230,11 @@ function CourseList({modules}) {
{
item
.
is_audition
===
true
&&
<
span
className
=
'audition'
><
i
className
=
{
'iconfont iconerji'
}
><
/i>试听</
span
>
}
{
item
.
is_aist
&&
<
span
className
=
'return_bash'
><
/span
>
}
<
/div
>
)
)
;
const
bottom
=
(
<
div
>
...
...
src/components/Index/index.scss
View file @
df12fe0d
...
...
@@ -308,6 +308,16 @@
}
}
.return_bash
{
position
:
absolute
;
top
:
0
;
right
:
0
;
width
:
31px
;
height
:
18px
;
background
:
url("./image/return.icon.png")
no-repeat
;
background-size
:
100%
100%
;
}
.course-price
{
margin-top
:
15px
;
...
...
src/components/classify/image/return.icon.png
0 → 100644
View file @
df12fe0d
7.21 KB
src/components/classify/index.js
View file @
df12fe0d
...
...
@@ -81,8 +81,13 @@ function ClassCourseA({data}) {
{
data
&&
data
.
length
>
0
&&
data
.
map
((
item
,
index
)
=>
{
return
(
<
Link
to
=
{
`/detail?id=
${
item
.
course_id
}
`
}
key
=
{
index
}
className
=
'item-banner'
><
img
src
=
{
item
.
course_img
}
alt
=
""
/><
/Link
>
<
Link
to
=
{
`/detail?id=
${
item
.
course_id
}
`
}
key
=
{
index
}
className
=
'item-banner'
>
<
img
src
=
{
item
.
course_img
}
alt
=
""
/>
{
(
item
.
is_aist
&&
<
span
className
=
'return_cash'
><
/span>
)
}
<
/Link
>
)
})
}
...
...
src/components/classify/index.scss
View file @
df12fe0d
...
...
@@ -37,11 +37,22 @@
height
:
76px
;
margin-top
:
10px
;
margin-right
:
13px
;
position
:
relative
;
img
{
width
:
100%
;
height
:
100%
;
border-radius
:
3px
;
}
.return_cash
{
position
:
absolute
;
width
:
31px
;
height
:
18px
;
top
:
0
;
right
:
0
;
background
:
url("./image/return.icon.png")
no-repeat
;
background-size
:
100%
100%
;
}
}
.item-label
{
...
...
src/components/detail/image/return.icon.png
0 → 100644
View file @
df12fe0d
7.21 KB
src/components/detail/index.js
View file @
df12fe0d
...
...
@@ -184,6 +184,11 @@ class Detail extends Component {
<
div
className
=
'cover'
>
<
img
src
=
{
courseInfo
.
image_name
}
alt
=
""
/>
{
(
courseInfo
.
is_aist
&&
<
span
className
=
'return_cash'
><
/span
>
)
}
<
/div
>
<
div
className
=
"info"
>
<
p
className
=
'title'
>
{
courseInfo
.
course_title
}
<
/p
>
...
...
src/components/detail/index.scss
View file @
df12fe0d
...
...
@@ -24,12 +24,23 @@
.cover
{
width
:
42
.2%
;
height
:
108px
;
position
:
relative
;
img
{
border-radius
:
3px
;
width
:
100%
;
height
:
100%
;
}
.return_cash
{
position
:
absolute
;
top
:
0
;
right
:
0
;
width
:
31px
;
height
:
18px
;
background
:
url("./image/return.icon.png")
no-repeat
;
background-size
:
100%
100%
;
}
}
.info
{
...
...
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