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