提交 a5dade4b44d71e7f7633b7fe6a8bd24f31817872

作者 wangyu
1 个父辈 c1fbff7c

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

@@ -215,7 +215,7 @@ Page({ @@ -215,7 +215,7 @@ Page({
215 } 215 }
216 } 216 }
217 if (!title ) continue; 217 if (!title ) continue;
218 - if (!title || (value!=0&&!value)) continue; 218 + // if (!title || (value!=0&&!value)) continue;
219 // if (mapping_keys.indexOf(titleData['key']) == -1 && (value == '0' || value == 0)) continue; 219 // if (mapping_keys.indexOf(titleData['key']) == -1 && (value == '0' || value == 0)) continue;
220 details.push({ 220 details.push({
221 title: title, 221 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>
注册登录 后发表评论