提交 946ab1ef35d7302d28f2ebc19719e1dfb50b31c2

作者 wangyu
2 个父辈 2ec40be3 7d18a54f

Merge branch '机器人dev_实名认证' into 机器人dev

... ... @@ -144,8 +144,8 @@ App({
144 144 // baseUrl: "http://192.144.144.220:20000/",
145 145 // baseUrl: "http://154.8.229.55:20000/",
146 146 // baseUrl: "http://47.110.250.177:20000/",
147   - // baseUrl: "http://47.110.158.110:20000/",
148   - baseUrl: "https://api.workai.com.cn/",
  147 + baseUrl: "http://47.110.158.110:20000/",
  148 + // baseUrl: "https://api.workai.com.cn/",
149 149 OSSUrl: "", //"https://oss.workai.com.cn/",
150 150 userInfo: null,
151 151 hostInfo: null,
... ...
... ... @@ -112,8 +112,10 @@ Page({
112 112 handleSalaryData: function (items) {
113 113 for (var i = 0; i < items.length; ++i) {
114 114 var item = items[i]
  115 + console.log("item---", item)
115 116 item.payroll_date = format.formatTime_date(item.payroll_date)
116 117 item.count_date = format.formatDate_min(item.start_time) + '-' + format.formatDate_min(item.end_time)
  118 + item.zeroShow = item.zero_display=='yes'?true:false//是否展示非0字段
117 119 item.detals = this.handleDetailsData(item)
118 120 item.isshow = false
119 121 }
... ... @@ -197,6 +199,7 @@ Page({
197 199 let titles = JSON.parse(data['slip_titles'])
198 200 let detail = JSON.parse(data['detail'])
199 201 let mapping_keys = data["mapping_keys"] ? data["mapping_keys"]:[]
  202 + console.log(titles,detail,mapping_keys)
200 203 var details = []
201 204 for (var i = 0; i < titles.length; ++i) {
202 205 var titleData = titles[i]
... ... @@ -212,7 +215,7 @@ Page({
212 215 }
213 216 }
214 217 if (!title || !value) continue;
215   - if (mapping_keys.indexOf(titleData['key']) == -1 && (value == '0' || value == 0)) continue;
  218 + if (mapping_keys.indexOf(titleData['key']) == -1) continue;
216 219 details.push({
217 220 title: title,
218 221 value: value
... ...
... ... @@ -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>
  60 + <view hidden="{{!item.zeroShow&&(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>
... ...
注册登录 后发表评论