From 507976bf10e6b31434102ca1763cbf192ca84024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com> Date: Tue, 13 Jul 2021 10:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/UrlTool.js | 1 + src/military/index.scss | 29 +++++++ .../task/components/agreementModal/index.jsx | 1 + .../components/itemAgreementManage/index.jsx | 5 +- .../task/components/itemListMyTask/index.jsx | 8 +- .../task/components/itemListMyTask/index.scss | 9 ++- .../task/components/itemListPaper/index.jsx | 10 +-- .../task/components/itemListTask/index.jsx | 7 +- .../task/components/itemListTask/index.scss | 4 + .../task/components/itemProofManage/index.jsx | 7 +- .../task/components/proofModal/index.jsx | 23 +++--- src/military/task/myTask/index.jsx | 1 + src/military/task/myTask/joinTask.jsx | 76 ++++++++++++++++--- src/military/task/paperComplain/index.js | 2 +- src/military/task/taskDetail/index.jsx | 13 ++-- 15 files changed, 150 insertions(+), 46 deletions(-) diff --git a/src/common/UrlTool.js b/src/common/UrlTool.js index 9b4d5191..f952f22c 100644 --- a/src/common/UrlTool.js +++ b/src/common/UrlTool.js @@ -12,6 +12,7 @@ export function getImageUrl(path) { // https://testbdweb.trustie.net // const local = 'http://localhost:3000' const local = 'http://39.105.176.215:49999'; + if (isDev) { return `${local}/${path}` } diff --git a/src/military/index.scss b/src/military/index.scss index 7964b096..3dae0f66 100644 --- a/src/military/index.scss +++ b/src/military/index.scss @@ -162,6 +162,35 @@ text-align: left; } + +.ant-modal-footer{ + text-align: center; + border: 0; +} + + +// 头像 +.head-log-big{ + width: 4rem; + height: 4rem; + margin-right: .5rem; + border-radius: 50%; +} + +.head-log-middle{ + width: 3rem; + height: 3rem; + margin-right: .35rem; + border-radius: 50%; +} + +.head-log-small{ + width: 1.25rem; + height: 1.25rem; + margin-right: .35rem; + border-radius: 50%; +} + // 富文本样式 .w-e-text table td, .w-e-text table th{ height: 30px; diff --git a/src/military/task/components/agreementModal/index.jsx b/src/military/task/components/agreementModal/index.jsx index aa59e86f..99c08c24 100644 --- a/src/military/task/components/agreementModal/index.jsx +++ b/src/military/task/components/agreementModal/index.jsx @@ -54,6 +54,7 @@ export default Form.create()(props => { className="form-edit-modal" >
{detailData.delayTime}
} - {detailData.status === status && (!detailData.delayTime) &&剩余{surplusTimetext}
} + {/* 因为有时只延期几秒或者几分钟时后端没有返回延期,所以这里加一个判断 */} + {detailData.status === status && (!detailData.delayTime) &&{surplusTimetext.indexOf('-') > 0 ? ('延期' + surplusTimetext.replaceAll('-', '')) : ('剩余' + surplusTimetext)}
} ) }, [detailData]); @@ -364,7 +364,7 @@ export default Form.create()({detailData && detailData.user && (detailData.user.nickname || detailData.user.login)}