zs 1 rok pred
rodič
commit
f0485691c1

+ 1 - 0
app/controller/view/config/.goods.js

@@ -23,5 +23,6 @@ module.exports = {
   },
   iatg: {
     service: 'indexActTagsGoods',
+    shop: 'shop',
   },
 };

+ 2 - 2
app/service/view/goods.js

@@ -384,9 +384,9 @@ class GoodsService extends CrudService {
     }
   }
 
-  async indexActTagsGoods() {
+  async indexActTagsGoods({ shop }) {
     // 将使用中且展示在首页的查出来排序
-    const list = await this.ctx.model.System.ActTags.find({ status: '0', show_index: '0' }).sort({ sort: 1 });
+    const list = await this.ctx.model.System.ActTags.find({ shop, status: '0', show_index: '0' }).sort({ sort: 1 });
     const result = [];
     for (const t of list) {
       const { label, value } = t;