This commit is contained in:
张成
2026-02-12 10:06:50 +08:00
7 changed files with 11 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
"miniprogramRoot": "dist/", "miniprogramRoot": "dist/",
"projectname": "playBallTogether", "projectname": "playBallTogether",
"description": "playBallTogether", "description": "playBallTogether",
"appid": "wx815b533167eb7b53", "appid": "wx915ecf6c01bea4ec",
"setting": { "setting": {
"urlCheck": true, "urlCheck": true,
"es6": true, "es6": true,

View File

@@ -46,7 +46,7 @@ const ListCard: React.FC<ListCardProps> = ({
className="image" className="image"
mode="aspectFill" mode="aspectFill"
lazyLoad lazyLoad
defaultSource={`${OSS_BASE}/front/ball/images/publish-empty-card.svg`} defaultSource={`${OSS_BASE}/front/ball/images/publish-empty-card.png`}
/> />
); );
}; };

View File

@@ -7,7 +7,6 @@
.listLoadErrorImg { .listLoadErrorImg {
width: 154px; width: 154px;
height: 154px;
} }
.listLoadErrorText { .listLoadErrorText {

View File

@@ -51,7 +51,7 @@ export default {
ICON_LIST_LOAD_ERROR: require("@/static/list/icon-load-error.svg"), ICON_LIST_LOAD_ERROR: require("@/static/list/icon-load-error.svg"),
ICON_LIST_RELOAD: require("@/static/list/icon-reload.svg"), ICON_LIST_RELOAD: require("@/static/list/icon-reload.svg"),
ICON_LIST_EMPTY: require("@/static/emptyStatus/publish-empty.png"), 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_SEARCH: require("@/static/search/icon-search.svg"),
ICON_LIST_SEARCH_BACK: require("@/static/search/icon-back.svg"), ICON_LIST_SEARCH_BACK: require("@/static/search/icon-back.svg"),
ICON_LIST_SEARCH_CLEAR: require("@/static/search/icon-search-clear.svg"), ICON_LIST_SEARCH_CLEAR: require("@/static/search/icon-search-clear.svg"),

View File

@@ -152,7 +152,9 @@ const ListContainer = (props) => {
// 插入 banner 卡片(在 bannerListIndex 位置插入,不替换数据) // 插入 banner 卡片(在 bannerListIndex 位置插入,不替换数据)
function insertBannerCard(list) { function insertBannerCard(list) {
if (!bannerListImage) return list; if (!bannerListImage) return list;
if (!list || !Array.isArray(list)) return list ?? []; if (!list || !Array.isArray(list)) {
list = [];
}
const idx = Number(bannerListIndex); const idx = Number(bannerListIndex);
return [ return [
...list.slice(0, idx), ...list.slice(0, idx),
@@ -231,10 +233,12 @@ const ListContainer = (props) => {
); );
}; };
const showNoData = isShowNoData && !loading && memoizedList?.length === 0;
// 渲染列表 // 渲染列表
const renderList = () => { const renderList = () => {
// 请求数据为空 // 请求数据为空
if (isShowNoData) { if (showNoData) {
return ( return (
<ListLoadError <ListLoadError
reload={reload} reload={reload}

View File

@@ -293,7 +293,7 @@ const OrderList = () => {
> >
<GeneralNavbar <GeneralNavbar
title="球局订单" title="球局订单"
backgroundColor="transparent" backgroundColor="#ffffff"
titleClassName={styles.titleClassName} titleClassName={styles.titleClassName}
className={styles.navbar} className={styles.navbar}
/> />

View File

@@ -500,6 +500,7 @@ const WalletPage: React.FC = () => {
{/* 顶部导航栏 */} {/* 顶部导航栏 */}
<GeneralNavbar <GeneralNavbar
title={pageTitle} title={pageTitle}
backgroundColor="#ffffff"
showBack={true} showBack={true}
showAvatar={false} showAvatar={false}
onBack={() => { onBack={() => {