diff --git a/src/military/qz2022/apply/index.scss b/src/military/qz2022/apply/index.scss
index 9435f942..a2e2ad45 100644
--- a/src/military/qz2022/apply/index.scss
+++ b/src/military/qz2022/apply/index.scss
@@ -111,6 +111,9 @@
font-size: 14px;
color: gray;
}
+ .text_red{
+ color: red;
+ }
.download{
color: #2e5bfe;
&:hover{
diff --git a/src/military/qz2022/components/infoModal/index.jsx b/src/military/qz2022/components/infoModal/index.jsx
new file mode 100644
index 00000000..0b762d05
--- /dev/null
+++ b/src/military/qz2022/components/infoModal/index.jsx
@@ -0,0 +1,48 @@
+import React, { memo, useEffect, useState } from 'react';
+import { Modal } from 'antd';
+import { Link } from 'react-router-dom';
+
+import bg from '../../image/infoModal.jpg';
+import './index.scss';
+
+
+
+function QzModal() {
+
+ const [visible, setVisible] = useState(false);
+
+ useEffect(() => {
+ let qzInfoTime = localStorage.qzInfoTime;
+ let nowTime = new Date().getTime();
+ let lastTime=new Date("2022-05-26").getTime();
+ if(nowTime>lastTime)return;
+ if (qzInfoTime) {
+ if (nowTime - qzInfoTime > 24 * 3600 * 1000) {
+ // 延时展示,保证渲染modal不会白屏
+ setTimeout(()=>{setVisible(true);},800)
+ localStorage.setItem('qzInfoTime', nowTime);
+ }
+ } else {
+ setTimeout(()=>{setVisible(true);},800)
+ localStorage.setItem('qzInfoTime', nowTime);
+ }
+ }, [])
+
+ return (
+
{ setVisible(false) }}
+ footer={null}
+ className='qzInfoModal'
+ width='728px'
+ maskClosable={false}
+ >
+
+
+ {/* 查看详情 */}
+
+ )
+}
+
+export default memo(QzModal);
\ No newline at end of file
diff --git a/src/military/qz2022/components/infoModal/index.scss b/src/military/qz2022/components/infoModal/index.scss
new file mode 100644
index 00000000..133e0034
--- /dev/null
+++ b/src/military/qz2022/components/infoModal/index.scss
@@ -0,0 +1,49 @@
+.qzInfoModal {
+ top:calc(50vh - 250px);
+ .ant-modal-body {
+ padding: 0;
+ background: #fff;
+
+ img {
+ border-radius: 2px;
+ width: 100%;
+ }
+ }
+
+ .ant-modal-header {
+ height: 0;
+ background: #fff;
+ display: none !important;
+ }
+
+ .ant-modal-close {
+ top: -50px !important;
+ right: -50px;
+ }
+ .ant-modal-close-icon {
+ border: 1px solid #fff;
+ color: #fff;
+ border-radius: 50%;
+ padding: 5%;
+ }
+
+ .qz-btn {
+ position: absolute;
+ bottom: -70px;
+ left: 295px;
+ width: 137px;
+ height: 49px;
+ background-color: #e96d2a;
+ border-color: #e96d2a;
+ border-radius: 6px;
+ color: #fff;
+ font-size:16px;
+ text-align: center;
+ line-height: 49px;
+ &:hover{
+ color: #fff !important;
+ background-color: #f96d2a;
+ border-color: #f96d2a;
+ }
+ }
+}
diff --git a/src/military/qz2022/image/infoModal.jpg b/src/military/qz2022/image/infoModal.jpg
new file mode 100644
index 00000000..87d47a3f
Binary files /dev/null and b/src/military/qz2022/image/infoModal.jpg differ
diff --git a/src/military/qz2022/statistics/index.jsx b/src/military/qz2022/statistics/index.jsx
index 55b2ade5..3e2dbd06 100644
--- a/src/military/qz2022/statistics/index.jsx
+++ b/src/military/qz2022/statistics/index.jsx
@@ -12,7 +12,8 @@ import EchartBar from './EchartBar';
const initBarYData = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
-function Statistics({ showNotification, qzDetail }) {
+function Statistics({ showNotification, qzDetail,match }) {
+ const {competitionId}=match.params;
const is_local= qzDetail &&qzDetail.is_local;
const [pieArr, setPieArr] = useState([]);
@@ -24,7 +25,7 @@ function Statistics({ showNotification, qzDetail }) {
useEffect(() => {
- stattistics().then(res => {
+ stattistics(competitionId).then(res => {
if (res && res.data && Array.isArray(res.data.data)) {
let pieArrList = [];
let xData = [];
diff --git a/src/modules/tpm/TPMIndexHOC.js b/src/modules/tpm/TPMIndexHOC.js
index 3507d678..7d65b0c9 100644
--- a/src/modules/tpm/TPMIndexHOC.js
+++ b/src/modules/tpm/TPMIndexHOC.js
@@ -280,7 +280,7 @@ export function TPMIndexHOC(WrappedComponent, headFoot) {
resetUserInfo:this.fetchUsers,
showCompeleteDialog:this.showCompeleteDialog
};
- let qz2022 = this.props.match.path.includes('/competition/qz2022');
+ let competition = this.props.match.path.includes('/competition');
return (
: ""}
{/*
*/}
{/*
*/}
- {!qz2022&&
}
+ {!competition&&
}
- {!publicNav && !qz2022&&
}
+ {!publicNav && !competition&&
}
{
current_user &&
this.initCommonState(user)}