From 3dc0cd34468115e124d63dd1b07e709275334e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Tue, 30 Dec 2025 15:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AD=9B=E9=80=89=E6=A1=86?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=EF=BC=9A=E5=B0=86=E7=BA=A2=E5=A3=B3=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E8=A4=90=E5=A3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 2 +- utils/api.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/index/index.js b/pages/index/index.js index a370986..494d08b 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -43,7 +43,7 @@ Page({ leftColumnGoods: [], rightColumnGoods: [], selectedCategory: '全部', - categories: ['全部', '粉壳', '红壳', '绿壳', '白壳'], + categories: ['全部', '粉壳', '褐壳', '绿壳', '白壳'], loadingMore: false, hasMoreData: true, page: 1, diff --git a/utils/api.js b/utils/api.js index 6037937..9088fc7 100644 --- a/utils/api.js +++ b/utils/api.js @@ -3925,12 +3925,12 @@ module.exports = { } else { // 如果接口不存在,返回默认分类 console.warn('获取分类接口未实现,返回默认分类'); - resolve(['全部', '粉壳', '红壳', '绿壳', '白壳']); + resolve(['全部', '粉壳', '褐壳', '绿壳', '白壳']); } }).catch(err => { console.error('获取商品分类列表失败:', err); // 失败时返回默认分类 - resolve(['全部', '粉壳', '红壳', '绿壳', '白壳']); + resolve(['全部', '粉壳', '褐壳', '绿壳', '白壳']); }); }); }