Commit ab63e2e4a9e04ae517ec1f6651233c8c875d9967
1 parent
39e40595
判断null或者空的话
Showing
2 changed files
with
3 additions
and
3 deletions
pages/user/coupons/coupons.wxml
| @@ -63,7 +63,7 @@ | @@ -63,7 +63,7 @@ | ||
| 63 | <view wx:else> | 63 | <view wx:else> |
| 64 | <view class="text">有效期:不限</view> | 64 | <view class="text">有效期:不限</view> |
| 65 | </view> | 65 | </view> |
| 66 | - <view class="textss">使用说明: {{filter.getNum(detail.Sum)}}元优惠券,{{(detail.UseObjectID==null || detail.UseObjectID=='')?"全场通用":"仅限"+(detail.UseObjectName)+"使用"}},满 {{detail.BuySum==null?filter.getNum(0):filter.getNum(detail.BuySum)}}元使用 {{detail.region_list_name==null?"":",不包邮地区:"+region_list_name}} | 66 | + <view class="textss">使用说明: {{filter.getNum(detail.Sum)}}元优惠券,{{(detail.UseObjectID==null || detail.UseObjectID=='')?"全场通用":"仅限"+(detail.UseObjectName)+"使用"}},满 {{detail.BuySum==null || detail.BuySum==''?filter.getNum(0):filter.getNum(detail.BuySum)}}元使用 {{detail.region_list_name==null || detail.region_list_name==''?"":",不包邮地区:"+region_list_name}} |
| 67 | </view> | 67 | </view> |
| 68 | 68 | ||
| 69 | </view> | 69 | </view> |
pages/user/integral/query/index.wxml
| @@ -63,8 +63,8 @@ | @@ -63,8 +63,8 @@ | ||
| 63 | <view class='time'>{{details.BillDate}}</view> | 63 | <view class='time'>{{details.BillDate}}</view> |
| 64 | </view> | 64 | </view> |
| 65 | </view> | 65 | </view> |
| 66 | - <view class="val" style='color:{{(details.InIntegral!="0")?"green":""}}'> | ||
| 67 | - {{(details.OutIntegral==0)?"+":"-"}}{{(details.InIntegral==0)?filter.getNum(details.OutIntegral):filter.getNum(details.InIntegral)}}积分 </view> | 66 | + <view class="val" style='color:{{(details.InOutInt>0)?"green":""}}'> |
| 67 | + {{(details.InOutInt>0)?"+":""}}{{filter.getNum(details.InOutInt)}}积分 </view> | ||
| 68 | </view> | 68 | </view> |
| 69 | </block> | 69 | </block> |
| 70 | 70 |