sync:获取商品图片实时高度判断条件修改 https://gitee.com/sheepjs/shopro-uniapp/commit/4ac6f6c0d3af55b73c49f1787565336c2c987c84
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user