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
4fb83424
Commit
4fb83424
authored
Mar 13, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:调整Ui样式
parent
895db2f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
31 deletions
+68
-31
src/modules/plan-manage/LearningData.jsx
+2
-0
src/modules/plan-manage/LearningData.less
+1
-0
src/modules/plan-manage/modal/UserLearnDetailModal.jsx
+7
-9
src/modules/plan-manage/modal/UserLearnDetailModal.less
+58
-22
No files found.
src/modules/plan-manage/LearningData.jsx
View file @
4fb83424
...
@@ -27,6 +27,7 @@ class LearningData extends React.Component {
...
@@ -27,6 +27,7 @@ class LearningData extends React.Component {
createName
:
""
createName
:
""
}
}
}
}
componentDidMount
(){
componentDidMount
(){
this
.
getPlanDetail
();
this
.
getPlanDetail
();
Bus
.
bind
(
'watchDataView'
,()
=>
{
this
.
setState
({
activeKey
:
"userLearningData"
})
})
Bus
.
bind
(
'watchDataView'
,()
=>
{
this
.
setState
({
activeKey
:
"userLearningData"
})
})
...
@@ -62,6 +63,7 @@ class LearningData extends React.Component {
...
@@ -62,6 +63,7 @@ class LearningData extends React.Component {
})
})
})
})
}
}
render
()
{
render
()
{
const
{
planName
,
coverUrl
,
courseNum
,
created
,
cultureCustomerNum
,
activeKey
,
createName
}
=
this
.
state
;
const
{
planName
,
coverUrl
,
courseNum
,
created
,
cultureCustomerNum
,
activeKey
,
createName
}
=
this
.
state
;
return
(
return
(
...
...
src/modules/plan-manage/LearningData.less
View file @
4fb83424
.plan-learn-data-list{
.plan-learn-data-list{
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
font-weight:normal;
font-weight:normal;
...
...
src/modules/plan-manage/modal/UserLearnDetailModal.jsx
View file @
4fb83424
...
@@ -158,14 +158,13 @@ class UserLearnDetailModal extends React.Component {
...
@@ -158,14 +158,13 @@ class UserLearnDetailModal extends React.Component {
render
:
(
val
,
record
,
index
)
=>
{
render
:
(
val
,
record
,
index
)
=>
{
return
(
return
(
<
div
className=
"course-info"
>
<
div
className=
"course-info"
>
<
span
className=
"course-type"
>
{
CourseType
[
record
.
courseType
].
text
}
</
span
>
<
div
className=
"course-type"
>
{
CourseType
[
record
.
courseType
].
text
}
</
div
>
<
span
className=
"course-name"
>
{
parentIndex
+
1
}
.
{
index
+
1
}{
record
.
courseName
}
</
span
>
<
div
className=
"name-and-state"
>
{
record
.
courseState
===
"EXPIRED"
&&
<
span
className=
"course-name"
>
{
parentIndex
+
1
}
.
{
index
+
1
}{
record
.
courseName
}
</
span
>
<
span
className=
"icon iconfont tip"
>

</
span
>
{
record
.
courseType
===
"LIVE"
&&
}
<
span
className=
"course-state"
>
{
courseStateShow
[
record
.
courseState
].
title
}
</
span
>
{
record
.
courseType
===
"LIVE"
&&
}
<
span
className=
"course-state"
>
{
courseStateShow
[
record
.
courseState
].
title
}
</
span
>
</
div
>
}
</
div
>
</
div
>
)
)
}
}
...
@@ -217,7 +216,6 @@ class UserLearnDetailModal extends React.Component {
...
@@ -217,7 +216,6 @@ class UserLearnDetailModal extends React.Component {
pagination=
{
false
}
pagination=
{
false
}
bordered
bordered
className=
"plan-table"
className=
"plan-table"
size=
"middle"
/>
/>
</
div
>
</
div
>
<
div
>
<
div
>
...
...
src/modules/plan-manage/modal/UserLearnDetailModal.less
View file @
4fb83424
.user-Learn-modal{
.user-Learn-modal{
.ant-table-thead{
tr {
th{
padding:9px 8px !important;
}
}
}
.customer-info{
.customer-info{
margin-bottom:16px;
margin-bottom:16px;
.customer-name{
.customer-name{
...
@@ -20,6 +14,18 @@
...
@@ -20,6 +14,18 @@
}
}
.plan-table{
.plan-table{
margin-bottom:8px;
margin-bottom:8px;
.ant-table-thead{
tr {
th{
padding:9px 24px;
}
}
}
tr{
td{
padding:8px 24px;
}
}
.plan-instro{
.plan-instro{
display: flex;
display: flex;
align-items: center;
align-items: center;
...
@@ -27,7 +33,7 @@
...
@@ -27,7 +33,7 @@
margin-right:8px;
margin-right:8px;
img{
img{
width: 97px;
width: 97px;
height: 5
5
px;
height: 5
4
px;
display: inline-block;
display: inline-block;
border-radius:4px;
border-radius:4px;
}
}
...
@@ -43,6 +49,18 @@
...
@@ -43,6 +49,18 @@
}
}
}
}
.task-table{
.task-table{
.ant-table-thead{
tr {
th{
padding:9px 16px;
}
}
}
tr{
td{
padding:14px 16px;
}
}
.taskName{
.taskName{
color:#666666;
color:#666666;
font-size:14px;
font-size:14px;
...
@@ -52,8 +70,12 @@
...
@@ -52,8 +70,12 @@
font-size:14px;
font-size:14px;
}
}
.course-info{
.course-info{
display:flex;
margin-left:57px;
margin-left:57px;
align-items: center;
.course-type{
.course-type{
width:54px;
height: 22px;
font-size:11px;
font-size:11px;
color:#666666;
color:#666666;
padding:1px 8px;
padding:1px 8px;
...
@@ -61,19 +83,28 @@
...
@@ -61,19 +83,28 @@
margin-right:4px;
margin-right:4px;
border-radius: 2px;
border-radius: 2px;
}
}
.course-name{
.name-and-state{
color:#666666;
flex:1;
font-size:14px;
.course-name{
margin-right:8px;
color:#666666;
}
font-size:14px;
.tip{
margin-right:8px;
font-size:14px;
}
color:#FF4F4F;
.tip{
margin-right:2px;
font-size:14px;
color:#FF4F4F;
margin-right:2px;
}
.course-state{
color:#999;
font-size:14px;
}
}
}
.course-state{
color:#999;
}
font-size:14px;
.ant-table-expanded-row{
td{
padding:0 16px;
}
}
}
}
.ant-table-content{
.ant-table-content{
...
@@ -83,13 +114,18 @@
...
@@ -83,13 +114,18 @@
border:none;
border:none;
}
}
.child-table{
.child-table{
.ant-table-content{
.ant-table-content{
border:none;
border:none;
thead{
thead{
display:none;
display:none;
}
}
tbody tr td{
tbody tr {
border-bottom:none;
td{
border-bottom:none;
padding:14px 16px;
}
}
}
}
}
...
...
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