提交 946ab1ef35d7302d28f2ebc19719e1dfb50b31c2

作者 wangyu
2 个父辈 2ec40be3 7d18a54f

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

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