From 660ab27377fef7dd4294c53dfdc0e2599f34dbc4 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Thu, 16 Jul 2026 16:11:01 +0800 Subject: [PATCH] =?UTF-8?q?chore=20:=E6=8C=89=E9=92=AE=20=3D=20=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E6=89=80=E6=9C=89=E6=9C=89=E5=95=86=E5=93=81=E7=9A=84?= =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E5=88=86=E7=B1=BB=EF=BC=88=E5=8E=BB=E9=87=8D?= =?UTF-8?q?=EF=BC=8C=E4=B8=80=E7=9B=B4=E6=98=BE=E7=A4=BA=EF=BC=89=EF=BC=8C?= =?UTF-8?q?=E9=80=89=E4=B8=AD=E7=8A=B6=E6=80=81=E5=88=87=E6=8D=A2=E4=B8=80?= =?UTF-8?q?=E7=BA=A7=E5=88=86=E7=B1=BB=E6=97=B6=E4=BF=9D=E6=8C=81=20?= =?UTF-8?q?=E5=95=86=E5=93=81=20=3D=20=E5=88=87=E6=8D=A2=E4=B8=80=E7=BA=A7?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=97=B6=EF=BC=8C=E7=94=A8=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E5=90=8D=E7=A7=B0=E5=9C=A8=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E4=B8=80=E7=BA=A7=E5=88=86=E7=B1=BB=E4=B8=8B=E6=89=BE?= =?UTF-8?q?=E5=90=8C=E5=90=8D=20category=EF=BC=8C=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local.config.js | 6 +++++- components-diy/diy-category-item.vue | 10 +++++----- components-diy/diy-category.vue | 4 ++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.local.config.js b/.local.config.js index 54f0be4..b24c4a0 100644 --- a/.local.config.js +++ b/.local.config.js @@ -131,10 +131,14 @@ const localDevConfig = ({ uniacid: 2, domain: 'https://test.aigc-quickapp.com', }, + '48': { // 测试平台 + uniacid: 48, + domain: 'https://test.aigc-quickapp.com', + }, // })['5g-237']; // 商品分类,没有立即咨询文字 // })['5g-97']; // 大宗商品贸易,支持自定义字体大小、颜色 // })['5g-50']; // 燃气安全产品机器人,购物车无反应 -})['2']; // 离型纸硅油纸 +})['48']; // 离型纸硅油纸 // })['2485']; // 验证电子表单前后端数据一致性 // })['5g-11']; // 数码 // })['5g-213']; // 选择要使用的环境配置 diff --git a/components-diy/diy-category-item.vue b/components-diy/diy-category-item.vue index bf600cc..9c6e419 100644 --- a/components-diy/diy-category-item.vue +++ b/components-diy/diy-category-item.vue @@ -5,7 +5,7 @@ - + 0) { + if (this.value.template == 99 && this.index == this.select && this.category.child_list && this.category.child_list.length > 0) { let targetCategory = null; if (this.lastSecondCategoryName) { targetCategory = this.category.child_list.find(item => item.category_name === this.lastSecondCategoryName); @@ -395,7 +395,7 @@ export default { if (data) this.contentWrapHeight = data.height; }).exec(); }, 1000); - if (this.value.template == 99 && parseInt(this.value.level) == 2 && this.category.child_list && this.category.child_list.length > 0) { + if (this.value.template == 99 && this.category.child_list && this.category.child_list.length > 0) { let targetCategory = null; if (this.lastSecondCategoryName) { targetCategory = this.category.child_list.find(item => item.category_name === this.lastSecondCategoryName); @@ -435,7 +435,7 @@ export default { } else if (this.loadType == 'part') { this.scrollTop = -1; } - if (this.value.template == 99 && parseInt(this.value.level) == 2 && this.category.child_list && this.category.child_list.length > 0) { + if (this.value.template == 99 && this.category.child_list && this.category.child_list.length > 0) { let targetCategory = null; if (this.lastSecondCategoryName) { targetCategory = this.category.child_list.find(item => item.category_name === this.lastSecondCategoryName); @@ -451,7 +451,7 @@ export default { // 切换一级分类时, 根据当前一级分类下同名二级分类重新加载商品 currentOneCategory: { handler() { - if (this.value.template == 99 && parseInt(this.value.level) == 2) { + if (this.value.template == 99) { this.refreshGoodsByCurrentCategory(); } }, diff --git a/components-diy/diy-category.vue b/components-diy/diy-category.vue index cbffec6..a7186e6 100644 --- a/components-diy/diy-category.vue +++ b/components-diy/diy-category.vue @@ -93,7 +93,7 @@ -