master #1

Open
gxwebsoft wants to merge 108 commits from developer/template-10584:master into master
2 changed files with 4 additions and 2 deletions
Showing only changes of commit fcbaa970d0 - Show all commits

View File

@@ -147,4 +147,6 @@ export interface ShopGoodsParam extends PageParam {
stock?: number;
keywords?: string;
recommend?: number;
// 0上架 1下架以实际后端约定为准
status?: number;
}

View File

@@ -166,8 +166,8 @@ function Home() {
const tab = tabs.find((t) => t.key === activeTabKey) || tabs[0]
if (!tab) return
pageShopGoods({ ...tab.params })
.then((res) => setGoodsList(res?.list || []))
pageShopGoods({ ...tab.params, status: 0 })
.then((res) => setGoodsList((res?.list || []).filter((g) => g?.status === 0)))
.catch((err) => {
console.error('首页商品列表加载失败:', err)
setGoodsList([])