Commit c1319e6e by guomingpang

fix:微信审核bug修复

parent a4e5eba6
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'>&#xe61d;</span>
</Tooltip>
</span>}
name='storeName' >
<div className='switch-box'>
<Switch checked={auditSwitch ==='OPEN' } onChange={(e) => this.onChangeFiledValue('auditSwitch', e ?'OPEN':'CLOSE')}/>
<Choose>
......
......@@ -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{
......
......@@ -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'>&#xe8e0;</span>
<span className='content-header-right'>学员审核列表</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment