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} } - + ) }