feat: 首页样式
This commit is contained in:
parent
581c7d8532
commit
a0b212a5a5
@ -183,18 +183,24 @@ $theme-color: #06CD31;
|
||||
// 猜你喜欢
|
||||
.recommendation {
|
||||
.product-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 30rpx;
|
||||
column-count: 2;
|
||||
column-gap: 30rpx;
|
||||
.product-item {
|
||||
background: $white;
|
||||
padding: 8rpx;
|
||||
border-radius: 16rpx;
|
||||
break-inside: avoid;
|
||||
margin-bottom: 30rpx;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
.item-image {
|
||||
width: 100%;
|
||||
height: 300rpx;
|
||||
height: auto;
|
||||
min-height: 200rpx;
|
||||
background: #bbb;
|
||||
border-radius: 16rpx;
|
||||
display: block;
|
||||
}
|
||||
.item-name {
|
||||
display: block;
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
<view class="recommendation home-page-block-gap">
|
||||
<view class="product-list">
|
||||
<view class="product-item" wx:for="{{recommendedProducts}}" wx:key="id" bindtap="onGoCommodity" data-id="{{item.id}}">
|
||||
<image class="item-image" src="{{item.image}}" />
|
||||
<image class="item-image" src="{{item.image}}" mode="widthFix" />
|
||||
<text class="item-name">{{item.name}}</text>
|
||||
<!-- <view class="item-tags" wx:if="{{item.tags}}">
|
||||
<text class="tag" wx:for="{{item.tags}}" wx:key="*this">{{item}}</text>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user