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 @@ -