From 38ae0aaf44424fc2aacd665a7ddaf96eca59659b Mon Sep 17 00:00:00 2001 From: luo <17530855@qq.com> Date: Fri, 2 Feb 2024 09:35:16 +0800 Subject: [PATCH] 新版商品分组组件自动加载优化 --- pages/index/index/index.js | 5 ++++- pages/template/index.js | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/index/index/index.js b/pages/index/index/index.js index bb83666..5cf394d 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -389,7 +389,7 @@ Page({ console.log('....................'); }, - //获取商品模块实例 + //获取商品模块实例 newGoodsGroup() { let arr = [] if (this.data.template_arr.length == 0) { @@ -399,6 +399,9 @@ Page({ if (item.ename == 'goodsGroup') { arr.push(`goodsGroup${index}`) } + if (item.ename == 'goodsGroupNew') { + arr.push(`goodsGroup${index}`) + } }) if (arr.length > 0) { this.setData({ diff --git a/pages/template/index.js b/pages/template/index.js index 1c34fb9..b59c8de 100644 --- a/pages/template/index.js +++ b/pages/template/index.js @@ -92,6 +92,9 @@ Page({ if (item.ename == 'goodsGroup') { arr.push(`goodsGroup${index}`) } + if (item.ename == 'goodsGroupNew') { + arr.push(`goodsGroup${index}`) + } }) if (arr.length > 0) { this.setData({ -- libgit2 0.21.4