This commit is contained in:
2024-03-17 14:50:20 +08:00
parent cfdc8d088c
commit 7f0f11cf14
6 changed files with 71 additions and 23 deletions

View File

@@ -7,10 +7,10 @@
</view>
</view>
<scroll-view class='goods-list' :scroll-y='true' type='custom'>
<grid-view type='masonry' :cross-axis-count='2'>
<scroll-view class='goods-list'>
<grid-view :cross-axis-count='2'>
<view v-for='(item, index) in goodsList' :key='index' class='goods-item'
@click.stop='goPath(`/pages/mall/subs/goods/goods-detail?goodsId=${item.goodsId}`)'>
@click.stop='goPath(`/pages/mall/subs/goods/detail?goodsId=${item.goodsId}`)'>
<image class='goods-image' :src='item.images' />
<text class='goods-name'>{{ item.goodsName }}</text>
<text class='goods-price'>¥{{ item.price }}</text>
@@ -72,6 +72,7 @@ const goodsList = ref<GoodsBean[]>([1, 2, 3, 4, 1, 2, 2, 2]);
flex-direction: column;
position: relative;
padding: 10rpx 10rpx;
background: #333333;
flex: 1;
.goods-image {