diff --git a/project.config.json b/project.config.json index 15d90c1..839e034 100644 --- a/project.config.json +++ b/project.config.json @@ -2,7 +2,7 @@ "miniprogramRoot": "dist/", "projectname": "playBallTogether", "description": "playBallTogether", - "appid": "wx815b533167eb7b53", + "appid": "wx915ecf6c01bea4ec", "setting": { "urlCheck": true, "es6": true, diff --git a/src/components/ListCard/index.tsx b/src/components/ListCard/index.tsx index 5f5eb27..7a8754d 100644 --- a/src/components/ListCard/index.tsx +++ b/src/components/ListCard/index.tsx @@ -46,7 +46,7 @@ const ListCard: React.FC = ({ className="image" mode="aspectFill" lazyLoad - defaultSource={`${OSS_BASE}/front/ball/images/publish-empty-card.svg`} + defaultSource={`${OSS_BASE}/front/ball/images/publish-empty-card.png`} /> ); }; diff --git a/src/components/ListLoadError/index.module.scss b/src/components/ListLoadError/index.module.scss index 1804db8..45fc813 100644 --- a/src/components/ListLoadError/index.module.scss +++ b/src/components/ListLoadError/index.module.scss @@ -7,7 +7,6 @@ .listLoadErrorImg { width: 154px; - height: 154px; } .listLoadErrorText { diff --git a/src/config/images.js b/src/config/images.js index af407b3..6589000 100644 --- a/src/config/images.js +++ b/src/config/images.js @@ -51,7 +51,7 @@ export default { ICON_LIST_LOAD_ERROR: require("@/static/list/icon-load-error.svg"), ICON_LIST_RELOAD: require("@/static/list/icon-reload.svg"), ICON_LIST_EMPTY: require("@/static/emptyStatus/publish-empty.png"), - ICON_LIST_EMPTY_CARD: `${OSS_BASE}/front/ball/images/publish-empty-card.svg`, + ICON_LIST_EMPTY_CARD: `${OSS_BASE}/front/ball/images/publish-empty-card.png`, ICON_LIST_SEARCH_SEARCH: require("@/static/search/icon-search.svg"), ICON_LIST_SEARCH_BACK: require("@/static/search/icon-back.svg"), ICON_LIST_SEARCH_CLEAR: require("@/static/search/icon-search-clear.svg"), diff --git a/src/container/listContainer/index.tsx b/src/container/listContainer/index.tsx index 0c90998..4b26890 100644 --- a/src/container/listContainer/index.tsx +++ b/src/container/listContainer/index.tsx @@ -152,7 +152,9 @@ const ListContainer = (props) => { // 插入 banner 卡片(在 bannerListIndex 位置插入,不替换数据) function insertBannerCard(list) { if (!bannerListImage) return list; - if (!list || !Array.isArray(list)) return list ?? []; + if (!list || !Array.isArray(list)) { + list = []; + } const idx = Number(bannerListIndex); return [ ...list.slice(0, idx), @@ -231,10 +233,12 @@ const ListContainer = (props) => { ); }; + const showNoData = isShowNoData && !loading && memoizedList?.length === 0; + // 渲染列表 const renderList = () => { // 请求数据为空 - if (isShowNoData) { + if (showNoData) { return ( { > diff --git a/src/user_pages/wallet/index.tsx b/src/user_pages/wallet/index.tsx index 46f4c0a..d7d3066 100644 --- a/src/user_pages/wallet/index.tsx +++ b/src/user_pages/wallet/index.tsx @@ -500,6 +500,7 @@ const WalletPage: React.FC = () => { {/* 顶部导航栏 */} {