样式更改超小屏幕适配

This commit is contained in:
lyp 2024-12-24 15:41:20 +08:00
parent 297859f287
commit 880a6227d0
7 changed files with 379 additions and 191 deletions

View File

@ -152,7 +152,9 @@ export default function AiHelperMod(props: PropsType) {
}}><RedoOutlined /></Button> }}><RedoOutlined /></Button>
} }
return ( return (
<div> <div
// style={{ whiteSpace: 'nowrap' }}
>
<span <span
style={{ style={{
cursor: 'pointer' cursor: 'pointer'

View File

@ -335,6 +335,7 @@ export default function CardProj(props: any) {
{data.gmtCreate} {data.gmtCreate}
</div> </div>
{/* 标签 */} {/* 标签 */}
<div className='selectTagmax'>
{props.tagArray.map((item: any) => { {props.tagArray.map((item: any) => {
return ( return (
@ -356,7 +357,7 @@ export default function CardProj(props: any) {
) )
})} })}
</div>
</div> </div>
@ -432,6 +433,7 @@ export default function CardProj(props: any) {
> >
{data.pay.payment / 100} {data.pay.payment / 100}
{/* 2000.00 */}
</div> </div>
<div className='coupon-num' style={{ display: data.pay.couponAmount ? 'unset' : 'none', color: data.projStatus == 'NORMAL' || data.projStatus == 'EXPIRED' ? '#FF5D15' : '#8a8a8a' }}>({data.pay.couponAmount / 100})</div> <div className='coupon-num' style={{ display: data.pay.couponAmount ? 'unset' : 'none', color: data.projStatus == 'NORMAL' || data.projStatus == 'EXPIRED' ? '#FF5D15' : '#8a8a8a' }}>({data.pay.couponAmount / 100})</div>
</div> </div>
@ -443,6 +445,7 @@ export default function CardProj(props: any) {
</div> </div>
</div> </div>
<div style={{ display: data.projStatus == 'NORMAL' || data.projStatus == 'EXPIRED' ? 'block' : 'none' }}> <div style={{ display: data.projStatus == 'NORMAL' || data.projStatus == 'EXPIRED' ? 'block' : 'none' }}>
<div className='cpbl-btn-box'>
<div className='cpbl-btn'> <div className='cpbl-btn'>
<div className='threeBtn' onClick={() => { <div className='threeBtn' onClick={() => {
if (data.generate.generateStatus == GenerateStatus.SUCCESS || payCharge == '全托管') { if (data.generate.generateStatus == GenerateStatus.SUCCESS || payCharge == '全托管') {
@ -485,6 +488,32 @@ export default function CardProj(props: any) {
<div>({data.projModCount})</div> <div>({data.projModCount})</div>
</div> </div>
</div> </div>
<div className='selectTagmin'>
{props.tagArray.map((item: any) => {
return (
<div className='proj-progress' key={item.value} style={{
background: tagIdArray.includes(item.value) ? '#ff7b00' : '',
color: tagIdArray.includes(item.value) ? '#ffffff' : '#5a5a5a',
border: tagIdArray.includes(item.value) ? ' 1px solid #ff7b00' : ' 1px solid #5a5a5a',
// display: data.projStatus == 'NORMAL' || data.projStatus == 'EXPIRED' ? 'block' : 'none'
marginBottom: 10
}}
onClick={() => {
upTag(item.value, data.projId)
// upData(item.value)
// props.updata()
}}
>
{item.label}
{/* 提交版权中心 */}
</div>
)
})}
</div>
</div>
</div> </div>
</div> </div>

View File

@ -1,20 +1,37 @@
@media (min-width: 1571px) { @media (min-width: 1571px) {
.option{ .selectTagmin {
display: none;
}
.selectTagmax {
display: flex;
}
.option {
display: flex; display: flex;
/* background-color: red; */ /* background-color: red; */
align-items: flex-start; align-items: flex-start;
} }
.downloadBox{
.downloadBox {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
margin-left: 10px; margin-left: 10px;
margin-top: 2px; margin-top: 2px;
} }
.zpibtn{margin-left: 10px;}
.down-pdf{ .zpibtn {
margin-left: 10px;
}
.down-pdf {
margin-left: 5px; margin-left: 5px;
} }
.card-proj { .card-proj {
border-radius: 6px; border-radius: 6px;
background-color: var(--color-light); background-color: var(--color-light);
@ -38,7 +55,8 @@
padding-left: 21px; padding-left: 21px;
padding-right: 29px; padding-right: 29px;
} }
.promptTags{
.promptTags {
padding-left: 21px; padding-left: 21px;
display: flex; display: flex;
/* background-color: red; */ /* background-color: red; */
@ -46,6 +64,7 @@
/* justify-content: center; */ /* justify-content: center; */
margin-top: 10px; margin-top: 10px;
} }
.cpt-left { .cpt-left {
display: flex; display: flex;
/* align-items: center; */ /* align-items: center; */
@ -598,13 +617,15 @@
padding-left: 21px; padding-left: 21px;
padding-right: 29px; padding-right: 29px;
} }
.promptTags{
.promptTags {
padding-left: 21px; padding-left: 21px;
display: flex; display: flex;
/* background-color: red; */ /* background-color: red; */
align-items: center; align-items: center;
/* justify-content: center; */ /* justify-content: center; */
} }
.cpt-left { .cpt-left {
display: flex; display: flex;
/* align-items: center; */ /* align-items: center; */
@ -625,6 +646,13 @@
color: #292929; color: #292929;
margin-left: 18px; margin-left: 18px;
cursor: pointer; cursor: pointer;
/* width: 300px; */
/* 超出部分勇...代替 */
/* overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; */
/* background-color: pink; */
} }
.cp-tag { .cp-tag {
@ -783,7 +811,7 @@
} }
.cpbl-money { .cpbl-money {
min-width: 270px; width: 230px;
padding: 0 20px; padding: 0 20px;
box-sizing: border-box; box-sizing: border-box;
@ -834,15 +862,30 @@
.moneyBox {} .moneyBox {}
.cpbl-btn-box {
display: flex;
}
.cpbl-btn { .cpbl-btn {
display: flex; display: flex;
/* background-color: red; */ /* background-color: red; */
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
margin-left: 60px; margin-left: 20px;
margin-top: 5px; margin-top: 5px;
} }
.selectTagmin {
display: flex;
flex-direction: column;
margin-top: 10px;
margin-left: 20px;
}
.selectTagmax {
display: none;
}
.threeBtn { .threeBtn {
display: flex; display: flex;
cursor: pointer; cursor: pointer;
@ -1128,7 +1171,7 @@
margin-bottom: 10px; margin-bottom: 10px;
} }
.downloadBox{ .downloadBox {
display: flex; display: flex;
align-items: center; align-items: center;

View File

@ -46,7 +46,7 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
chargeAdditionals: props.chargeAdditionals, chargeAdditionals: props.chargeAdditionals,
tagDataId: props.tagDataId, tagDataId: props.tagDataId,
authorId: props.authorId, authorId: props.authorId,
payStatus:props.payStatus payStatus: props.payStatus
} }
}) })
} }
@ -56,7 +56,7 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
state: { state: {
keywords: props.refunKeywords, keywords: props.refunKeywords,
applyStatus: props.applyStatus, applyStatus: props.applyStatus,
authorId:props.authorId authorId: props.authorId
} }
}) })
} }
@ -65,8 +65,8 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
navugate('/correction', { navugate('/correction', {
state: { state: {
keywords: props.correctionKeywords, keywords: props.correctionKeywords,
correctionNumType:props.correctionNumType, correctionNumType: props.correctionNumType,
correctionType:props.correctionType, correctionType: props.correctionType,
applyStatus: props.correctionApplyStatus, applyStatus: props.correctionApplyStatus,
authorId: props.authorId authorId: props.authorId
} }
@ -89,7 +89,7 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
{item.icon ? (<img src={item.icon} className="menu-icon" alt="加载失败" />) : <></>} {item.icon ? (<img src={item.icon} className="menu-icon" alt="加载失败" />) : <></>}
<span className="menu-name">{item.name}</span> <span className="menu-name">{item.name}</span>
<span className='topIcon'><RightOutlined /></span> <span className='topIcon' ><RightOutlined /></span>
</li> </li>
)); ));
@ -98,11 +98,13 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
{/* button 是三个黄色按钮 */} {/* button 是三个黄色按钮 */}
<div className='top'> <div className='top'>
<div className='top-lift'> <div className='top-lift'>
<div className='objimg'>
<img src={objImg} alt="" style={{ display: props.button.name == '项目' ? 'block' : 'none' }} /> <img src={objImg} alt="" style={{ display: props.button.name == '项目' ? 'block' : 'none' }} />
</div>
{/* <img src={refunimg} alt="" style={{ display: props.button.name == '退款' ? 'block' : 'none', width: 16 }} /> */} {/* <img src={refunimg} alt="" style={{ display: props.button.name == '退款' ? 'block' : 'none', width: 16 }} /> */}
{/* <img src={correctionImg} alt="" style={{ display: props.button.name == '补正' ? 'block' : 'none', width: 16 }} /> */} {/* <img src={correctionImg} alt="" style={{ display: props.button.name == '补正' ? 'block' : 'none', width: 16 }} /> */}
<div> {props.button.name}</div> <div className='objimgName'> {props.button.name}</div>
</div> </div>
<div className='top-right' onClick={(e) => { <div className='top-right' onClick={(e) => {
props.button.handle(e); props.button.handle(e);
@ -133,7 +135,9 @@ export default function MenuWithTopButton(props: IMenuWithTopButton) {
// } // }
}}> }}>
{/* refunimg */} {/* refunimg */}
{/* <div className='objimg'> */}
<img src={newImg} alt="" /> <img src={newImg} alt="" />
{/* </div> */}
<div style={{ display: props.button.name == '项目' ? 'block' : 'none' }}></div> <div style={{ display: props.button.name == '项目' ? 'block' : 'none' }}></div>
{/* <div style={{ display: props.button.name == '退款' ? 'block' : 'none' }}>申请</div> */} {/* <div style={{ display: props.button.name == '退款' ? 'block' : 'none' }}>申请</div> */}
{/* <div style={{ display: props.button.name == '补正' ? 'block' : 'none' }}>申请</div> */} {/* <div style={{ display: props.button.name == '补正' ? 'block' : 'none' }}>申请</div> */}

View File

@ -1,9 +1,13 @@
.menu-with-top-button { @media (max-width: 1550px) {
.menu-with-top-button {
/* padding: 15px; */ /* padding: 15px; */
} }
.menu-with-top-button .top { .menu-with-top-button .top {
width: 231px; width: 231px;
/* 修改 */
width: 191px;
height: 56px; height: 56px;
font-size: 18px; font-size: 18px;
/* color: #FFAF22; */ /* color: #FFAF22; */
@ -14,22 +18,24 @@
align-items: center; align-items: center;
border-top: 1px solid #fde9ab; border-top: 1px solid #fde9ab;
border-bottom: 1px solid #fde9ab; border-bottom: 1px solid #fde9ab;
} }
.menu-with-top-button .top .top-lift { .menu-with-top-button .top .top-lift {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 18px; font-size: 18px;
} }
.menu-with-top-button .top .top-lift img {
.menu-with-top-button .top .top-lift img {
width: 19px; width: 19px;
height: 19px; height: 19px;
margin-left: 14px; margin-left: 14px;
margin-right: 13px; margin-right: 13px;
} }
.menu-with-top-button .top .top-right { .menu-with-top-button .top .top-right {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 14px; font-size: 14px;
@ -37,24 +43,32 @@
width: 53px; width: 53px;
/* background-color: red; */ /* background-color: red; */
margin-left: 82px; margin-left: 82px;
/* 修改 */
margin-left: 32px;
} }
.menu-with-top-button .top .top-right img { /* 修改添加 */
.objimg{
/* display: none; */
}
.menu-with-top-button .top .top-right img {
/* margin-left: 96px; */ /* margin-left: 96px; */
margin-right: 10px; margin-right: 10px;
width: 14px; width: 14px;
height: 13px; height: 13px;
} }
.menu-with-top-button ul { .menu-with-top-button ul {
padding-top: 12px; padding-top: 12px;
padding-bottom: 12px; padding-bottom: 12px;
width: 230px; width: 230px;
/* 修改 */
width: 190px;
/* background-color:pink; */ /* background-color:pink; */
} }
.menu-with-top-button ul li { .menu-with-top-button ul li {
height: 50px; height: 50px;
margin-left: 35px; margin-left: 35px;
font-weight: 400; font-weight: 400;
@ -64,19 +78,113 @@
cursor: pointer; cursor: pointer;
/* background-color: red; */ /* background-color: red; */
text-indent: 32px; text-indent: 32px;
} /* 修改 */
text-indent: 22px;
}
.menu-with-top-button ul li.active { .menu-with-top-button ul li.active {
width: 213px;
/* 修改 */
width: 171px;
height: 50px;
background: #FF9F08;
border-radius: 25px;
color: white;
text-indent: 50px;
}
.topIcon{
display: none;
color: white;
margin-left: 150px;
}
}
@media (min-width: 1551px){
.menu-with-top-button {
/* padding: 15px; */
}
.menu-with-top-button .top {
width: 231px;
height: 56px;
font-size: 18px;
/* color: #FFAF22; */
background: #FFFBEF;
color: #FFAF22;
display: flex;
align-items: center;
border-top: 1px solid #fde9ab;
border-bottom: 1px solid #fde9ab;
}
.menu-with-top-button .top .top-lift {
display: flex;
align-items: center;
font-size: 18px;
}
.menu-with-top-button .top .top-lift img {
width: 19px;
height: 19px;
margin-left: 14px;
margin-right: 13px;
}
.menu-with-top-button .top .top-right {
display: flex;
align-items: center;
font-size: 14px;
cursor: pointer;
width: 53px;
/* background-color: red; */
margin-left: 82px;
}
.menu-with-top-button .top .top-right img {
/* margin-left: 96px; */
margin-right: 10px;
width: 14px;
height: 13px;
}
.menu-with-top-button ul {
padding-top: 12px;
padding-bottom: 12px;
width: 230px;
/* background-color:pink; */
}
.menu-with-top-button ul li {
height: 50px;
margin-left: 35px;
font-weight: 400;
font-size: 16px;
color: #313131;
line-height: 50px;
cursor: pointer;
/* background-color: red; */
text-indent: 32px;
}
.menu-with-top-button ul li.active {
width: 213px; width: 213px;
height: 50px; height: 50px;
background: #FF9F08; background: #FF9F08;
border-radius: 25px; border-radius: 25px;
color: white; color: white;
text-indent: 59px; text-indent: 59px;
} }
.topIcon{ .topIcon{
color: white; color: white;
margin-left: 68px; margin-left: 68px;
}
} }
@ -89,29 +197,3 @@
/* .menu-with-top-button .top-button {
width: 268px;
height: 56px;
background: #FFFBEF;
font-size: 18px;
color: #FFAF22;
}
.menu-with-top-button ul li:last-child {
margin-bottom: 0;
}
.menu-with-top-button ul li .menu-icon {
width: 30px;
height: 30px;
}
.menu-with-top-button ul li .menu-name {
padding-left: 5px;
} */

View File

@ -990,7 +990,9 @@ export default function Index() {
{/* <div style={{display:'flex'}}> */} {/* <div style={{display:'flex'}}> */}
{/* <div style={{height:1000,width:6,background:'red',marginRight:-6,zIndex:99}}></div> */} {/* <div style={{height:1000,width:6,background:'red',marginRight:-6,zIndex:99}}></div> */}
<div className="left" > <div className="left" >
<div style={{ height: '15px', width: '230px', background: 'white' }}></div> <div className='mediaBox' style={{
// height: '15px', width: '230px',
background: 'white' }}></div>
<MenuWithTopButton <MenuWithTopButton
button={projMenu.button} button={projMenu.button}
list={projMenu.list} list={projMenu.list}
@ -1219,8 +1221,10 @@ export default function Index() {
value={nowKeyword} value={nowKeyword}
onSearch={handleSearch} onSearch={handleSearch}
onChange={handleChange} onChange={handleChange}
className='searchInputmedia'
style={{ style={{
width: '200px', // maxWidth: '200px',
width: '170px',
height: '31px', height: '31px',
display: showSearchBox ? 'block' : 'none' display: showSearchBox ? 'block' : 'none'
}} }}
@ -1229,7 +1233,7 @@ export default function Index() {
<Select <Select
value={type} value={type}
allowClear allowClear
style={{ height: '31px', width: '130px', marginLeft: 20, display: showSearchBox ? 'block' : 'none' }} style={{ height: '31px', width: '110px', marginLeft: 20, display: showSearchBox ? 'block' : 'none' }}
onChange={(value: string) => { onChange={(value: string) => {
setType(value) setType(value)

View File

@ -1,4 +1,9 @@
@media (min-width: 1671px) { @media (min-width: 1671px) {
.mediaBox{
height: 15px;
width: 230px;
}
.index { .index {
height: 100vh; height: 100vh;
display: flex; display: flex;
@ -258,6 +263,10 @@
} }
@media (max-width: 1670px) { @media (max-width: 1670px) {
.mediaBox{
height: 15px;
width: 230px;
}
.index { .index {
height: 100vh; height: 100vh;
display: flex; display: flex;
@ -518,6 +527,10 @@
} }
@media (max-width: 1550px) { @media (max-width: 1550px) {
.mediaBox{
height: 15px;
width: 150px;
}
.index { .index {
height: 100vh; height: 100vh;
display: flex; display: flex;
@ -621,6 +634,8 @@
/* position: fixed; */ /* position: fixed; */
/* width: 267px; */ /* width: 267px; */
width: 230px; width: 230px;
/* 修改 */
width: 190px;
min-height: calc(100vh - 65px); min-height: calc(100vh - 65px);
/* overflow: auto; */ /* overflow: auto; */
/* top: 65px; */ /* top: 65px; */
@ -647,6 +662,9 @@
.belongPeopleMenu-box { .belongPeopleMenu-box {
min-height: 200px; min-height: 200px;
/* 修改 */
min-height: 160px;
/* background-color: pink; */ /* background-color: pink; */
border-bottom: 1px solid #fde9ab; border-bottom: 1px solid #fde9ab;
@ -656,6 +674,8 @@
.belongpeopleName { .belongpeopleName {
color: #313131; color: #313131;
width: 230px; width: 230px;
/* 修改 */
width: 190px;
height: 40px; height: 40px;
text-align: left; text-align: left;
font-size: 16px; font-size: 16px;
@ -675,10 +695,14 @@
.index .right { .index .right {
margin-left: 250px; margin-left: 250px;
/* 修改 */
margin-left: 210px;
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
position: fixed; position: fixed;
width: calc(100vw - 270px); width: calc(100vw - 270px);
/* 修改 */
width: calc(100vw - 230px);
/* width: 1575px; */ /* width: 1575px; */
} }