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
c1319e6e
You need to sign in or sign up before continuing.
Commit
c1319e6e
authored
Aug 19, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:微信审核bug修复
parent
a4e5eba6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
9 deletions
+33
-9
src/modules/college-manage/CollegeInfoPage.jsx
+7
-2
src/modules/college-manage/CollegeInfoPage.less
+8
-0
src/modules/college-manage/NewUsersManagePage.jsx
+18
-7
No files found.
src/modules/college-manage/CollegeInfoPage.jsx
View file @
c1319e6e
import
React
from
'react'
;
import
{
withRouter
}
from
'react-router-dom'
;
import
{
Form
,
Input
,
Button
,
Modal
,
Switch
,
message
}
from
'antd'
;
import
{
Form
,
Input
,
Button
,
Modal
,
Switch
,
message
,
Tooltip
}
from
'antd'
;
import
SelectPrepareFileModal
from
'@/modules/prepare-lesson/modal/SelectPrepareFileModal'
;
import
Upload
from
'@/core/upload'
;
import
StoreService
from
'@/domains/store-domain/storeService'
;
...
...
@@ -167,7 +167,12 @@ class CollegeInfoPage extends React.Component {
/>
</
Form
.
Item
>
<
div
className=
'title mt40'
>
高级设置
</
div
>
<
Form
.
Item
label=
'学员审核'
name=
'storeName'
rules=
{
[{
required
:
true
}]
}
>
<
Form
.
Item
label=
{
<
span
className=
'label-box'
>
学员审核
<
Tooltip
title=
'学院同时支持企微和微信用户加入学院学习。学员审核开启后,微信用户需要先提出申请,学院管理员审核通过后才能成为学院的学员,保证仅可信的微信用户才能加入学院。'
placement=
'top'
arrowPointAtCenter
>
<
span
className=
'icon iconfont icon-tip'
>

</
span
>
</
Tooltip
>
</
span
>
}
name=
'storeName'
>
<
div
className=
'switch-box'
>
<
Switch
checked=
{
auditSwitch
===
'OPEN'
}
onChange=
{
(
e
)
=>
this
.
onChangeFiledValue
(
'auditSwitch'
,
e
?
'OPEN'
:
'CLOSE'
)
}
/>
<
Choose
>
...
...
src/modules/college-manage/CollegeInfoPage.less
View file @
c1319e6e
...
...
@@ -84,6 +84,14 @@
margin-left:132px;
margin-top: 20px;
}
.label-box{
// display: flex;
// align-content: center;
.icon{
color:#BFBFBF;
margin: 0 2px;
}
}
}
.college-info-page-view-modal-box{
...
...
src/modules/college-manage/NewUsersManagePage.jsx
View file @
c1319e6e
...
...
@@ -47,28 +47,39 @@ function UserManagePage(props) {
}
handleFetchAuditListCount
();
},[])
useEffect
(()
=>
{
function
getStoreDetail
(){
const
params
=
{
storeId
:
User
.
getStoreId
()
}
StoreService
.
getStoreDetail
(
params
).
then
((
res
)
=>
{
return
StoreService
.
getStoreDetail
(
params
).
then
((
res
)
=>
{
const
{
result
=
{
}
}
=
res
;
const
{
auditSwitch
}
=
result
;
setAuditSwitch
(
auditSwitch
)
return
auditSwitch
})
}
function
jumpWechatAudit
(){
getStoreDetail
().
then
((
res
)
=>
{
if
(
res
===
'OPEN'
){
window
.
RCHistory
.
push
({
pathname
:
`
${
match
.
url
}
/wechat-user-audit`
,
});
}
})
}
useEffect
(()
=>
{
getStoreDetail
()
},[])
return
(
<
div
className=
"page new-user-manage-page"
>
<
div
className=
"content-header"
>
<
div
>
学员管理
</
div
>
<
If
condition=
{
auditSwitch
===
'OPEN'
}
>
<
div
className=
'wechat-audit'
onClick=
{
()
=>
{
window
.
RCHistory
.
push
({
pathname
:
`${match.url}/wechat-user-audit`
,
});
}
}
>
<
div
className=
'wechat-audit'
onClick=
{
jumpWechatAudit
}
>
<
div
>
<
span
className=
'icon iconfont icon-font-weixin'
>

</
span
>
<
span
className=
'content-header-right'
>
学员审核列表
</
span
>
...
...
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