@@ -144,6 +144,13 @@ class GoodsService extends CrudService {
d.text = text;
d.tag = tag;
d.list = aboutList;
+ if (d.type === '2') {
+ // 处理赠品与规格的显示问题
+ for (const i of d.list) {
+ const spec = data.specs.find(f => f._id === i.spec);
+ if (spec) i.spec_name = _.get(spec, 'name');
+ }
}
data.act = _.uniqBy(data.act, '_id');
return data;