搜索页翻页距离底部的距离

This commit is contained in:
caishi 2021-12-03 10:47:47 +08:00
parent a1cc59e89b
commit 758600e4d0
2 changed files with 6 additions and 85 deletions

View File

@ -17,7 +17,6 @@ import './header.scss';
import NoticeContent from './NoticeContent'; import NoticeContent from './NoticeContent';
import MainLogo from './img/logo.png'; import MainLogo from './img/logo.png';
// TODO 这部分脚本从公共脚本中直接调用 // TODO 这部分脚本从公共脚本中直接调用
let old_url;
window._header_componentHandler = null; window._header_componentHandler = null;
// 非trustie链接则新开页跳转 // 非trustie链接则新开页跳转
@ -279,82 +278,6 @@ class NewHeader extends Component {
settings, settings,
visible, visible,
} = this.state; } = this.state;
/*用户名称 用户头像url*/
// let activeIndex = false;
// let activeForums = false;
// let activeShixuns = false;
// let activePaths = false;
// let coursestype = false;
// let activePackages = false;
// let activeMoopCases = false;
// let activeCompetitions = false;
// if (match.path === '/forums') {
// activeForums = true;
// } else if (match.path.startsWith('/shixuns')) {
// activeShixuns = true;
// } else if (match.path.startsWith('/paths')) {
// activePaths = true;
// } else if (match.path.startsWith('/courses')) {
// coursestype = true;
// } else if (match.path.startsWith('/crowdsourcing')) {
// activePackages = true;
// } else if (match.path.startsWith('/moop_cases')) {
// activeMoopCases = true;
// } else if (match.path.startsWith('/competitions')) {
// activeCompetitions = true;
// } else {
// activeIndex = true;
// }
// let headtypes = '/';
// if (settings) {
// if (settings.navbar) {
// if (settings.navbar.length > 0) {
// if (match.path === '/') {
// if (headtypesonClickbool === false) {
// headtypes = undefined;
// } else {
// headtypes = headtypess;
// }
// } else {
// for (var i = 0; i < settings.navbar.length; i++) {
// if (match.path === settings.navbar[i].link) {
// headtypes = settings.navbar[i].link;
// break;
// }
// }
// }
// }
// }
// }
// let shixuntype = false;
// let pathstype = false;
// let coursestypes = false;
// if (this.props && this.props.mygetHelmetapi != null) {
// let shixun = "/shixuns";
// let paths = "/paths";
// let courses = "/courses";
// this.props.mygetHelmetapi && this.props.mygetHelmetapi.navbar && this.props.mygetHelmetapi.navbar.map((item, key) => {
// var reg = RegExp(item.link);
// if (shixun.match(reg)) {
// if (item.hidden === true) {
// shixuntype = true
// }
// }
// if (paths.match(reg)) {
// if (item.hidden === true) {
// pathstype = true
// }
// }
// if (courses.match(reg)) {
// if (item.hidden === true) {
// coursestypes = true
// }
// }
// })
// }
let search_url = settings && settings.common && settings.common.search; let search_url = settings && settings.common && settings.common.search;
return ( return (
<div className={publicNav ? `newHeaders publicNav`:`newHeaders`} id="nHeader"> <div className={publicNav ? `newHeaders publicNav`:`newHeaders`} id="nHeader">
@ -447,7 +370,6 @@ class NewHeader extends Component {
> >
<Link to={"/settings/notice"} className="message-icon"> <Link to={"/settings/notice"} className="message-icon">
{current_user && <Badge count={current_user.message_unread_total}> {current_user && <Badge count={current_user.message_unread_total}>
{/* <i className="iconfont icon-xiaoxilingdang ml15 mr15"></i> */}
<img src={require(`./img/ring.png`)} alt="" width="16px" className="ml15 mr15"/> <img src={require(`./img/ring.png`)} alt="" width="16px" className="ml15 mr15"/>
</Badge>} </Badge>}
</Link> </Link>

View File

@ -139,7 +139,6 @@ const GlobalSearch = ({ location, showNotification, history }) => {
</Row> </Row>
</div> </div>
<Tabs defaultActiveKey="1" onChange={changeTab}> <Tabs defaultActiveKey="1" onChange={changeTab}>
<TabPane tab={`项目(${totalType1}`} key={1}> <TabPane tab={`项目(${totalType1}`} key={1}>
<div className="search-content"> <div className="search-content">
@ -150,13 +149,13 @@ const GlobalSearch = ({ location, showNotification, history }) => {
</div> </div>
{ {
dataList.length ? dataList.length ?
<Pagination <div className="pb20"><Pagination
showQuickJumper={dataList.length > size} showQuickJumper={dataList.length > size}
onChange={(page) => { setPage(page) }} onChange={(page) => { setPage(page) }}
current={page} current={page}
total={total} total={total}
showTotal={total => `${total}`} showTotal={total => `${total}`}
/> /></div>
: <Nodata _html="暂无数据" className="no-data-box" /> : <Nodata _html="暂无数据" className="no-data-box" />
} }
</TabPane> </TabPane>
@ -170,13 +169,13 @@ const GlobalSearch = ({ location, showNotification, history }) => {
</div> </div>
{ {
dataList.length ? dataList.length ?
<Pagination <div className="pb20"><Pagination
showQuickJumper={dataList.length > size} showQuickJumper={dataList.length > size}
onChange={(page) => { setPage(page) }} onChange={(page) => { setPage(page) }}
current={page} current={page}
total={total} total={total}
showTotal={total => `${total}`} showTotal={total => `${total}`}
/> : <Nodata _html="暂无数据" /> /></div> : <Nodata _html="" />
} }
</TabPane> </TabPane>
@ -227,13 +226,13 @@ const GlobalSearch = ({ location, showNotification, history }) => {
</div> </div>
{ {
dataList.length ? dataList.length ?
<Pagination <div className="pb20"><Pagination
showQuickJumper={dataList.length > size} showQuickJumper={dataList.length > size}
onChange={(page) => { setPage(page) }} onChange={(page) => { setPage(page) }}
current={page} current={page}
total={total} total={total}
showTotal={total => `${total}`} showTotal={total => `${total}`}
/> : <Nodata _html="暂无数据" /> /></div> : <Nodata _html="" />
} }
</TabPane> </TabPane>
</Tabs> </Tabs>