提交 dbb969e2217a5c95ba1e216378f68d1c55a59afa

作者 wangyu
1 个父辈 7fa1b604

优化工资条数据为空或为0的展示

... ... @@ -214,7 +214,7 @@ Page({
214 214 }
215 215 }
216 216 if (!title) continue;
217   - if (!title || (value != 0 && !value)) continue;
  217 + // if (!title || (value != 0 && !value)) continue;
218 218 // if (mapping_keys.indexOf(titleData['key']) == -1 && (value == '0' || value == 0)) continue;
219 219 details.push({
220 220 title: title,
... ...
... ... @@ -57,7 +57,7 @@
57 57 <view class='divide_line_f5f5f5' style='margin:30rpx 0'></view>
58 58 </view>
59 59 <view wx:if="{{item.isshow}}" wx:for="{{item.detals}}" wx:for-item='detal'>
60   - <view hidden="{{!item.zeroShow&&(detal.value=='0'||detal.value==0)}}" >
  60 + <view hidden="{{!item.zeroShow&&(!detal.value||detal.value=='0'||detal.value==0)}}" >
61 61 <text class='text_999_28'>{{detal.title}}</text>
62 62 <text class='text_999_28' style='color:#333;text-align:right;float: right'>{{detal.value}}</text>
63 63 </view>
... ...
注册登录 后发表评论