About page&home/estate change

This commit is contained in:
saplf
2019-09-08 15:23:46 +08:00
parent 3825948c05
commit 130845d133
15 changed files with 235 additions and 24 deletions

View File

@@ -20,7 +20,7 @@ const MinePage: React.FC<HomeMineModelState & DispatchProp> = ({
useEffect(() => {
if (!data || errorList) {
dispatch({ type: 'homeMine/loadList' });
dispatch({ type: 'homeMine/loadList', payload: false });
}
if (!info || errorBasic) {
dispatch({ type: 'homeMine/loadBasic' });
@@ -29,8 +29,7 @@ const MinePage: React.FC<HomeMineModelState & DispatchProp> = ({
const onRefresh = () => {
if (refreshingBasic || refreshingList) return;
dispatch({ type: 'homeMine/loadList', payload: true });
dispatch({ type: 'homeMine/loadBasic' });
dispatch({ type: 'homeMine/refresh' });
};
const renderBanner = (