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
06a859ec
Commit
06a859ec
authored
Jun 10, 2021
by
chenshu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改样式
parent
d0f285a6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
103 additions
and
22 deletions
+103
-22
src/modules/course-manage/modal/ManageCoursewareModal.less
+2
-2
src/modules/plan-manage/components/PlanList.jsx
+5
-2
src/modules/root/ErrorCollege.jsx
+54
-6
src/modules/root/ErrorCollege.less
+37
-6
src/modules/teach-tool/paper-manage/modal/PreviewPaperModal.jsx
+5
-6
No files found.
src/modules/course-manage/modal/ManageCoursewareModal.less
View file @
06a859ec
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
.empty-image {
.empty-image {
display: block;
display: block;
margin: 24px auto 12px;
margin: 24px auto 12px;
width:1
0
0px;
width:1
5
0px;
height:1
0
0px;
height:1
5
0px;
}
}
.empty-button {
.empty-button {
display: block;
display: block;
...
...
src/modules/plan-manage/components/PlanList.jsx
View file @
06a859ec
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
{
Table
,
Modal
,
message
,
Tooltip
,
Switch
,
Dropdown
}
from
'antd'
;
import
{
Table
,
Modal
,
message
,
Tooltip
,
Switch
,
Dropdown
}
from
'antd'
;
import
{
withRouter
}
from
'react-router-dom'
;
import
{
withRouter
}
from
'react-router-dom'
;
import
{
PageControl
}
from
'@/components'
;
import
{
PageControl
,
XMTable
}
from
"@/components"
;
import
PlanService
from
'@/domains/plan-domain/planService'
;
import
PlanService
from
'@/domains/plan-domain/planService'
;
import
SharePlanModal
from
'../modal/SharePlanModal'
;
import
SharePlanModal
from
'../modal/SharePlanModal'
;
import
{
LIVE_SHARE
}
from
'@/domains/course-domain/constants'
;
import
{
LIVE_SHARE
}
from
'@/domains/course-domain/constants'
;
...
@@ -305,7 +305,7 @@ function PlanList(props) {
...
@@ -305,7 +305,7 @@ function PlanList(props) {
}
}
return
(
return
(
<
div
className=
'plan-list'
>
<
div
className=
'plan-list'
>
<
Table
<
XM
Table
rowKey=
{
(
record
)
=>
record
.
id
}
rowKey=
{
(
record
)
=>
record
.
id
}
showSorterTooltip=
{
false
}
showSorterTooltip=
{
false
}
dataSource=
{
props
.
planListData
}
dataSource=
{
props
.
planListData
}
...
@@ -316,6 +316,9 @@ function PlanList(props) {
...
@@ -316,6 +316,9 @@ function PlanList(props) {
size=
'middle'
size=
'middle'
scroll=
{
{
x
:
1400
}
}
scroll=
{
{
x
:
1400
}
}
className=
'plan-list-table'
className=
'plan-list-table'
renderEmpty=
{
{
description
:
<
span
style=
{
{
display
:
'block'
,
paddingBottom
:
24
}
}
>
还没有试卷
</
span
>
}
}
/>
/>
<
div
className=
'box-footer'
>
<
div
className=
'box-footer'
>
<
PageControl
<
PageControl
...
...
src/modules/root/ErrorCollege.jsx
View file @
06a859ec
import
User
from
'@/common/js/user'
;
import
User
from
'@/common/js/user'
;
import
React
from
'react'
;
import
React
from
'react'
;
import
Lottie
from
"lottie-web"
;
import
Lottie
from
"lottie-web"
;
import
Header
from
'./Header'
import
{
Modal
}
from
"antd"
;
import
Service
from
"@/common/js/service"
;
import
Service
from
"@/common/js/service"
;
import
{
LIVE_SHARE
}
from
"@/domains/course-domain/constants"
;
import
BaseService
from
"@/domains/basic-domain/baseService"
;
import
'./ErrorCollege.less'
;
import
'./ErrorCollege.less'
;
export
default
class
ErrorCollege
extends
React
.
Component
{
export
default
class
ErrorCollege
extends
React
.
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
menuType
:
true
,
nickName
:
''
,
}
}
}
}
componentDidMount
()
{
componentDidMount
()
{
this
.
getUserInfo
();
this
.
getStorePermission
();
this
.
getStorePermission
();
var
animation
=
Lottie
.
loadAnimation
({
var
animation
=
Lottie
.
loadAnimation
({
path
:
"https://image.xiaomaiketang.com/xm/AhcJZHdMZf.json"
,
path
:
"https://image.xiaomaiketang.com/xm/AhcJZHdMZf.json"
,
...
@@ -38,15 +41,60 @@ export default class ErrorCollege extends React.Component {
...
@@ -38,15 +41,60 @@ export default class ErrorCollege extends React.Component {
});
});
}
}
handleMenuType
()
{
getUserInfo
()
{
this
.
setState
({
menuType
:
!
menuType
});
const
param
=
{
storeUserId
:
User
.
getStoreUserId
(),
};
BaseService
.
getStoreUser
(
param
).
then
((
res
)
=>
{
const
{
nickName
}
=
res
.
result
;
this
.
setState
({
nickName
});
});
}
handleLogoutConfirm
()
{
return
Modal
.
confirm
({
title
:
"你确定要退出登录吗?"
,
content
:
"退出后,需重新登录"
,
icon
:
(
<
span
className=
"icon iconfont default-confirm-icon"
>

</
span
>
),
okText
:
"退出登录"
,
cancelText
:
"点错了"
,
onOk
:
()
=>
{
this
.
handleLogout
();
},
});
}
handleLogout
()
{
BaseService
.
logout
({
identifier
:
User
.
getIdentifier
()}).
then
((
res
)
=>
{
User
.
removeUserId
();
User
.
removeToken
();
User
.
removeEnterpriseId
();
User
.
clearUserInfo
();
const
url
=
`
${
LIVE_SHARE
}
store/index?id=
${
User
.
getCustomerStoreId
()
||
User
.
getStoreId
()}
&userId=
${
User
.
getUserId
()}
&from=work_weixin`
;
window
.
location
.
href
=
url
;
});
}
}
render
()
{
render
()
{
const
{
menuTyp
e
}
=
this
.
state
;
const
{
nickNam
e
}
=
this
.
state
;
return
(
return
(
<
div
className=
"error-college-page"
>
<
div
className=
"error-college-page"
>
<
Header
id=
"error"
handleMenuType=
{
this
.
handleMenuType
}
menuType=
{
menuType
}
/>
<
div
className=
"header"
>
<
img
src=
'https://image.xiaomaiketang.com/xm/FEdG7BMwKr.png'
className=
"logo"
alt=
""
/>
<
div
className=
"name-box"
>
<
img
src=
'https://image.xiaomaiketang.com/xm/hcp6zs5HTn.png'
className=
"avatar"
alt=
""
/>
<
span
className=
"name"
>
{
nickName
}
</
span
>
<
span
className=
"control"
onClick=
{
()
=>
{
this
.
handleLogoutConfirm
();
}
}
>
退出登录
</
span
>
</
div
>
</
div
>
<
div
className=
"error-college-box"
>
<
div
className=
"error-college-box"
>
<
div
id=
"lottie-box"
className=
"error-college-image"
></
div
>
<
div
id=
"lottie-box"
className=
"error-college-image"
></
div
>
<
span
className=
"error-college-tip"
>
{
User
.
getStoreName
()
}
已停用
</
span
>
<
span
className=
"error-college-tip"
>
{
User
.
getStoreName
()
}
已停用
</
span
>
...
...
src/modules/root/ErrorCollege.less
View file @
06a859ec
...
@@ -2,6 +2,36 @@
...
@@ -2,6 +2,36 @@
position: relative;
position: relative;
width: 100vw;
width: 100vw;
height: 100vh;
height: 100vh;
.header {
display: flex;
align-items: center;
height: 60px;
padding: 0 344px;
justify-content: space-between;
.logo {
width: 117px;
height: 30px;
}
.name-box {
display: flex;
align-items: center;
.avatar {
width: 24px;
height: 24px;
border-radius: 50%;
margin-right: 6px;
}
.name {
color: #666;
font-size: 16px;
margin-right: 8px;
}
.control {
color: #2966FF;
cursor: pointer;
}
}
}
.error-college-box {
.error-college-box {
position: absolute;
position: absolute;
top: 50px;
top: 50px;
...
@@ -10,20 +40,20 @@
...
@@ -10,20 +40,20 @@
bottom: 0;
bottom: 0;
.error-college-image {
.error-college-image {
position: absolute;
position: absolute;
top: 2
4
6px;
top: 2
6
6px;
left: 50%;
left: 50%;
transform: translateX(-50%);
transform: translateX(-50%);
width: 2
46
px;
width: 2
00
px;
height:
132
px;
height:
200
px;
display: block;
display: block;
}
}
.error-college-tip {
.error-college-tip {
position: absolute;
position: absolute;
top: 4
04
px;
top: 4
82
px;
left: 50%;
left: 50%;
transform: translateX(-50%);
transform: translateX(-50%);
color: #
8C8E93
;
color: #
000
;
font-size: 1
3
px;
font-size: 1
8
px;
}
}
}
}
}
}
\ No newline at end of file
src/modules/teach-tool/paper-manage/modal/PreviewPaperModal.jsx
View file @
06a859ec
...
@@ -266,7 +266,8 @@ class PreviewPaperModal extends Component {
...
@@ -266,7 +266,8 @@ class PreviewPaperModal extends Component {
}
}
return
(
return
(
<
Empty
<
Empty
image=
{
<
div
style=
{
{
marginTop
:
24
}
}
>
image=
{
<
div
style=
{
{
marginTop
:
24
}
}
>
<
Lottie
<
Lottie
options=
{
defaultOptions
}
options=
{
defaultOptions
}
height=
{
150
}
height=
{
150
}
...
@@ -274,11 +275,9 @@ class PreviewPaperModal extends Component {
...
@@ -274,11 +275,9 @@ class PreviewPaperModal extends Component {
isStopped=
{
false
}
isStopped=
{
false
}
isPaused=
{
false
}
isPaused=
{
false
}
/>
/>
</
div
>
}
</
div
>
imageStyle=
{
{
}
height
:
100
,
description=
{
<
span
style=
{
{
display
:
'block'
,
paddingBottom
:
24
}
}
>
暂无内容
</
span
>
}
}
}
description=
{
"暂无内容"
}
></
Empty
>
></
Empty
>
);
);
};
};
...
...
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