修改公告公示页面

This commit is contained in:
linxd
2025-07-08 08:45:45 +08:00
parent 87fddbbbbc
commit 4fd58b5fb9
4 changed files with 38 additions and 6 deletions

View File

@ -22,7 +22,7 @@ body,
box-sizing: border-box;
margin-top: 57px;
// height: calc(100% - 60px);
overflow: auto;
// overflow: auto;
// padding: 15px 0;
background: rgba(@gray, 0.3);
.layout-content-main {

View File

@ -42,6 +42,7 @@
background-color: rgb(0,51,94);
color: #fff;
padding: 10px 0;
margin-top: 60px;
.footer-content {
width: @width;
margin: 0 auto;

View File

@ -73,6 +73,7 @@
.search{
border: 1px solid rgba(@main-text-color-2, 0.1);
padding: 20px;
margin-bottom: 12px;
}
}
/* 覆盖antd样式 - 仅在announceContainer内生效 */
@ -168,10 +169,20 @@
}
.announceList {
background-color: #fff;
padding: 10px;
display: flex;
gap: 20px;
}
.supplierService{
border: 1px solid rgba(@main-text-color-2, 0.1);
padding: 20px;
margin-top: 12px;
margin-bottom: 20px;
width: 300px;
.supplierServiceTitle{
font-size: 16px;
font-weight: 500;
}
}
.listItem {
// border-bottom: 1px solid #f0f0f0;
}

View File

@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { List, Tag } from 'antd';
import { Button, List, Tag } from 'antd';
import { history } from 'umi';
import styles from './announce.less';
import Search, { SearchFormData } from './Search';
@ -118,6 +118,7 @@ const AnnouncePage: React.FC = () => {
{/* 公告列表部分 */}
<div className={styles.announceList}>
<List
style={{ flex: 1 }}
itemLayout="horizontal"
dataSource={mockAnnounceData}
pagination={{
@ -130,7 +131,7 @@ const AnnouncePage: React.FC = () => {
showQuickJumper: true,
}}
renderItem={(item) => (
<List.Item key={item.id} className={styles.listItem} style={{borderBottom: 'none'}}>
<List.Item key={item.id} className={styles.listItem} style={{ borderBottom: 'none' }}>
<div className={styles.itemContent}>
<div className={styles.itemHeader}>
<Tag color={getTypeColor(item.type)} className={styles.typeTag}>
@ -164,6 +165,25 @@ const AnnouncePage: React.FC = () => {
</List.Item>
)}
/>
<div>
<div className={styles.supplierService}>
<div className={styles.supplierServiceTitle}></div>
<img src="" alt="" />
<Button className={styles.downloadCenter}></Button>
<ul>
<li>
<i></i>
<span></span>
</li>
</ul>
<Button></Button>
<div>
.
</div>
</div>
</div>
</div>
</div>
</div>