Remove refresh for web

This commit is contained in:
saplf
2019-09-08 15:27:04 +08:00
parent 130845d133
commit b65b7c611e
2 changed files with 4 additions and 0 deletions

View File

@@ -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}

View File

@@ -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}