营销:适配商城装修组件【广告魔方】

This commit is contained in:
owen
2023-11-12 19:29:24 +08:00
parent 63c831464d
commit 7adf5dd257
2 changed files with 4 additions and 4 deletions
@@ -3,10 +3,10 @@
<view v-for="(item, index) in data.list" :key="index">
<view
class="cube-img-wrap"
:style="[parseImgStyle(item), { margin: data.space + 'rpx' }]"
:style="[parseImgStyle(item), { margin: data.space + 'px' }]"
@tap="sheep.$router.go(item.url)"
>
<image class="cube-img" :src="sheep.$url.cdn(item.src)" mode="aspectFill"></image>
<image class="cube-img" :src="sheep.$url.cdn(item.imgUrl)" mode="aspectFill"></image>
</view>
</view>
</view>
@@ -49,7 +49,7 @@
const cell = computed(() => {
return (
(windowWidth -
(props.styles.marginLeft + props.styles.marginRight + props.styles.padding * 2)) /
((props.styles.marginLeft || 0) + (props.styles.marginRight || 0) + (props.styles.padding || 0) * 2)) /
4
);
});