...
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user