Remove refresh for web
This commit is contained in:
@@ -8,6 +8,7 @@ import Label from '@/components/Label';
|
|||||||
import List from '@/components/List';
|
import List from '@/components/List';
|
||||||
|
|
||||||
import styles from './style.less';
|
import styles from './style.less';
|
||||||
|
import { isApp } from '@/utils/h5plus';
|
||||||
|
|
||||||
const FundPage: React.FC<HomeFundModelState & DispatchProp> = ({
|
const FundPage: React.FC<HomeFundModelState & DispatchProp> = ({
|
||||||
dispatch,
|
dispatch,
|
||||||
@@ -102,6 +103,7 @@ const FundPage: React.FC<HomeFundModelState & DispatchProp> = ({
|
|||||||
onRefresh={onRefresh}
|
onRefresh={onRefresh}
|
||||||
loading={loadingList}
|
loading={loadingList}
|
||||||
enableLoading={!loadingFinished}
|
enableLoading={!loadingFinished}
|
||||||
|
enableRefresh={!isApp()}
|
||||||
onLoadMore={() => dispatch({ type: 'homeFund/loadList' })}
|
onLoadMore={() => dispatch({ type: 'homeFund/loadList' })}
|
||||||
itemKey={data => data.id}
|
itemKey={data => data.id}
|
||||||
itemSize={80}
|
itemSize={80}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import { dispatch } from '@/utils/utils';
|
|||||||
|
|
||||||
import styles from './style.less';
|
import styles from './style.less';
|
||||||
import { displayPhone } from '@/utils/transform';
|
import { displayPhone } from '@/utils/transform';
|
||||||
|
import { isApp } from '@/utils/h5plus';
|
||||||
|
|
||||||
const CommunityPage: React.FC<HomeCommunityModelState & DispatchProp> = ({
|
const CommunityPage: React.FC<HomeCommunityModelState & DispatchProp> = ({
|
||||||
dispatch,
|
dispatch,
|
||||||
@@ -106,6 +107,7 @@ const CommunityPage: React.FC<HomeCommunityModelState & DispatchProp> = ({
|
|||||||
onRefresh={onRefresh}
|
onRefresh={onRefresh}
|
||||||
loading={loadingList}
|
loading={loadingList}
|
||||||
enableLoading={!loadingFinished}
|
enableLoading={!loadingFinished}
|
||||||
|
enableRefresh={!isApp()}
|
||||||
onLoadMore={() => dispatch({ type: 'homeCommunity/loadList' })}
|
onLoadMore={() => dispatch({ type: 'homeCommunity/loadList' })}
|
||||||
itemKey={data => data.id}
|
itemKey={data => data.id}
|
||||||
itemSize={60}
|
itemSize={60}
|
||||||
|
|||||||
Reference in New Issue
Block a user