From 99c8026f6118c8f963466414707f31a8b48d5348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=91=9E?= Date: Wed, 11 Feb 2026 23:13:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=97=B6=E5=85=81=E8=AE=B8=E5=B1=95=E7=A4=BAbanner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/container/listContainer/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/container/listContainer/index.tsx b/src/container/listContainer/index.tsx index e8f58e0..9e03c8f 100644 --- a/src/container/listContainer/index.tsx +++ b/src/container/listContainer/index.tsx @@ -138,7 +138,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), @@ -201,10 +203,12 @@ const ListContainer = (props) => { ); }; + const showNoData = isShowNoData && !loading && memoizedList?.length === 0; + // 渲染列表 const renderList = () => { // 请求数据为空 - if (isShowNoData) { + if (showNoData) { return ( Date: Wed, 11 Feb 2026 23:23:36 +0800 Subject: [PATCH 2/2] 1 --- project.config.json | 2 +- src/components/ListCard/index.tsx | 2 +- src/components/ListLoadError/index.module.scss | 1 - src/config/images.js | 2 +- src/order_pages/orderList/index.tsx | 2 +- src/user_pages/wallet/index.tsx | 1 + 6 files changed, 5 insertions(+), 5 deletions(-) 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/order_pages/orderList/index.tsx b/src/order_pages/orderList/index.tsx index 760cae5..53b98f6 100644 --- a/src/order_pages/orderList/index.tsx +++ b/src/order_pages/orderList/index.tsx @@ -293,7 +293,7 @@ const OrderList = () => { > 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 = () => { {/* 顶部导航栏 */} {