Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
0ee04f32
Commit
0ee04f32
authored
Jul 07, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:直播课表格优化
parent
890189f5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
42 deletions
+60
-42
src/modules/course-manage/components/LiveCourseList.jsx
+3
-3
src/modules/course-manage/components/LiveCourseList.less
+56
-38
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+1
-1
No files found.
src/modules/course-manage/components/LiveCourseList.jsx
View file @
0ee04f32
...
@@ -125,7 +125,7 @@ class LiveCourseList extends React.Component {
...
@@ -125,7 +125,7 @@ class LiveCourseList extends React.Component {
columns
=
[
columns
=
[
{
{
title
:
'直播课'
,
title
:
'直播课'
,
width
:
'23%'
,
key
:
'course'
,
key
:
'course'
,
fixed
:
'left'
,
fixed
:
'left'
,
dataIndex
:
'courseName'
,
dataIndex
:
'courseName'
,
...
@@ -144,7 +144,7 @@ class LiveCourseList extends React.Component {
...
@@ -144,7 +144,7 @@ class LiveCourseList extends React.Component {
{
!
hasCover
&&
<
img
className=
'course-cover'
src=
{
'https://image.xiaomaiketang.com/xm/Yip2YtFDwH.png'
}
alt=
''
/>
}
{
!
hasCover
&&
<
img
className=
'course-cover'
src=
{
'https://image.xiaomaiketang.com/xm/Yip2YtFDwH.png'
}
alt=
''
/>
}
<
div
>
<
div
>
<
Choose
>
<
Choose
>
<
When
condition=
{
record
.
courseName
.
length
>
1
7
}
>
<
When
condition=
{
record
.
courseName
.
length
>
1
4
}
>
<
Tooltip
title=
{
record
.
courseName
}
>
<
Tooltip
title=
{
record
.
courseName
}
>
<
div
className=
'course-name'
>
{
record
.
courseName
}
</
div
>
<
div
className=
'course-name'
>
{
record
.
courseName
}
</
div
>
</
Tooltip
>
</
Tooltip
>
...
@@ -332,7 +332,7 @@ class LiveCourseList extends React.Component {
...
@@ -332,7 +332,7 @@ class LiveCourseList extends React.Component {
},
},
{
{
title
:
'操作'
,
title
:
'操作'
,
width
:
'10%'
,
width
:
210
,
key
:
'operate'
,
key
:
'operate'
,
fixed
:
'right'
,
fixed
:
'right'
,
dataIndex
:
'operate'
,
dataIndex
:
'operate'
,
...
...
src/modules/course-manage/components/LiveCourseList.less
View file @
0ee04f32
.live-course-list {
.live-course-list {
margin-top: 12px;
margin-top: 12px;
.record__item {
.record__item {
overflow: hidden;
display: flex;
display: flex;
align-items: center;
align-items: center;
.course-cover {
.course-cover {
...
@@ -11,63 +11,61 @@
...
@@ -11,63 +11,61 @@
border-radius: 2px;
border-radius: 2px;
margin-right: 8px;
margin-right: 8px;
}
}
.course-name{
.course-name
{
font-size: 14px;
font-size: 14px;
font-weight: 500;
font-weight: 500;
color: #333333;
color: #333333;
line-height: 20px;
line-height: 20px;
font-weight: bold;
font-weight: bold;
max-width:
244
px;
max-width:
200
px;
overflow: hidden;
overflow: hidden;
text-overflow:ellipsis;
text-overflow:
ellipsis;
white-space: nowrap;
white-space: nowrap;
}
}
.course-time{
.course-time
{
font-size: 12px;
font-size: 12px;
font-weight: 400;
font-weight: 400;
color: #666666;
color: #666666;
line-height: 20px;
line-height: 20px;
}
}
.course-status {
.course-status {
font-size:
12px;
font-size:
12px;
line-height:
18px;
line-height:
18px;
display:
inline-block;
display:
inline-block;
border-radius:
2px;
border-radius:
2px;
padding:
0 8px;
padding:
0 8px;
margin-left:
4px;
margin-left:
4px;
}
}
.teacher-assistant{
.teacher-assistant
{
display:flex;
display:
flex;
.teacher{
.teacher
{
font-size: 12px;
font-size: 12px;
color: #666666;
color: #666666;
max-width: 96px;
max-width: 96px;
overflow: hidden;
overflow: hidden;
text-overflow:ellipsis;
text-overflow:
ellipsis;
white-space: nowrap;
white-space: nowrap;
display:inline-block;
display:
inline-block;
padding-top:2px;
padding-top:
2px;
}
}
.assistant{
.assistant
{
font-size: 12px;
font-size: 12px;
color: #666666;
color: #666666;
max-width: 96px;
max-width: 96px;
overflow: hidden;
overflow: hidden;
text-overflow:ellipsis;
text-overflow:
ellipsis;
white-space: nowrap;
white-space: nowrap;
display:inline-block;
display:
inline-block;
padding-top:2px;
padding-top:
2px;
}
}
.split {
.split {
margin: 0 4px;
margin: 0 4px;
color: #
BFBFBF
;
color: #
bfbfbf
;
display: inline-blcok;
display: inline-blcok;
}
}
}
}
}
}
.related-task{
.related-task
{
text-overflow: -o-ellipsis-lastline;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
...
@@ -76,37 +74,37 @@
...
@@ -76,37 +74,37 @@
line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
-webkit-box-orient: vertical;
}
}
.categoryName{
.categoryName
{
font-size: 14px;
font-size: 14px;
color: #666666;
color: #666666;
line-height: 20px;
line-height: 20px;
}
}
.courseware{
.courseware
{
font-size: 14px;
font-size: 14px;
color: #2966
FF
;
color: #2966
ff
;
line-height: 20px;
line-height: 20px;
text-align:right;
text-align:
right;
cursor:pointer;
cursor:
pointer;
}
}
.quota-icon{
.quota-icon
{
color:
#2966FF
;
color:
#2966ff
;
cursor:pointer;
cursor:
pointer;
}
}
.operate {
.operate {
display: flex;
display: flex;
align-items: center;
align-items: center;
flex-wrap: wrap;
flex-wrap: wrap;
.operate__item {
.operate__item {
color: #2966
FF
;
color: #2966
ff
;
cursor: pointer;
cursor: pointer;
&.split {
&.split {
margin: 0 8px;
margin: 0 8px;
color: #
BFBFBF
;
color: #
bfbfbf
;
}
}
}
}
}
}
.operate-text {
.operate-text {
color: #2966
FF
;
color: #2966
ff
;
cursor: pointer;
cursor: pointer;
}
}
.course-start-end {
.course-start-end {
...
@@ -135,7 +133,27 @@
...
@@ -135,7 +133,27 @@
font-size: 12px;
font-size: 12px;
}
}
}
}
tbody {
tr {
&:nth-child(even) {
background: transparent !important;
td {
background: #fff !important;
}
}
&:nth-child(odd) {
background: #fafafa !important;
td {
background: #fafafa !important;
}
}
&:hover {
td {
background: #f3f6fa !important;
}
}
}
}
}
}
.live-course-more-menu {
.live-course-more-menu {
background: white;
background: white;
...
...
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
0ee04f32
...
@@ -147,7 +147,7 @@ class VideoCourseList extends React.Component {
...
@@ -147,7 +147,7 @@ class VideoCourseList extends React.Component {
关闭后,学院内不再展示此课程,但学员仍可通过分享的海报/链接查看此课程。
关闭后,学院内不再展示此课程,但学员仍可通过分享的海报/链接查看此课程。
</
div
>
</
div
>
}
>
}
>
<
i
className=
'icon iconfont'
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
}
}
>
<
i
className=
'icon iconfont'
style=
{
{
marginLeft
:
'5px'
,
cursor
:
'pointer'
,
color
:
'#bfbfbf'
,
fontSize
:
'14px'
,
fontWeight
:
'normal'
}
}
>


</
i
>
</
i
>
</
Tooltip
>
</
Tooltip
>
...
...
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