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
cdd9e9eb
Commit
cdd9e9eb
authored
May 27, 2021
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style:线下课UI统一调整
parent
9b0932b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
+17
-6
src/common/js/axios.ts
+2
-3
src/modules/course-manage/offline-course/AddOfflineCourse.less
+12
-0
src/modules/course-manage/offline-course/modal/PreviewOfflineModal.jsx
+2
-2
src/modules/root/Main.less
+1
-1
No files found.
src/common/js/axios.ts
View file @
cdd9e9eb
/*
* @Author: 吴文洁
* @Date: 2020-08-31 09:34:31
* @LastEditors:
zhangleyu
an
* @LastEditTime: 2021-0
4-27 16:59:07
* @LastEditors:
wuf
an
* @LastEditTime: 2021-0
5-27 10:42:12
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
import
qs
from
'qs'
;
import
axios
,
{
AxiosInstance
,
AxiosRequestConfig
,
AxiosResponse
,
AxiosPromise
,
AxiosError
}
from
'axios'
;
import
{
message
}
from
'antd'
;
...
...
src/modules/course-manage/offline-course/AddOfflineCourse.less
View file @
cdd9e9eb
...
...
@@ -36,6 +36,18 @@
line-height: 22px;
margin-bottom: 16px;
margin-left: -16px;
position: relative;
padding-left: 14px;
&::before {
content: "";
position: absolute;
left: 0px;
top: 50%;
transform: translateY(-50%);
width: 4px;
height: 10px;
background: #2966FF;
}
}
}
.label{
...
...
src/modules/course-manage/offline-course/modal/PreviewOfflineModal.jsx
View file @
cdd9e9eb
...
...
@@ -87,8 +87,8 @@ class PreviewOfflineModal extends React.Component {
signOutEndTimeUnit
,
}
=
this
.
state
;
const
unit
=
(
signInTimeUnit
||
''
).
toLocaleLowerCase
()
+
's'
;
const
time
=
(
signInType
==
'START_AGO'
?
startTime
:
endTime
)
&&
moment
(
signInType
==
'START_AGO'
?
startTime
:
endTime
).
subtract
(
signInTimeNum
,
unit
);
const
signInTime
=
(
time
&&
signInTimeNum
)
&&
`
${
moment
(
time
).
format
(
'HH:mm'
)}
~
${
moment
(
signInType
==
'START_AGO'
?
startTime
:
endTime
).
format
(
'HH:mm'
)}
`
;
const
time
=
(
signInType
==
=
'START_AGO'
?
startTime
:
endTime
)
&&
moment
(
signInType
=
==
'START_AGO'
?
startTime
:
endTime
).
subtract
(
signInTimeNum
,
unit
);
const
signInTime
=
(
time
&&
signInTimeNum
)
&&
`
${
moment
(
time
).
format
(
'HH:mm'
)}
~
${
moment
(
signInType
==
=
'START_AGO'
?
startTime
:
endTime
).
format
(
'HH:mm'
)}
`
;
const
endUnit
=
(
signOutEndTimeUnit
||
''
).
toLocaleLowerCase
()
+
's'
;
const
end
=
(
endTime
&&
signOutEndTimeNum
)
&&
moment
(
endTime
).
add
(
signOutEndTimeNum
,
endUnit
);
let
startUnit
=
''
;
...
...
src/modules/root/Main.less
View file @
cdd9e9eb
...
...
@@ -24,7 +24,7 @@
width: calc(100% - 102px);
}
.xm-breadCrumb {
width:
calc(100% - 32px)
;
width:
100%
;
}
.page{
left: @xm-left-min-width;
...
...
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