Commit c1319e6e by guomingpang

fix:微信审核bug修复

parent a4e5eba6
import React from 'react'; import React from 'react';
import { withRouter } from 'react-router-dom'; 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 SelectPrepareFileModal from '@/modules/prepare-lesson/modal/SelectPrepareFileModal';
import Upload from '@/core/upload'; import Upload from '@/core/upload';
import StoreService from '@/domains/store-domain/storeService'; import StoreService from '@/domains/store-domain/storeService';
...@@ -167,7 +167,12 @@ class CollegeInfoPage extends React.Component { ...@@ -167,7 +167,12 @@ class CollegeInfoPage extends React.Component {
/> />
</Form.Item> </Form.Item>
<div className='title mt40'>高级设置</div> <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'> <div className='switch-box'>
<Switch checked={auditSwitch ==='OPEN' } onChange={(e) => this.onChangeFiledValue('auditSwitch', e ?'OPEN':'CLOSE')}/> <Switch checked={auditSwitch ==='OPEN' } onChange={(e) => this.onChangeFiledValue('auditSwitch', e ?'OPEN':'CLOSE')}/>
<Choose> <Choose>
......
...@@ -84,6 +84,14 @@ ...@@ -84,6 +84,14 @@
margin-left:132px; margin-left:132px;
margin-top: 20px; margin-top: 20px;
} }
.label-box{
// display: flex;
// align-content: center;
.icon{
color:#BFBFBF;
margin: 0 2px;
}
}
} }
.college-info-page-view-modal-box{ .college-info-page-view-modal-box{
......
...@@ -47,28 +47,39 @@ function UserManagePage(props) { ...@@ -47,28 +47,39 @@ function UserManagePage(props) {
} }
handleFetchAuditListCount(); handleFetchAuditListCount();
},[]) },[])
useEffect(()=>{
function getStoreDetail(){
const params= { const params= {
storeId:User.getStoreId() storeId:User.getStoreId()
} }
StoreService.getStoreDetail(params).then((res) => { return StoreService.getStoreDetail(params).then((res) => {
const { result = { } } = res; const { result = { } } = res;
const { const {
auditSwitch auditSwitch
} = result; } = result;
setAuditSwitch(auditSwitch) setAuditSwitch(auditSwitch)
return auditSwitch
})
}
function jumpWechatAudit(){
getStoreDetail().then((res)=>{
if(res === 'OPEN'){
window.RCHistory.push({
pathname: `${match.url}/wechat-user-audit`,
});
}
}) })
}
useEffect(()=>{
getStoreDetail()
},[]) },[])
return ( return (
<div className="page new-user-manage-page"> <div className="page new-user-manage-page">
<div className="content-header"> <div className="content-header">
<div>学员管理</div> <div>学员管理</div>
<If condition={auditSwitch === 'OPEN'}> <If condition={auditSwitch === 'OPEN'}>
<div className='wechat-audit' onClick={()=>{ <div className='wechat-audit' onClick={jumpWechatAudit} >
window.RCHistory.push({
pathname: `${match.url}/wechat-user-audit`,
});
}} >
<div> <div>
<span className='icon iconfont icon-font-weixin'>&#xe8e0;</span> <span className='icon iconfont icon-font-weixin'>&#xe8e0;</span>
<span className='content-header-right'>学员审核列表</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