|
|
|
@ -75,10 +75,6 @@ |
|
|
|
<view class="section-title"> |
|
|
|
<text class="title-icon">⚖</text> |
|
|
|
<text class="title-text">同类商品价格对比</text> |
|
|
|
<view class="filter-btn"> |
|
|
|
<text class="filter-text">筛选</text> |
|
|
|
<text class="filter-icon">☰</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="compare-list"> |
|
|
|
<view |
|
|
|
@ -108,6 +104,7 @@ |
|
|
|
<view class="price-comparison" wx:if="{{item.pricePercent}}"> |
|
|
|
<text class="price-trend-icon" style="color: {{item.priceDiff > 0 ? '#EF4444' : item.priceDiff < 0 ? '#10B981' : '#666666'}}">{{item.priceDiff > 0 ? '↑' : item.priceDiff < 0 ? '↓' : '→'}}</text> |
|
|
|
<text class="price-trend-text" style="color: {{item.priceDiff > 0 ? '#FF4D4F' : item.priceDiff < 0 ? '#10B981' : '#666666'}}">{{item.priceDiff > 0 ? '+' : ''}}{{item.pricePercent}}%</text> |
|
|
|
<text wx:if="{{item.priceDiff < 0}}" class="price-save" style="color: #10B981; margin-left: 8px;">省¥{{-item.priceDiff}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|