提交 130ac676640a330bfb032a9778e9e7cbcf7adef1
Merge branch '机器人dev' into 海峡new
# Conflicts: # app.js # pages/main/advancepayment/adPayHome.js # project.config.json
正在显示
7 个修改的文件
包含
19 行增加
和
9 行删除
@@ -148,7 +148,6 @@ App({ | @@ -148,7 +148,6 @@ App({ | ||
148 | // baseUrl: "http://47.110.158.110:20000/", | 148 | // baseUrl: "http://47.110.158.110:20000/", |
149 | // baseUrl: "https://api.workai.com.cn/", | 149 | // baseUrl: "https://api.workai.com.cn/", |
150 | baseUrl: "https://api.fjhxrl.com/", | 150 | baseUrl: "https://api.fjhxrl.com/", |
151 | - // baseUrl: "https://api.workai.com.cn/", | ||
152 | OSSUrl: "", //"https://oss.workai.com.cn/", | 151 | OSSUrl: "", //"https://oss.workai.com.cn/", |
153 | userInfo: null, | 152 | userInfo: null, |
154 | hostInfo: null, | 153 | hostInfo: null, |
@@ -198,10 +198,16 @@ Page({ | @@ -198,10 +198,16 @@ Page({ | ||
198 | 198 | ||
199 | handleDetailsData: function (data) { | 199 | handleDetailsData: function (data) { |
200 | 200 | ||
201 | - let titles = JSON.parse(data['slip_titles']) | 201 | + // let titles = JSON.parse(data['slip_titles']) |
202 | + let titles = JSON.parse(data['salary_columns']) | ||
202 | let detail = JSON.parse(data['detail']) | 203 | let detail = JSON.parse(data['detail']) |
203 | let mapping_keys = data["mapping_keys"] ? data["mapping_keys"] : [] | 204 | let mapping_keys = data["mapping_keys"] ? data["mapping_keys"] : [] |
204 | - console.log(titles,detail,mapping_keys) | 205 | + console.log(titles, detail, mapping_keys) |
206 | + // var obj = {} | ||
207 | + // let titles = titles01.concat(titles02).reduce(function (item, next) { | ||
208 | + // obj[next.key] ? '' : obj[next.key] = true && item.push(next); | ||
209 | + // return item; | ||
210 | + // }, []); | ||
205 | var details = [] | 211 | var details = [] |
206 | for (var i = 0; i < titles.length; ++i) { | 212 | for (var i = 0; i < titles.length; ++i) { |
207 | var titleData = titles[i] | 213 | var titleData = titles[i] |
@@ -215,8 +221,8 @@ Page({ | @@ -215,8 +221,8 @@ Page({ | ||
215 | if (value != undefined) { | 221 | if (value != undefined) { |
216 | value += 'tax_rate' == titleData['key'] ? '%' : '' | 222 | value += 'tax_rate' == titleData['key'] ? '%' : '' |
217 | } | 223 | } |
218 | - } | ||
219 | - if (!title ) continue; | 224 | + } |
225 | + if (!title) continue; | ||
220 | // if (!title || (value!=0&&!value)) continue; | 226 | // if (!title || (value!=0&&!value)) continue; |
221 | // if (mapping_keys.indexOf(titleData['key']) == -1 && (value == '0' || value == 0)) continue; | 227 | // if (mapping_keys.indexOf(titleData['key']) == -1 && (value == '0' || value == 0)) continue; |
222 | details.push({ | 228 | details.push({ |
@@ -248,7 +248,7 @@ Page({ | @@ -248,7 +248,7 @@ Page({ | ||
248 | if (res.statusCode && res.statusCode >= 300) { | 248 | if (res.statusCode && res.statusCode >= 300) { |
249 | that.showtoast(res.data.message); | 249 | that.showtoast(res.data.message); |
250 | wx.redirectTo({ | 250 | wx.redirectTo({ |
251 | - url: '../verify_result/verify_result?result=fail', | 251 | + url: '../verify_result/verify_result?result=fail&msg=' + res.data.message, |
252 | }) | 252 | }) |
253 | } else { | 253 | } else { |
254 | that.showtoast('提交成功'); | 254 | that.showtoast('提交成功'); |
@@ -138,7 +138,7 @@ Page({ | @@ -138,7 +138,7 @@ Page({ | ||
138 | console.log("SUCC", res) | 138 | console.log("SUCC", res) |
139 | if (res.statusCode && res.statusCode >= 300) { | 139 | if (res.statusCode && res.statusCode >= 300) { |
140 | wx.navigateTo({ | 140 | wx.navigateTo({ |
141 | - url: 'verify_result/verify_result?result=fail', | 141 | + url: 'verify_result/verify_result?result=fail&msg=' + res.data.message, |
142 | }) | 142 | }) |
143 | that.showtoast(res.data.message); | 143 | that.showtoast(res.data.message); |
144 | } else { | 144 | } else { |
@@ -28,7 +28,7 @@ Page({ | @@ -28,7 +28,7 @@ Page({ | ||
28 | this.setData({ | 28 | this.setData({ |
29 | verify_img: "/images/verify_fail.png", | 29 | verify_img: "/images/verify_fail.png", |
30 | verify_status: "fail", | 30 | verify_status: "fail", |
31 | - verify_tip: "对不起!认证失败", | 31 | + verify_tip: options.msg ? "对不起!认证失败 \n "+options.msg:"对不起!认证失败", |
32 | btn_text: "重新认证" | 32 | btn_text: "重新认证" |
33 | }) | 33 | }) |
34 | } | 34 | } |
@@ -13,8 +13,13 @@ | @@ -13,8 +13,13 @@ | ||
13 | }, | 13 | }, |
14 | "compileType": "miniprogram", | 14 | "compileType": "miniprogram", |
15 | "libVersion": "2.4.2", | 15 | "libVersion": "2.4.2", |
16 | +<<<<<<< HEAD | ||
16 | "appid": "wxb1af25a27d6d0cba", | 17 | "appid": "wxb1af25a27d6d0cba", |
17 | "projectname": "%E6%B5%B7%E5%B3%A1%E8%87%AA%E7%84%B6%E4%BA%BA", | 18 | "projectname": "%E6%B5%B7%E5%B3%A1%E8%87%AA%E7%84%B6%E4%BA%BA", |
19 | +======= | ||
20 | + "appid": "wxe7d4efda23782b49", | ||
21 | + "projectname": "%E7%A4%BE%E7%A8%8E%E6%9C%BA%E5%99%A8%E4%BA%BA", | ||
22 | +>>>>>>> 机器人dev | ||
18 | "debugOptions": { | 23 | "debugOptions": { |
19 | "hidedInDevtools": [] | 24 | "hidedInDevtools": [] |
20 | }, | 25 | }, |
请
注册
或
登录
后发表评论