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
b19e7da0
Commit
b19e7da0
authored
Aug 09, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:微信审核
parent
a8783b47
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
208 additions
and
119 deletions
+208
-119
src/common/less/icon-font.less
+3
-3
src/modules/college-manage/CollegeInfoPage.jsx
+126
-100
src/modules/college-manage/CollegeInfoPage.less
+24
-2
src/modules/college-manage/UserManagePage.less
+14
-0
src/modules/college-manage/UserManagePage.tsx
+4
-1
src/modules/course-manage/components/GraphicsEditor.jsx
+1
-0
src/modules/root/CreateCollege.jsx
+22
-12
src/modules/root/CreateCollege.less
+14
-1
No files found.
src/common/less/icon-font.less
View file @
b19e7da0
@font-face {
font-family: 'iconfont'; /* Project id 2223403 */
src: url('//at.alicdn.com/t/font_2223403_
oe5p510553.woff2?t=1624259078391
') format('woff2'),
url('//at.alicdn.com/t/font_2223403_oe5p510553.woff?t=1624259078391
') format('woff'),
url('//at.alicdn.com/t/font_2223403_oe5p510553.ttf?t=1624259078391
') format('truetype');
src: url('//at.alicdn.com/t/font_2223403_
7261tsts1dc.woff2?t=1628475376853
') format('woff2'),
url('//at.alicdn.com/t/font_2223403_7261tsts1dc.woff?t=1628475376853
') format('woff'),
url('//at.alicdn.com/t/font_2223403_7261tsts1dc.ttf?t=1628475376853
') format('truetype');
}
.iconfont {
font-family: 'iconfont' !important;
...
...
src/modules/college-manage/CollegeInfoPage.jsx
View file @
b19e7da0
This diff is collapsed.
Click to expand it.
src/modules/college-manage/CollegeInfoPage.less
View file @
b19e7da0
...
...
@@ -13,7 +13,14 @@
font-size:14px;
}
.college-info-page-form{
margin-left:29px;
margin-left:20px;
.title{
font-size: 16px;
color: #333;
font-weight: 500;
margin-left: -20px;
margin-bottom: 20px;
}
.logo-con{
.logo-img-con{
width: 258px;
...
...
@@ -58,10 +65,24 @@
}
}
}
.switch-box{
display: flex;
align-items: center;
.switch-desc{
color: #999;
font-size: 14px;
margin: 0 8px;
}
.switch-prew-link{
color: #2966FF;
font-size: 14px;
}
}
}
.submit-btn{
margin-left:142px;
margin-left:132px;
margin-top: 20px;
}
}
\ No newline at end of file
src/modules/college-manage/UserManagePage.less
View file @
b19e7da0
.user-manage-page {
.content-header{
display: flex;
justify-content: space-between;
align-items: center;
.icon-font-weixin{
color: #5DD333;
margin-right:4px ;
}
.content-header-right{
font-size: 14px;
color: #2966FF;
}
}
.box-header {
display: flex;
width: calc(100% - 80px);
...
...
src/modules/college-manage/UserManagePage.tsx
View file @
b19e7da0
...
...
@@ -137,7 +137,10 @@ function UserManagePage() {
return
(
<
div
className=
" page user-manage-page"
>
<
div
className=
"content-header"
>
学员管理
</
div
>
<
div
className=
"content-header"
>
<
div
>
学员管理
</
div
>
<
div
><
span
className=
'icon iconfont icon-font-weixin'
>

</
span
><
span
className=
'content-header-right'
>
学员审核列表
</
span
></
div
>
</
div
>
<
div
className=
"box"
>
<
div
className=
"box-header"
>
<
div
className=
"header-item"
>
...
...
src/modules/course-manage/components/GraphicsEditor.jsx
View file @
b19e7da0
...
...
@@ -155,6 +155,7 @@ class GraphicsEditor extends React.Component {
message
.
warning
(
`内容过长,不能超过
${
maxLimit
}
字`
);
}
Bus
.
trigger
(
'editorLimit'
,
textLength
,
editorType
);
console
.
log
(
onChange
,
html
,
this
.
state
.
textLength
)
onChange
(
html
,
this
.
state
.
textLength
);
});
};
...
...
src/modules/root/CreateCollege.jsx
View file @
b19e7da0
import
React
from
'react'
;
import
{
Input
,
Button
,
Modal
,
message
,
Form
}
from
'antd'
;
import
{
Input
,
Button
,
Switch
,
message
,
Form
}
from
'antd'
;
import
Upload
from
'@/core/upload'
;
import
Service
from
"@/common/js/service"
;
import
BaseService
from
"@/domains/basic-domain/baseService"
;
...
...
@@ -7,9 +7,6 @@ import User from "@/common/js/user";
import
Breadcrumbs
from
"@/components/Breadcrumbs"
;
import
ImgClipModal
from
'@/components/ImgClipModal'
import
'./CreateCollege.less'
;
let
cutFlag
=
false
;
export
default
class
CreateCollege
extends
React
.
Component
{
constructor
(
props
)
{
...
...
@@ -20,6 +17,7 @@ export default class CreateCollege extends React.Component {
name
:
''
,
enterpriseId
:
User
.
getEnterpriseId
(),
imageFile
:
null
,
// 需要被截取的图片
auditSwitch
:
true
,
};
this
.
loginInputRef
=
React
.
createRef
()
}
...
...
@@ -70,7 +68,7 @@ export default class CreateCollege extends React.Component {
};
updateCover
=
()
=>
{
const
{
coverClicpPath
,
coverId
}
=
this
.
state
const
{
coverClicpPath
}
=
this
.
state
this
.
setState
({
logo
:
coverClicpPath
})
...
...
@@ -97,21 +95,19 @@ export default class CreateCollege extends React.Component {
render
()
{
const
{
avatar
,
name
,
collegeName
,
logo
,
visible
,
hasImgReady
,
cutImageBlob
,
showError
,
imageFile
imageFile
,
auditSwitch
}
=
this
.
state
;
return
(
<
div
className=
"college-manage-page"
>
<
div
className=
"college-header"
>
<
div
className=
"box"
>
<
img
className=
"box-image"
src=
"https://image.xiaomaiketang.com/xm/fe4NCjr7XF.png"
/>
<
img
className=
"box-image"
src=
"https://image.xiaomaiketang.com/xm/fe4NCjr7XF.png"
alt=
''
/>
</
div
>
</
div
>
<
div
className=
"breadcrumb-wrap"
>
...
...
@@ -124,7 +120,7 @@ export default class CreateCollege extends React.Component {
</
div
>
<
div
className=
"create-box"
>
<
div
className=
"image-box"
>
<
img
className=
"image"
src=
{
logo
}
/>
<
img
className=
"image"
src=
{
logo
}
alt=
''
/>
<
div
className=
"image-mask"
>
<
span
className=
"icon iconfont"
...
...
@@ -154,6 +150,20 @@ export default class CreateCollege extends React.Component {
}
}
></
Input
>
</
Form
.
Item
>
<
Form
.
Item
label=
'学员审核'
name=
'auditSwitch'
rules=
{
[{
required
:
true
}]
}
>
<
div
className=
'switch-box'
>
<
Switch
checked=
{
auditSwitch
}
onChange=
{
(
e
)
=>
this
.
onChangeFiledValue
(
'auditSwitch'
,
e
)
}
/>
<
Choose
>
<
When
condition=
{
auditSwitch
}
>
<
div
className=
'switch-desc'
>
已开启,成为学院学员需要审核
</
div
>
<
div
className=
'switch-prew-link'
>
功能预览
</
div
>
</
When
>
<
Otherwise
>
<
div
className=
'switch-desc'
>
已关闭,成为学院学员不需要审核
</
div
>
</
Otherwise
>
</
Choose
>
</
div
>
</
Form
.
Item
>
</
Form
>
<
Button
className=
"button"
...
...
src/modules/root/CreateCollege.less
View file @
b19e7da0
...
...
@@ -5,7 +5,7 @@
.create-box {
padding-top: 108px;
margin: 0 auto;
width:
35
0px;
width:
40
0px;
.image-box {
position: relative;
display: block;
...
...
@@ -45,6 +45,19 @@
}
}
}
.switch-box{
display: flex;
align-items: center;
.switch-desc{
color: #999;
font-size: 14px;
margin: 0 8px;
}
.switch-prew-link{
color: #2966FF;
font-size: 14px;
}
}
.tip {
display: block;
color: #999999;
...
...
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