Refactor(首页):改版重构-接口对接

This commit is contained in:
lifizer
2024-07-31 21:38:49 +08:00
parent b9c3ff756c
commit 46b4f05a6b
5 changed files with 110 additions and 21 deletions
+9 -8
View File
@@ -11,7 +11,7 @@
class="mark-img"
/>
<image
v-if="item.isOldBrand"
v-if="item.isLandmarkGoods"
:src="webUrl + '/home/mark-land.png'"
class="mark-img"
/>
@@ -25,12 +25,12 @@
<view class="name more-t">
{{ item.storeName }}
</view>
<view class="desc">
{{ item.desc || '古法熬制·甄选原料' }}
<view v-if="item.bestContent" class="desc one-t">
{{ item.bestContent }}
</view>
<view class="coupon">
<view v-if="item.couponName" class="coupon">
<view class="tag"></view>
<view class="tag">5元无门槛</view>
<view class="tag">{{ item.couponName }}</view>
</view>
<view class="price-wrap">
<view class="price">
@@ -86,8 +86,8 @@ export default {
position: relative;
z-index: 2;
display: block;
width: 344rpx;
height: 344rpx;
width: 345rpx;
height: 345rpx;
border-radius: 20rpx;
}
.mark-img {
@@ -108,12 +108,13 @@ export default {
color: #333;
}
.desc {
padding: 10rpx 0;
padding: 10rpx 0 0 0;
color: #FFC543;
font-size: 24rpx;
}
.coupon {
display: flex;
padding: 10rpx 0 0 0;
.tag + .tag {
margin: 0 0 0 -1rpx;
}