|
@@ -78,8 +78,12 @@ Component({
|
|
|
let image = value.attinfos.find(v => v.fileType == "image");
|
|
let image = value.attinfos.find(v => v.fileType == "image");
|
|
|
value.cover = image ? image.cover : "";
|
|
value.cover = image ? image.cover : "";
|
|
|
}
|
|
}
|
|
|
- // value.className = value.itemclass.length == 0 ? "暂无类目" : value.itemclass.map(v => v.itemclassname);
|
|
|
|
|
- // value.brandName = value.brand.length == 0 ? "暂无品牌" : value.brand.map(v => v.brandname);
|
|
|
|
|
|
|
+ value.className = [];
|
|
|
|
|
+ value.brandName = [];
|
|
|
|
|
+ if (value.temclass.length != 0) value.temclass.forEach(v => {
|
|
|
|
|
+ if (v.brandname != "") value.brandName.push(v.brandname);
|
|
|
|
|
+ if (v.itemclassname != "") value.className.push(v.itemclassname);
|
|
|
|
|
+ })
|
|
|
return value;
|
|
return value;
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|