9.7 增加首页照片检测

This commit is contained in:
jl-zhoujl2
2022-09-07 10:51:30 +08:00
parent 8cc259751b
commit 90c5085fc8
4 changed files with 69 additions and 9 deletions

View File

@ -1,5 +1,5 @@
import React, { PureComponent } from 'react';
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic } from 'antd';
import { Row, Col, Tooltip, Card, List, DatePicker, Button, Statistic, Modal } from 'antd';
import { history } from 'umi';
import { connect } from 'dva';
import './index.less';
@ -10,6 +10,7 @@ import moment from 'moment';
import { jurySaveInfo, getSessionUserData } from '@/utils/session';
import NoticeDetail from '@/pages/notice/noticeList/components/NoticeDetail'
import ExpertEnter from '@/pages/BidEvaluation/components/ExpertEnter';
import { isInsertIdOrPhoto } from './service';
@connect(({ dashboard, loading }) => ({
...dashboard,
@ -47,6 +48,7 @@ class Jury extends PureComponent {
userlevel: "1",                       //网站自定义会员级别1-N可根据选择判断取值显示到小能客户端
erpparam: "abc"                          //erpparam为erp功能的扩展字段可选购买erp功能后用于erp功能集成
}
this.isIdOrPhoto();
}
onChange = (date, dateString) => {
this.setState({
@ -96,20 +98,35 @@ class Jury extends PureComponent {
})
}
talkXy = () => {
if(NTKF){
if (NTKF) {
NTKF.im_openInPageChat('bl_1000_1492484340268');
} else {
message.warn('小优客服初始化失败,请联系系统管理员!')
}
}
//判断是否有身份证号或照片
isIdOrPhoto = () => {
const { warning } = Modal;
isInsertIdOrPhoto().then(res => {
if (res?.code == 200) {
if (!res?.data) {
warning({
title: '提示',
content: `您尚未维护身份证号与照片信息,请前往【我的工作台】->【专家个人信息管理】补充信息`,
centered: true,
});
}
}
})
}
render() {
const { datevalue, detailId, noticeDetail, recordData, enterVisible } = this.state;
const { Juryuplist, Jurydownlist, staloading, tlist } = this.props;
return (
<>
{
START_ENV == 'UAT' || START_ENV == 'DEV' || START_ENV == 'sim' ? '' :
<a className="talk" onClick={() => this.talkXy()}>咨询服务<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span><img src={talkPng} /></a>
START_ENV == 'UAT' || START_ENV == 'DEV' || START_ENV == 'sim' ? '' :
<a className="talk" onClick={() => this.talkXy()}>咨询服务<span>8:30</span><span>|</span><span>12:30</span><span>13:00</span><span>|</span><span>17:00</span><img src={talkPng} /></a>
}
<div className="dashboard" style={{ height: innerHeight - 70, overflow: "hidden" }}>
<Row className="topt">
@ -182,7 +199,7 @@ class Jury extends PureComponent {
</div>
{noticeDetail && <NoticeDetail detailId={detailId} onCancel={() => { this.noticeModel() }} modalVisible={noticeDetail} />}
{recordData == '' ? null :
<ExpertEnter modalVisible={enterVisible} onCancel={() => { this.enterModel() }} onRefresh={() => { this.onRefresh() }} recordData={recordData} />}
<ExpertEnter modalVisible={enterVisible} onCancel={() => { this.enterModel() }} onRefresh={() => { this.onRefresh() }} recordData={recordData} />}
</>
)
}