fix(ui): 统一服务页面标题结构和分页器显示
ServicesMine: - 修复Body内部双层page容器嵌套问题, 改为fragment, 与任务/岗位页面结构一致 - 标题区域位置现在和其他页面统一 分页器显示: - MyTasks/JobsMine/Talent: 分页器条件从 >pageSize 改为 >0, 有数据即显示 - 保持视觉统一, 空状态时不显示
This commit is contained in:
@@ -103,7 +103,7 @@ function OpcJobsBody() {
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
{currentData.length > pageSize && (
|
||||
{currentData.length > 0 && (
|
||||
<div className={pageStyles.pageFooter}>
|
||||
<Pagination
|
||||
current={page}
|
||||
|
||||
@@ -158,7 +158,7 @@ function OpcMyTasksBody() {
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
{currentData.length > pageSize && (
|
||||
{currentData.length > 0 && (
|
||||
<div className={pageStyles.pageFooter}>
|
||||
<Pagination
|
||||
current={page}
|
||||
|
||||
@@ -151,7 +151,7 @@ function OpcServicesBody() {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={`${pageStyles.page} opc-page`}>
|
||||
<>
|
||||
<OpcPageHeader
|
||||
title="服务"
|
||||
subtitle="我下单的 · 我收到的 · 我发布的服务"
|
||||
@@ -284,6 +284,6 @@ function OpcServicesBody() {
|
||||
</div>
|
||||
)}
|
||||
</Modal>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ function OpcTalentBody() {
|
||||
<div className={pageStyles.pageBody}>
|
||||
{tab === "profile" ? <ProfileEditor /> : tab === "home" ? <MyHomePane /> : <Conversations page={chatPage} pageSize={chatPageSize} onTotal={setChatTotal} />}
|
||||
</div>
|
||||
{tab === "chats" && chatTotal > chatPageSize && (
|
||||
{tab === "chats" && chatTotal > 0 && (
|
||||
<div className={pageStyles.pageFooter}>
|
||||
<Pagination
|
||||
current={chatPage}
|
||||
|
||||
Reference in New Issue
Block a user