From d78a23602e2b291b558b2da08019dc14b94e8366 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Thu, 16 Jul 2026 15:31:07 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E5=88=A0=E9=99=A4=E4=B8=B4?= =?UTF-8?q?=E6=97=B6=E6=B5=8B=E8=AF=95=E7=BD=91=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local.config.js | 10 +++++++++- components-diy/diy-category.vue | 12 ++++++------ pages.json | 12 ------------ 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/.local.config.js b/.local.config.js index 5590cd8..54f0be4 100644 --- a/.local.config.js +++ b/.local.config.js @@ -123,10 +123,18 @@ const localDevConfig = ({ uniacid: 2821, domain: 'https://xcx.aigc-quickapp.com/', }, + '18': { // 测试平台 + uniacid: 18, + domain: 'https://test.aigc-quickapp.com', + }, + '2': { // 测试平台 + uniacid: 2, + domain: 'https://test.aigc-quickapp.com', + }, // })['5g-237']; // 商品分类,没有立即咨询文字 // })['5g-97']; // 大宗商品贸易,支持自定义字体大小、颜色 // })['5g-50']; // 燃气安全产品机器人,购物车无反应 -})['2821']; // 离型纸硅油纸 +})['2']; // 离型纸硅油纸 // })['2485']; // 验证电子表单前后端数据一致性 // })['5g-11']; // 数码 // })['5g-213']; // 选择要使用的环境配置 diff --git a/components-diy/diy-category.vue b/components-diy/diy-category.vue index e85b231..cbffec6 100644 --- a/components-diy/diy-category.vue +++ b/components-diy/diy-category.vue @@ -346,7 +346,7 @@ export default { }) .exec(); this.heightArea = heightArea; - if (index != -1 && index < this.categoryTree.length - 1) this.$refs.categoryItem[index + 1].getGoodsList(); + if (index != -1 && index < this.categoryTree.length - 1 && Array.isArray(this.$refs.categoryItem) && this.$refs.categoryItem[index + 1]) this.$refs.categoryItem[index + 1].getGoodsList(); }, /** * 获取全部分类 @@ -477,10 +477,10 @@ export default { break; } } - if (this.value.template != 1 && this.value.loadType == 'all' && this.heightArea[this.select][1] - - scrollTop - contentWrapHeight < 300) { - this.$refs.categoryItem[this.select].getGoodsList(); - } + if (this.value.template != 1 && this.value.loadType == 'all' && this.heightArea[this.select][1] - + scrollTop - contentWrapHeight < 300) { + if (Array.isArray(this.$refs.categoryItem) && this.$refs.categoryItem[this.select]) this.$refs.categoryItem[this.select].getGoodsList(); + } } }, onRefresh() { @@ -633,7 +633,7 @@ export default { }, // 操作多规格商品弹框后,刷新商品数据 refreshData() { - this.$refs.categoryItem[this.select].loadGoodsCartNum(true); + if (Array.isArray(this.$refs.categoryItem) && this.$refs.categoryItem[this.select]) this.$refs.categoryItem[this.select].loadGoodsCartNum(true); }, changeListStyle() { this.isList = !this.isList; diff --git a/pages.json b/pages.json index 6276820..90ea173 100644 --- a/pages.json +++ b/pages.json @@ -150,18 +150,6 @@ } } }, - { - // 分类模板99测试页面 - "path": "category-test99", - "style": { - "disableScroll": true, - "navigationBarTitleText": "分类模板99", - "componentPlaceholder": { - "diy-category": "view", - "diy-category-item": "view" - } - } - }, { "path": "cart", "style": {