123456789101112131415161718192021222324252627282930313233343536373839404142 |
- // export default (paginationUtil = (
- // // action Object
- // action,
- // // reducer String
- // reducer,
- // // 请求Service
- // authService,
- // yieldPut,
- // yieldCall,
- // createAction
- // ) => {
- // let foot = 0,
- // search = {};
- // if (action.payload.forUse !== "slipOn") {
- // yieldPut(
- // createAction(reducer)({
- // isRefreshing: true
- // })
- // );
- // } else {
- // yieldPut(
- // createAction(reducer)({
- // showFoot: 2
- // })
- // );
- // }
- // search = { ...action.payload.pageInfo, ...action.payload.searchInfo };
- // const hotdata = yieldCall(() => authService(search));
- // if (hotdata && hotdata.data) {
- // if (action.payload.pageInfo.page >= hotdata.data.totalPages) {
- // foot = 1;
- // }
- // yieldPut(
- // createAction(reducer)({
- // castData: action.payload.castData.concat(hotdata.data.content),
- // totalPages: hotdata.data.totalPages,
- // isRefreshing: false,
- // showFoot: foot
- // })
- // );
- // }
- // });
|