提交 d6ff7c70260aa44e35dfa4c50263510f2b5411aa

作者 wangyu
1 个父辈 e38302ae

优化工资条数据为空或为0的情况

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