sync:获取商品图片实时高度判断条件修改 4ac6f6c0d3
parent
b62f2ccd21
commit
5dfa496998
|
@ -683,7 +683,7 @@
|
||||||
const goodsPriceCard = data[0];
|
const goodsPriceCard = data[0];
|
||||||
defaultImgWidth.value = data[0].width;
|
defaultImgWidth.value = data[0].width;
|
||||||
|
|
||||||
if (props.data.image_wh) {
|
if (props.data.image_wh && Number(props.data.image_wh.w)) {
|
||||||
totalHeight =
|
totalHeight =
|
||||||
(goodsPriceCard.width / props.data.image_wh.w) * props.data.image_wh.h +
|
(goodsPriceCard.width / props.data.image_wh.w) * props.data.image_wh.h +
|
||||||
goodsPriceCard.height;
|
goodsPriceCard.height;
|
||||||
|
|
Loading…
Reference in New Issue