feat(Sku): add sku item previewImgUrl (#4562)

This commit is contained in:
codpoe
2019-09-24 19:55:01 +08:00
committed by neverland
parent 55148936ff
commit ddfd034432
5 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function getSkuImg(sku: SkuData, selectedSku: SelectedSkuData): string | undefin
if (id && item.v) {
const matchedSku = item.v.filter(skuValue => skuValue.id === id)[0] || {};
img = matchedSku.imgUrl || matchedSku.img_url;
img = matchedSku.previewImgUrl || matchedSku.imgUrl || matchedSku.img_url;
return img;
}