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
5ab50a01
Commit
5ab50a01
authored
Nov 04, 2019
by
FE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
course popup
parent
b4164e99
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
src/components/blessingPreheat/ReserveCourse/index.js
+2
-0
src/components/blessingPreheat/coursePopup/index.js
+4
-2
src/components/blessingPreheat/coursePopup/index.scss
+8
-0
No files found.
src/components/blessingPreheat/ReserveCourse/index.js
View file @
5ab50a01
...
...
@@ -33,10 +33,12 @@ class ReserveCourse extends Component {
http
.
get
(
`
${
API
.
home
}
/sys/pre_coursee`
).
then
(
res
=>
{
const
{
code
,
data
,
msg
}
=
res
.
data
;
if
(
code
===
200
)
{
if
(
JSON
.
stringify
(
data
)
!==
'{}'
)
{
this
.
setState
({
courseData
:
data
.
filter
((
item
,
index
)
=>
index
<
4
),
courseDataAll
:
data
})
}
}
else
{
Toast
.
info
(
msg
,
2
);
}
...
...
src/components/blessingPreheat/coursePopup/index.js
View file @
5ab50a01
import
React
,
{
Component
}
from
'react'
;
import
classnames
from
'classnames'
;
import
{
http
,
SendMessageToApp
}
from
"@/utils"
;
import
{
Link
}
from
'react-router-dom'
;
import
'./index.scss'
;
import
{
getParam
}
from
'../../../utils'
;
...
...
@@ -74,7 +74,9 @@ class CoursePopup extends Component {
{
courseList
.
map
(
item
=>
(
<
span
className
=
"course-popup__item"
className
=
{
classnames
(
"course-popup__item"
,
{
"course-popup__item--active"
:
item
.
blessing
})}
key
=
{
item
.
course_id
}
onClick
=
{()
=>
{
this
.
toCourseDetail
(
item
)}}
>
...
...
src/components/blessingPreheat/coursePopup/index.scss
View file @
5ab50a01
...
...
@@ -64,9 +64,17 @@
}
}
.course-popup__item--active
{
.course-popup__name
{
color
:rgba
(
82
,
92
,
101
,
.6
)
;
}
}
.course-popup__name
{
width
:
200px
;
font-size
:
12px
;
color
:rgba
(
82
,
92
,
101
,
1
)
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
...
...
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