Commit 4ab7123653d103e88982478381bd29d56734dcf3
1 parent
23728547
1. 分类风格3显示积分价格!!
Showing
1 changed file
with
6 additions
and
2 deletions
pages/goods/categoryList/categoryList.wxml
... | ... | @@ -411,9 +411,13 @@ |
411 | 411 | <view class="item-cont"> |
412 | 412 | <view class="title">{{item.goods_name}}</view> |
413 | 413 | <!-- 判断是否有活动价 --> |
414 | - <block wx:if="{{item.prom_price>0}}"> | |
414 | + <block wx:if="{{item.prom_price>0 || item.prom_integral}}"> | |
415 | 415 | <!-- 活动价 --> |
416 | - <view class="price">¥{{item.prom_price}}</view> | |
416 | + <view class="price"> | |
417 | + <text wx:if="{{item.prom_integral}}">{{item.prom_integral}}积分</text> | |
418 | + <text wx:if="{{item.prom_integral && item.prom_price}}">+</text> | |
419 | + <text wx:if="{{item.prom_price}}">¥{{item.prom_price}}</text> | |
420 | + </view> | |
417 | 421 | <view class="comment flex jc_sb"> |
418 | 422 | <view class="word-line xc-ash">¥{{item.market_price}}</view> |
419 | 423 | <view>评论{{item.comment_count}} 已售{{item.sales_sum}}</view> | ... | ... |