Fix:4070 【商城小程序】模版显示效果与预览图效果存在位置偏差

This commit is contained in:
LinCyJang
2025-07-29 22:42:12 +08:00
parent db9dba4df8
commit a99c9afaf1
@@ -22,8 +22,8 @@
<view class="cover-item" >
<view class="img-wrap" :class="currentIndex === index ? 'v12-mt-10' : 'v12-mt-18'">
<view class="pro-img-wrap " :style="{
left: (item.productImageX || 0) + 'px',
top: (item.productImageY || -40) + 'px'
left: (item.productImageX || 0) * 2 + 'rpx',
top: (item.productImageY || -40) * 2 + 'rpx'
}">
<image :src="product.image" class="pro-cover-image" mode="widthFix|heightFix" />
</view>