From 3e4a30cf1f6e7bf1ec25c2b1c79a687c62c00c73 Mon Sep 17 00:00:00 2001 From: king <2229249788@qq.com> Date: Thu, 7 Sep 2023 10:19:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=BE=E7=A8=8B=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E5=92=8C=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/manage/courseAdmin/components/search.tsx | 13 ++++++++----- .../manage/courseAdmin/courseAdmin.module.scss | 8 ++++++-- src/pages/manage/courseAdmin/courseAdmin.tsx | 10 +++++----- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/pages/manage/courseAdmin/components/search.tsx b/src/pages/manage/courseAdmin/components/search.tsx index 43f9fd7..ca639ea 100644 --- a/src/pages/manage/courseAdmin/components/search.tsx +++ b/src/pages/manage/courseAdmin/components/search.tsx @@ -17,6 +17,7 @@ export const Search: FC = ({param, setParam}) => { const [show, setShow] = useState(false) const [deps, setDeps] = useState([]) const [depId, setDepId] = useState(param.dep_id) + const [title, setTitle] = useState(param.title) async function getDepList() { try { @@ -53,19 +54,21 @@ export const Search: FC = ({param, setParam}) => { <> - + setTitle(e.detail.value)} onConfirm={(e) => setParam({ ...param, title: e.detail.value, page: 1 - })}/> + })} + /> setShow(true)}> 筛选 @@ -99,7 +102,7 @@ export const Search: FC = ({param, setParam}) => { ) } - + setShow(false)}> 取消 diff --git a/src/pages/manage/courseAdmin/courseAdmin.module.scss b/src/pages/manage/courseAdmin/courseAdmin.module.scss index 2267ffa..de29a19 100644 --- a/src/pages/manage/courseAdmin/courseAdmin.module.scss +++ b/src/pages/manage/courseAdmin/courseAdmin.module.scss @@ -3,6 +3,9 @@ padding: 24rpx 30rpx; display: flex; justify-content: space-between; + position: sticky; + top: 0; + border-bottom: 1px solid #F5F8F7; } .searchInput { @@ -13,7 +16,6 @@ padding-left: 24rpx; background: #F5F8F7; border-radius: 32rpx; - color: #909795; overflow: hidden; } @@ -65,7 +67,7 @@ } .curList { - padding-bottom: 100px; + padding-bottom: calc(env(safe-area-inset-bottom) + 63rpx); } .add { @@ -83,4 +85,6 @@ display: flex; justify-content: space-between; padding: 30rpx; + align-items: center; + box-sizing: border-box; } diff --git a/src/pages/manage/courseAdmin/courseAdmin.tsx b/src/pages/manage/courseAdmin/courseAdmin.tsx index ad087dd..b21f706 100644 --- a/src/pages/manage/courseAdmin/courseAdmin.tsx +++ b/src/pages/manage/courseAdmin/courseAdmin.tsx @@ -151,15 +151,15 @@ const CourseAdmin: FC = () => { return ( - - + <> - + { data?.map((d, index) => addCurs(d.id)}> {batch && addCurs(d.id)}/>} @@ -182,13 +182,13 @@ const CourseAdmin: FC = () => { } { batch && - 全选 + 全选 setBatch(false)}>取消 batchChangDep(curs)}>分配部门{curs.length} } - + ) }