This commit is contained in:
xixi 2024-09-10 11:52:02 +08:00
parent 8ff370701d
commit 0eac126f40
6 changed files with 1814 additions and 688 deletions

View File

@ -478,6 +478,7 @@ export default function CardProj(props: any) {
} }
</div> */} </div> */}
<div className='cpbc-bot' style={{ color: '#FFA415' }}> <div className='cpbc-bot' style={{ color: '#FFA415' }}>
:{data.apply.authorName} :{data.apply.authorName}
</div> </div>
</div> </div>

View File

@ -1,5 +1,5 @@
.card-proj-loading { .card-proj-loading {
width: 317px; width: 95%;
padding: 20px 25px; padding: 20px 25px;
box-sizing: border-box; box-sizing: border-box;
background-color: #F5FAFE; background-color: #F5FAFE;

View File

@ -1,5 +1,5 @@
.card-proj-result { .card-proj-result {
width: 317px; width: 95%;
min-height: 97px; min-height: 97px;
padding: 20px 25px; padding: 20px 25px;
box-sizing: border-box; box-sizing: border-box;

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@ import {
CloseOutlined CloseOutlined
} from '@ant-design/icons'; } from '@ant-design/icons';
import { useLocation } from 'react-router-dom'; import { useLocation } from 'react-router-dom';
import { get, downloadUrl,post } from '../../util/AjaxUtils.ts' import { get, downloadUrl, post } from '../../util/AjaxUtils.ts'
import { setMenuActive } from '../../util/cache.ts' import { setMenuActive } from '../../util/cache.ts'
import gpsImg from '../../static/right/gps.png' import gpsImg from '../../static/right/gps.png'
import backImg from '../../static/right/back.png' import backImg from '../../static/right/back.png'
@ -523,22 +523,22 @@ export default function Index() {
messageApi, messageApi,
url: `/api/coupon/user/save`, url: `/api/coupon/user/save`,
body: { body: {
couponId:couponId couponId: couponId
}, },
onBefore() { onBefore() {
}, },
onSuccess() { onSuccess() {
messageApi.success('领取成功') messageApi.success('领取成功')
setTimeout(()=>{ setTimeout(() => {
setCoupon(false) setCoupon(false)
},500) }, 500)
}, },
onFinally() { onFinally() {
} }
}) })
} }
useEffect(() => { useEffect(() => {
// const nowname = sessionStorage.getItem('now') // const nowname = sessionStorage.getItem('now')
if (location.pathname == '/') { if (location.pathname == '/') {
@ -1053,17 +1053,29 @@ export default function Index() {
{/* {renderStatus()} */} {/* {renderStatus()} */}
<div className='gps'> <div className='gps'>
<img src={gpsImg} alt="" /> <img src={gpsImg} alt="" />
<div>:{now}</div> <div className='gps-now'>:{now}</div>
</div>
<div className='mediaLine'>
<div className='line' style={{
display: showSearchBox ? 'block' : 'none',
}} ></div>
</div> </div>
<div style={{ display: showSearchBox ? 'block' : 'none' }}> <div style={{ display: showSearchBox ? 'block' : 'none' }}>
<div style={{ <div
display: 'flex', className='mediaSearch'
alignItems: 'center' style={{
}}>
<div className='line' style={{ display: 'flex',
display: showSearchBox ? 'block' : 'none', alignItems: 'center',
minHeight: 62,
// flexWrap: 'wrap',
padding: '10px 0',
boxSizing: 'border-box',
// background:'red',
// width:890
}}>
}} ></div>
<div <div
style={{ style={{
@ -1222,12 +1234,16 @@ export default function Index() {
</div> </div>
<div style={{ display: refunSearchBox ? 'block' : 'none' }}> <div style={{ display: refunSearchBox ? 'block' : 'none' }}>
<div style={{ <div
display: 'flex', className='mediaSearch'
alignItems: 'center' style={{
}}> display: 'flex',
<div className='line' style={{ alignItems: 'center'
}} ></div> }}>
<div className='mediaLine'>
<div className='line' style={{
}} ></div>
</div>
<Button type="primary" onClick={() => { <Button type="primary" onClick={() => {
setRefunModal(true) setRefunModal(true)
refunInit() refunInit()
@ -1283,12 +1299,14 @@ export default function Index() {
<div style={{ display: correctionSearchBox ? 'block' : 'none' }}> <div style={{ display: correctionSearchBox ? 'block' : 'none' }}>
<div style={{ <div className='mediaSearch' style={{
display: 'flex', display: 'flex',
alignItems: 'center' alignItems: 'center'
}}> }}>
<div className='line' style={{ <div className='mediaLine'>
}} ></div> <div className='line' style={{
}} ></div>
</div>
<Button type="primary" onClick={() => { <Button type="primary" onClick={() => {
setCorrectionModal(true) setCorrectionModal(true)
correctionInit() correctionInit()

View File

@ -1,243 +1,787 @@
.index { @media (min-width: 1671px) {
/* position: relative; */ .index {
height: 100vh; height: 100vh;
/* margin-top: 74px; */ display: flex;
display: flex; position: relative;
position: relative; }
}
.couponMask-box { .couponMask-box {
position: fixed; position: fixed;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 0.5);
top: 0; top: 0;
left: 0; left: 0;
z-index: 999; z-index: 999;
}
.couponMask {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.couponMask-img {
width: 613px;
height: 475px;
/* background-color: skyblue; */
/* cursor: pointer; */
position: relative;
}
.couponMask-btn {
position: absolute;
bottom: -20px;
left: 156.5px;
width: 300px;
height: 60px;
border-radius: 30px;
color: white;
font-size: 25px;
text-align: center;
line-height: 60px;
font-weight: 700;
background-color: #4180FF;
cursor: pointer;
}
.couponMask-close {
width: 65px;
height: 65px;
border-radius: 50%;
border: 2px solid #E5E5E5;
color: #E5E5E5;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
margin-top: 52px;
cursor: pointer;
}
.leftbox {
width: 250px;
height: calc(100vh - 65px);
/* background-color: red; */
position: fixed;
top: 65px;
left: 0;
overflow: auto;
}
/* .leftbox::-webkit-scrollbar {
display: block;
width: 6px;
height: 0;
}
.leftbox::-webkit-scrollbar-track {
background: #e2e2e2;
}
.leftbox::-webkit-scrollbar-thumb {
background: #cecece;
border-radius: 5px;
}
.leftbox::-webkit-scrollbar-thumb:hover {
background: #adadad;
} */
.index .left {
/* position: fixed; */
/* width: 267px; */
width: 230px;
min-height: calc(100vh - 65px);
/* overflow: auto; */
/* top: 65px; */
/* left: 0; */
background-color: var(--color-light);
}
.belongPeopleMenu {
/* background-color: pink; */
}
.belongPeopleMenu-title {
background-color: #FFFBEF;
border-top: 1px solid #fde9ab;
border-bottom: 1px solid #fde9ab;
height: 56px;
color: #FFAF22;
font-size: 18px;
display: flex;
align-items: center;
/* justify-content: center; */
}
.belongPeopleMenu-box {
min-height: 200px;
/* background-color: pink; */
border-bottom: 1px solid #fde9ab;
}
.belongpeopleName {
color: #313131;
width: 230px;
height: 40px;
text-align: left;
font-size: 16px;
padding: 10px;
box-sizing: border-box;
overflow: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
cursor: pointer;
}
.pagination-controls {
/* background-color: skyblue; */
display: flex;
justify-content: center;
}
.index .right {
margin-left: 250px;
box-sizing: border-box;
height: 100%;
position: fixed;
width: calc(100vw - 270px);
/* width: 1575px; */
}
.index .right .top {
/* margin-top: 11px; */
box-sizing: border-box;
min-height: 62px;
display: flex;
/* justify-content: center; */
align-items: center;
border-bottom: 1px solid var(--color-border);
background-color: var(--color-light);
/* overflow-x: scroll; */
}
.index .right .top .gps {
display: flex;
align-items: center;
font-size: 14px;
}
.gps-now {
/* background-color: red; */
min-width: 122px;
}
.index .right .top .gps img {
width: 18px;
height: 21px;
margin-left: 22px;
margin-right: 16px;
}
.index .right .top .line {
width: 1px;
height: 23px;
border-left: 1px solid #d8d8d8;
margin-left: 33px;
margin-right: 31px;
}
.nowPosition {
display: flex;
align-items: center;
/* width: 349px; */
height: 62px;
/* margin-left: 98px; */
font-weight: 300;
font-size: 13px;
color: #676767;
/* background: url(../../static//right/back.png); */
/* background-color: rgb(228, 191, 191); */
position: relative;
}
.nowPosition img {
width: 349px;
height: 62px;
position: absolute;
left: 0;
top: 0;
}
.nowPosition div {
margin-left: 133px;
z-index: 99;
/* background-color: red; */
min-width: 30px;
}
/* 所属人分页 */
.belong-pagination {
display: flex;
justify-content: flex-end;
margin-top: 5px;
/* background-color: skyblue; */
}
/* 设置分页不显示页码 */
.custom-pagination .ant-pagination-item,
.custom-pagination .ant-pagination-jump-prev,
.custom-pagination .ant-pagination-jump-next,
.custom-pagination .ant-pagination-options-size-changer,
.custom-pagination .ant-pagination-options-quick-jumper {
display: none !important;
}
.custom-pagination .ant-pagination-prev,
.custom-pagination .ant-pagination-next {
display: inline-block;
}
} }
.couponMask { @media (max-width: 1670px) {
width: 100%; .index {
height: 100%; height: 100vh;
display: flex; display: flex;
flex-direction: column; position: relative;
align-items: center; }
justify-content: center;
} .couponMask-box {
.couponMask-img{ position: fixed;
width: 613px; width: 100vw;
height: 475px; height: 100vh;
/* background-color: skyblue; */ background-color: rgba(0, 0, 0, 0.5);
/* cursor: pointer; */ top: 0;
position: relative; left: 0;
} z-index: 999;
.couponMask-btn{
position: absolute; }
bottom: -20px;
left: 156.5px; .couponMask {
width: 300px; width: 100%;
height: 60px; height: 100%;
border-radius: 30px; display: flex;
color: white; flex-direction: column;
font-size: 25px; align-items: center;
text-align: center; justify-content: center;
line-height: 60px; }
font-weight: 700;
background-color: #4180FF; .couponMask-img {
cursor: pointer; width: 613px;
} height: 475px;
.couponMask-close { /* background-color: skyblue; */
width: 65px; /* cursor: pointer; */
height: 65px; position: relative;
border-radius: 50%; }
border: 2px solid #E5E5E5;
color: #E5E5E5; .couponMask-btn {
display: flex; position: absolute;
align-items: center; bottom: -20px;
justify-content: center; left: 156.5px;
font-size: 40px; width: 300px;
margin-top: 52px; height: 60px;
cursor: pointer; border-radius: 30px;
color: white;
font-size: 25px;
text-align: center;
line-height: 60px;
font-weight: 700;
background-color: #4180FF;
cursor: pointer;
}
.couponMask-close {
width: 65px;
height: 65px;
border-radius: 50%;
border: 2px solid #E5E5E5;
color: #E5E5E5;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
margin-top: 52px;
cursor: pointer;
}
.leftbox {
width: 250px;
height: calc(100vh - 65px);
/* background-color: red; */
position: fixed;
top: 65px;
left: 0;
overflow: auto;
}
/* .leftbox::-webkit-scrollbar {
display: block;
width: 6px;
height: 0;
}
.leftbox::-webkit-scrollbar-track {
background: #e2e2e2;
}
.leftbox::-webkit-scrollbar-thumb {
background: #cecece;
border-radius: 5px;
}
.leftbox::-webkit-scrollbar-thumb:hover {
background: #adadad;
} */
.index .left {
/* position: fixed; */
/* width: 267px; */
width: 230px;
min-height: calc(100vh - 65px);
/* overflow: auto; */
/* top: 65px; */
/* left: 0; */
background-color: var(--color-light);
}
.belongPeopleMenu {
/* background-color: pink; */
}
.belongPeopleMenu-title {
background-color: #FFFBEF;
border-top: 1px solid #fde9ab;
border-bottom: 1px solid #fde9ab;
height: 56px;
color: #FFAF22;
font-size: 18px;
display: flex;
align-items: center;
/* justify-content: center; */
}
.belongPeopleMenu-box {
min-height: 200px;
/* background-color: pink; */
border-bottom: 1px solid #fde9ab;
}
.belongpeopleName {
color: #313131;
width: 230px;
height: 40px;
text-align: left;
font-size: 16px;
padding: 10px;
box-sizing: border-box;
overflow: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
cursor: pointer;
}
.pagination-controls {
/* background-color: skyblue; */
display: flex;
justify-content: center;
}
.index .right {
margin-left: 250px;
box-sizing: border-box;
height: 100%;
position: fixed;
width: calc(100vw - 270px);
/* width: 1575px; */
}
.index .right .top {
/* margin-top: 11px; */
box-sizing: border-box;
min-height: 62px;
display: flex;
/* padding: 10px 10px;
box-sizing: border-box; */
flex-wrap: wrap;
/* justify-content: center; */
align-items: center;
border-bottom: 1px solid var(--color-border);
background-color: var(--color-light);
/* overflow-x: scroll; */
}
.index .right .top .gps {
display: flex;
align-items: center;
font-size: 14px;
}
.gps-now {
/* background-color: red; */
min-width: 122px;
}
.index .right .top .gps img {
width: 18px;
height: 21px;
margin-left: 22px;
margin-right: 16px;
}
.index .right .top .line {
width: 1px;
height: 23px;
border-left: 1px solid #d8d8d8;
margin-left: 33px;
margin-right: 31px;
}
.nowPosition {
display: flex;
align-items: center;
/* width: 349px; */
height: 62px;
/* margin-left: 98px; */
font-weight: 300;
font-size: 13px;
color: #676767;
/* background: url(../../static//right/back.png); */
/* background-color: rgb(228, 191, 191); */
position: relative;
display: none;
}
.nowPosition img {
width: 349px;
height: 62px;
position: absolute;
left: 0;
top: 0;
}
.nowPosition div {
margin-left: 133px;
z-index: 99;
/* background-color: red; */
min-width: 30px;
}
/* 所属人分页 */
.belong-pagination {
display: flex;
justify-content: flex-end;
margin-top: 5px;
/* background-color: skyblue; */
}
/* 设置分页不显示页码 */
.custom-pagination .ant-pagination-item,
.custom-pagination .ant-pagination-jump-prev,
.custom-pagination .ant-pagination-jump-next,
.custom-pagination .ant-pagination-options-size-changer,
.custom-pagination .ant-pagination-options-quick-jumper {
display: none !important;
}
.custom-pagination .ant-pagination-prev,
.custom-pagination .ant-pagination-next {
display: inline-block;
}
} }
.leftbox { @media (max-width: 1400px) {
width: 250px; .index {
height: calc(100vh - 65px); height: 100vh;
/* background-color: red; */ display: flex;
position: fixed; position: relative;
top: 65px; }
left: 0;
overflow: auto; .couponMask-box {
} position: fixed;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
top: 0;
left: 0;
z-index: 999;
}
.couponMask {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.couponMask-img {
width: 613px;
height: 475px;
/* background-color: skyblue; */
/* cursor: pointer; */
position: relative;
}
.couponMask-btn {
position: absolute;
bottom: -20px;
left: 156.5px;
width: 300px;
height: 60px;
border-radius: 30px;
color: white;
font-size: 25px;
text-align: center;
line-height: 60px;
font-weight: 700;
background-color: #4180FF;
cursor: pointer;
}
.couponMask-close {
width: 65px;
height: 65px;
border-radius: 50%;
border: 2px solid #E5E5E5;
color: #E5E5E5;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
margin-top: 52px;
cursor: pointer;
}
.leftbox {
width: 250px;
height: calc(100vh - 65px);
/* background-color: red; */
position: fixed;
top: 65px;
left: 0;
overflow: auto;
}
/* .leftbox::-webkit-scrollbar { /* .leftbox::-webkit-scrollbar {
display: block; display: block;
width: 6px; width: 6px;
height: 0; height: 0;
} }
.leftbox::-webkit-scrollbar-track { .leftbox::-webkit-scrollbar-track {
background: #e2e2e2; background: #e2e2e2;
}
.leftbox::-webkit-scrollbar-thumb {
background: #cecece;
border-radius: 5px;
}
.leftbox::-webkit-scrollbar-thumb:hover {
background: #adadad;
} */
} .index .left {
/* position: fixed; */
/* width: 267px; */
width: 230px;
min-height: calc(100vh - 65px);
/* overflow: auto; */
/* top: 65px; */
/* left: 0; */
background-color: var(--color-light);
.leftbox::-webkit-scrollbar-thumb { }
background: #cecece;
border-radius: 5px;
} .belongPeopleMenu {
/* background-color: pink; */
}
.belongPeopleMenu-title {
background-color: #FFFBEF;
border-top: 1px solid #fde9ab;
border-bottom: 1px solid #fde9ab;
height: 56px;
color: #FFAF22;
font-size: 18px;
display: flex;
align-items: center;
/* justify-content: center; */
}
.belongPeopleMenu-box {
min-height: 200px;
/* background-color: pink; */
border-bottom: 1px solid #fde9ab;
.leftbox::-webkit-scrollbar-thumb:hover { }
background: #adadad;
} */ .belongpeopleName {
color: #313131;
width: 230px;
height: 40px;
text-align: left;
font-size: 16px;
padding: 10px;
box-sizing: border-box;
overflow: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
cursor: pointer;
}
.index .left { .pagination-controls {
/* position: fixed; */ /* background-color: skyblue; */
/* width: 267px; */ display: flex;
width: 230px; justify-content: center;
min-height: calc(100vh - 65px); }
/* overflow: auto; */
/* top: 65px; */
/* left: 0; */
background-color: var(--color-light);
} .index .right {
margin-left: 250px;
box-sizing: border-box;
height: 100%;
position: fixed;
width: calc(100vw - 270px);
/* width: 1575px; */
}
.belongPeopleMenu { .index .right .top {
/* background-color: pink; */ /* margin-top: 11px; */
} box-sizing: border-box;
min-height: 62px;
display: flex;
/* padding: 10px 10px;
box-sizing: border-box; */
flex-wrap: wrap;
/* justify-content: center; */
align-items: center;
border-bottom: 1px solid var(--color-border);
background-color: var(--color-light);
/* overflow-x: scroll; */
}
.belongPeopleMenu-title { .index .right .top .gps {
background-color: #FFFBEF;
border-top: 1px solid #fde9ab;
border-bottom: 1px solid #fde9ab;
height: 56px;
color: #FFAF22;
font-size: 18px;
display: flex;
align-items: center;
/* justify-content: center; */
}
.belongPeopleMenu-box { display: flex;
min-height: 200px; align-items: center;
/* background-color: pink; */ font-size: 14px;
border-bottom: 1px solid #fde9ab; display: none;
}
.gps-now {
/* background-color: red; */
min-width: 122px;
}
} .index .right .top .gps img {
width: 18px;
height: 21px;
margin-left: 22px;
margin-right: 16px;
}
.belongpeopleName { .index .right .top .line {
color: #313131; width: 1px;
width: 230px; height: 23px;
height: 40px; border-left: 1px solid #d8d8d8;
text-align: left; margin-left: 33px;
font-size: 16px; margin-right: 31px;
padding: 10px;
box-sizing: border-box;
overflow: hidden;
text-wrap: nowrap;
text-overflow: ellipsis;
cursor: pointer;
}
.pagination-controls { }
/* background-color: skyblue; */
display: flex;
justify-content: center;
}
.index .right { .mediaLine {
margin-left: 250px; display: none;
box-sizing: border-box; }
height: 100%;
position: fixed;
width: calc(100vw - 270px);
/* width: 1575px; */
}
.index .right .top { .mediaSearch{
/* margin-top: 11px; */ margin-left: 20px;
box-sizing: border-box; }
height: 62px; .nowPosition {
display: flex; display: flex;
/* justify-content: space-between; */ align-items: center;
align-items: center; /* width: 349px; */
border-bottom: 1px solid var(--color-border); height: 62px;
background-color: var(--color-light); /* margin-left: 98px; */
} font-weight: 300;
font-size: 13px;
color: #676767;
/* background: url(../../static//right/back.png); */
/* background-color: rgb(228, 191, 191); */
position: relative;
display: none;
.index .right .top .gps { }
display: flex;
align-items: center;
font-size: 14px;
}
.index .right .top .gps img { .nowPosition img {
width: 18px; width: 349px;
height: 21px; height: 62px;
margin-left: 22px; position: absolute;
margin-right: 16px; left: 0;
} top: 0;
}
.index .right .top .line { .nowPosition div {
width: 1px; margin-left: 133px;
height: 23px; z-index: 99;
border-left: 1px solid #d8d8d8; /* background-color: red; */
margin-left: 33px; min-width: 30px;
margin-right: 31px; }
}
.nowPosition { /* 所属人分页 */
display: flex; .belong-pagination {
align-items: center; display: flex;
/* width: 349px; */ justify-content: flex-end;
height: 100%; margin-top: 5px;
/* margin-left: 98px; */ /* background-color: skyblue; */
font-weight: 300; }
font-size: 13px;
color: #676767;
/* background: url(../../static//right/back.png); */
/* background-color: rgb(228, 191, 191); */
position: relative;
}
.nowPosition img { /* 设置分页不显示页码 */
width: 349px; .custom-pagination .ant-pagination-item,
height: 62px; .custom-pagination .ant-pagination-jump-prev,
position: absolute; .custom-pagination .ant-pagination-jump-next,
left: 0; .custom-pagination .ant-pagination-options-size-changer,
top: 0; .custom-pagination .ant-pagination-options-quick-jumper {
} display: none !important;
}
.nowPosition div { .custom-pagination .ant-pagination-prev,
margin-left: 133px; .custom-pagination .ant-pagination-next {
z-index: 99; display: inline-block;
} }
}
/* 所属人分页 */
.belong-pagination {
display: flex;
justify-content: flex-end;
margin-top: 5px;
/* background-color: skyblue; */
}
/* 设置分页不显示页码 */
.custom-pagination .ant-pagination-item,
.custom-pagination .ant-pagination-jump-prev,
.custom-pagination .ant-pagination-jump-next,
.custom-pagination .ant-pagination-options-size-changer,
.custom-pagination .ant-pagination-options-quick-jumper {
display: none !important;
}
.custom-pagination .ant-pagination-prev,
.custom-pagination .ant-pagination-next {
display: inline-block;
}