|
|
|
@ -154,13 +154,13 @@ |
|
|
|
</view> |
|
|
|
<view class="shop-content-bottom"> |
|
|
|
<view class="shop-deal"> |
|
|
|
<text v-if="hasStartingPrice(item)"> |
|
|
|
<text class="deal-start" v-if="hasStartingPrice(item)"> |
|
|
|
{{formatAmountText(item.startingPrice)}}元起送 |
|
|
|
</text> |
|
|
|
<text v-else-if="item.subtitle != null"> |
|
|
|
<text v-if="hasShopSubtitle(item)"> |
|
|
|
{{item.subtitle}} |
|
|
|
</text> |
|
|
|
<text v-else>{{item._groupTip}}</text> |
|
|
|
<text v-else-if="!hasStartingPrice(item)">{{item._groupTip}}</text> |
|
|
|
</view> |
|
|
|
<view class="shop-deal1"> |
|
|
|
已售{{item.saleCount != null ? item.saleCount : 0}} |
|
|
|
@ -807,6 +807,9 @@ |
|
|
|
const amount = item ? parseFloat(item.startingPrice) : 0 |
|
|
|
return !isNaN(amount) && amount > 0 |
|
|
|
}, |
|
|
|
hasShopSubtitle(item) { |
|
|
|
return !!(item && item.subtitle != null && String(item.subtitle).trim() !== '') |
|
|
|
}, |
|
|
|
hasOpenKitchenVideo(item) { |
|
|
|
return !!(item && item.openKitchenVideoUrl && String(item.openKitchenVideoUrl).trim()) |
|
|
|
}, |
|
|
|
@ -1849,6 +1852,10 @@ |
|
|
|
.shop-deal { |
|
|
|
flex: 1; |
|
|
|
min-width: 0; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
gap: 8rpx; |
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
text { |
|
|
|
display: inline-block; |
|
|
|
@ -1862,6 +1869,13 @@ |
|
|
|
overflow: hidden; |
|
|
|
text-overflow: ellipsis; |
|
|
|
white-space: nowrap; |
|
|
|
min-width: 0; |
|
|
|
} |
|
|
|
|
|
|
|
.deal-start { |
|
|
|
flex-shrink: 0; |
|
|
|
background: rgba(255, 111, 44, 0.12); |
|
|
|
color: #ff6f2c; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|