Commit 605eefe2e11ba8f88f2107d0b14ec02fdc7df29d
1 parent
94ac7270
优惠券的空显示
Showing
1 changed file
with
5 additions
and
2 deletions
pages/cart/cart2/cart2.wxml
... | ... | @@ -399,7 +399,11 @@ |
399 | 399 | |
400 | 400 | <view class="xc-buttom " wx:if="{{item.is_open==1}}"> |
401 | 401 | <view style="padding:10rpx"> |
402 | - <text class="five-level-word explain-coupon">{{util.format(item.Remark)}}</text> | |
402 | + <text class="five-level-word explain-coupon" wx:if="{{item.Remark}}">{{util.format(item.Remark)}}</text> | |
403 | + <text class="five-level-word explain-coupon" wx:else> | |
404 | + <block wx:if="{{item.UseObjectName}}">仅{{item.UseObjectName}}使用</block> | |
405 | + <block wx:else>全场通用</block> | |
406 | + </text> | |
403 | 407 | </view> |
404 | 408 | </view> |
405 | 409 | |
... | ... | @@ -407,7 +411,6 @@ |
407 | 411 | |
408 | 412 | |
409 | 413 | |
410 | - | |
411 | 414 | |
412 | 415 | </view> |
413 | 416 | </view> | ... | ... |