正在显示
6 个修改的文件
包含
1167 行增加
和
14 行删除
1 | // pages/main/addinfo/addinfo.js | 1 | // pages/main/addinfo/addinfo.js |
2 | +var app = getApp(); | ||
3 | +var baseUrl = app.globalData.baseUrl; | ||
2 | Page({ | 4 | Page({ |
3 | 5 | ||
4 | /** | 6 | /** |
5 | * 页面的初始数据 | 7 | * 页面的初始数据 |
6 | */ | 8 | */ |
7 | data: { | 9 | data: { |
8 | - | 10 | + isshow01: false, |
11 | + isshow02: false, | ||
12 | + isshow03: false, | ||
13 | + taxInfo: {}, | ||
14 | + proffessionlist: {}, | ||
15 | + banklist: {}, | ||
16 | + isself: false, | ||
17 | + isIdCard: true, | ||
18 | + name: '', | ||
19 | + card_number: '', | ||
20 | + birthday:'', | ||
21 | + formData:{}, | ||
22 | + requestBody:{}, | ||
23 | + | ||
24 | + relativeData: { | ||
25 | + isrequre: true, | ||
26 | + label: '关系', | ||
27 | + bindtype: 'relative', | ||
28 | + selected:'', | ||
29 | + placeholder: '请选择关系', | ||
30 | + values: ["子女", "配偶"], | ||
31 | + onChange: 'onPickerSelect' | ||
32 | + }, | ||
33 | + personstatusData: { | ||
34 | + isrequre: true, | ||
35 | + label: '纳税人状态', | ||
36 | + bindtype: 'personstatus', | ||
37 | + selected: '', | ||
38 | + placeholder: '请选择纳税人状态', | ||
39 | + values: ["正常(在职)", "非正常"], | ||
40 | + onChange: 'onPickerSelect' | ||
41 | + }, | ||
42 | + cardtypeData: { | ||
43 | + isrequre: true, | ||
44 | + label: '证照类型', | ||
45 | + bindtype: 'cardtype', | ||
46 | + selected: '', | ||
47 | + placeholder: '请选择证照类型', | ||
48 | + values: ["居民身份证", "军官证", '士兵证', '武警警官证', '港澳居民来往大陆通行证', '外交官证', '中国护照', | ||
49 | + '外国护照', '香港永久性居民身份证', '澳门特别行政区永久性居民身份证', '台湾身份证', '外国人永久居留证' | ||
50 | + ], | ||
51 | + onChange: 'onPickerSelect' | ||
52 | + }, | ||
53 | + forignerInfo: { | ||
54 | + isrequre: true, | ||
55 | + label: '是否境外人员', | ||
56 | + bindtype: 'forigner', | ||
57 | + selected: '否', | ||
58 | + disabled:true, | ||
59 | + values: ["否", "是"], | ||
60 | + onChange: 'onPickerSelect' | ||
61 | + }, | ||
62 | + bankInfo: { | ||
63 | + label: '开户银行', | ||
64 | + bindtype: 'bank', | ||
65 | + selected: '', | ||
66 | + placeholder: '请选择开户银行', | ||
67 | + onChange: 'onPickerSelect' | ||
68 | + }, | ||
69 | + genderData: { | ||
70 | + label: '性别', | ||
71 | + bindtype: 'gender', | ||
72 | + selected: '', | ||
73 | + placeholder: '请选择性别', | ||
74 | + values: ["男", "女"], | ||
75 | + onChange: 'onPickerSelect' | ||
76 | + }, | ||
77 | + professionData: { | ||
78 | + mode: 'multiSelector', | ||
79 | + label: '职业', | ||
80 | + bindtype: 'profession', | ||
81 | + multiIndex: [0, 0, 0], | ||
82 | + selected: '', | ||
83 | + placeholder: '请选择职业', | ||
84 | + onChange: 'onPickerSelect' | ||
85 | + }, | ||
86 | + degreeData: { | ||
87 | + label: '学历', | ||
88 | + bindtype: 'degree', | ||
89 | + selected: '', | ||
90 | + placeholder: '请选择学历', | ||
91 | + values: ["研究生", "大学本科", '大学本科以下'], | ||
92 | + onChange: 'onPickerSelect' | ||
93 | + }, | ||
94 | + disabilityInfo: { | ||
95 | + label: '是否残疾', | ||
96 | + bindtype: 'disable', | ||
97 | + selected: '', | ||
98 | + placeholder: '请选择是否残疾', | ||
99 | + values: ["否", "是"], | ||
100 | + onChange: 'onPickerSelect' | ||
101 | + }, | ||
102 | + lieshuInfo: { | ||
103 | + label: '是否烈属', | ||
104 | + bindtype: 'lieshu', | ||
105 | + selected: '', | ||
106 | + placeholder: '请选择是否烈属', | ||
107 | + values: ["否", "是"], | ||
108 | + onChange: 'onPickerSelect' | ||
109 | + }, | ||
110 | + lonelyolderInfo: { | ||
111 | + label: '是否孤老', | ||
112 | + bindtype: 'lonelyolder', | ||
113 | + selected: '', | ||
114 | + placeholder: '请选择是否孤老', | ||
115 | + values: ["否", "是"], | ||
116 | + onChange: 'onPickerSelect' | ||
117 | + }, | ||
118 | + investInfo: { | ||
119 | + isrequre: true, | ||
120 | + label: '是否股东、投资者', | ||
121 | + bindtype: 'invest', | ||
122 | + selected: '', | ||
123 | + placeholder: '请选择是否股东、投资者', | ||
124 | + values: ["否", "是"], | ||
125 | + onChange: 'onPickerSelect' | ||
126 | + }, | ||
127 | + specificIndustryInfo: { | ||
128 | + isrequre: true, | ||
129 | + label: '是否特定行业', | ||
130 | + bindtype: 'specificIndustry', | ||
131 | + selected: '', | ||
132 | + placeholder: '请选择是否特定行业', | ||
133 | + values: ["否", "是"], | ||
134 | + onChange: 'onPickerSelect' | ||
135 | + }, | ||
136 | + employeeInfo: { | ||
137 | + label: '是否雇员', | ||
138 | + bindtype: 'employee', | ||
139 | + selected: '', | ||
140 | + placeholder: '请选择是否雇员', | ||
141 | + values: ["否", "是"], | ||
142 | + onChange: 'onPickerSelect' | ||
143 | + }, | ||
144 | + investpersonalInfo: { | ||
145 | + label: '是否天使投资个人', | ||
146 | + bindtype: 'investpersonal', | ||
147 | + selected: '', | ||
148 | + placeholder: '请选择是否天使投资个人', | ||
149 | + values: ["否", "是"], | ||
150 | + onChange: 'onPickerSelect' | ||
151 | + }, | ||
152 | + // 时间picker | ||
153 | + birthDate: { | ||
154 | + label: '出生年月', | ||
155 | + bindtype: 'birthday', | ||
156 | + selected: '', | ||
157 | + placeholder: '请选择出生日期', | ||
158 | + mode: "date", | ||
159 | + fields: "day", | ||
160 | + onChange: 'birthdayChange', | ||
161 | + }, | ||
162 | + startDate: { | ||
163 | + label: '在职受雇日期', | ||
164 | + bindtype: 'startday', | ||
165 | + selected: '', | ||
166 | + placeholder: '请选择受雇日期', | ||
167 | + mode: "date", | ||
168 | + fields: "day", | ||
169 | + onChange: 'startChange', | ||
170 | + }, | ||
171 | + endDate: { | ||
172 | + label: '离职日期', | ||
173 | + bindtype: 'endday', | ||
174 | + selected: '', | ||
175 | + placeholder: '请选择离职日期', | ||
176 | + mode: "date", | ||
177 | + fields: "day", | ||
178 | + onChange: 'endChange', | ||
179 | + }, | ||
180 | + // 地址选择器 | ||
181 | + contactaddressInfo: { | ||
182 | + label: '联系地址', | ||
183 | + mode: 'region', | ||
184 | + selected: '', | ||
185 | + placeholder: '请选择联系地址', | ||
186 | + onChange: 'contactAddressSelect' | ||
187 | + }, | ||
188 | + currentaddressInfo: { | ||
189 | + label: '居住地', | ||
190 | + mode: 'region', | ||
191 | + selected: '', | ||
192 | + placeholder: '请选择居住地', | ||
193 | + onChange: 'currentAddressSelect' | ||
194 | + }, | ||
195 | + birthaddressInfo: { | ||
196 | + label: '户籍所在地', | ||
197 | + mode: 'region', | ||
198 | + selected: '', | ||
199 | + placeholder: '请选择户籍所在地', | ||
200 | + onChange: 'birthAddressSelect' | ||
201 | + }, | ||
202 | + title: '', | ||
203 | + condition: false | ||
9 | }, | 204 | }, |
10 | 205 | ||
11 | /** | 206 | /** |
12 | * 生命周期函数--监听页面加载 | 207 | * 生命周期函数--监听页面加载 |
13 | */ | 208 | */ |
14 | onLoad: function (options) { | 209 | onLoad: function (options) { |
15 | - | 210 | + // console.log('options.id', options.id) |
211 | + // if (!options.id || options.id.length < 0) { | ||
212 | + // this.setData({ | ||
213 | + // isself: false, | ||
214 | + // }) | ||
215 | + // } else { | ||
216 | + // this.getpersonalTax(options.id) | ||
217 | + // } | ||
218 | + this.getproffessiondata() | ||
219 | + this.getbanklist() | ||
220 | + }, | ||
221 | + | ||
222 | + getpersonalTax: function (id) { | ||
223 | + var that = this | ||
224 | + var Authorization = app.globalData.Authorization; | ||
225 | + wx.request({ | ||
226 | + url: baseUrl + 'persontax/v1/personal-taxes/' + id, | ||
227 | + method: "GET", | ||
228 | + header: { | ||
229 | + 'content-type': 'application/json', // 默认值 | ||
230 | + "Authorization": Authorization | ||
231 | + }, | ||
232 | + success: function (res) { | ||
233 | + console.log(res) | ||
234 | + that.setData({ | ||
235 | + taxInfo: res.data, | ||
236 | + isself: res.data.family_ties ? false : true | ||
237 | + }) | ||
238 | + }, | ||
239 | + fail(res) { | ||
240 | + console.log(res) | ||
241 | + } | ||
242 | + }) | ||
243 | + }, | ||
244 | + | ||
245 | + getproffessiondata: function () { | ||
246 | + var that = this | ||
247 | + var Authorization = app.globalData.Authorization; | ||
248 | + var proffession_info = that.data.professionData | ||
249 | + wx.request({ | ||
250 | + url: baseUrl + 'common/v1/professions', | ||
251 | + method: "GET", | ||
252 | + header: { | ||
253 | + 'content-type': 'application/json', // 默认值 | ||
254 | + "Authorization": Authorization | ||
255 | + }, | ||
256 | + success: function (res) { | ||
257 | + console.log('proffessiondata', res.data) | ||
258 | + proffession_info.values = that.handleProfession(res.data.items) | ||
259 | + that.setData({ | ||
260 | + proffessionlist: res.data.items, | ||
261 | + professionData: proffession_info | ||
262 | + }) | ||
263 | + }, | ||
264 | + fail(res) { | ||
265 | + console.log(res) | ||
266 | + } | ||
267 | + }) | ||
268 | + console.log('proffessionData--', that.data.professionData) | ||
269 | + }, | ||
270 | + | ||
271 | + handleProfession: function (data) { | ||
272 | + var newdata = [] | ||
273 | + var one = [] | ||
274 | + var two = [] | ||
275 | + var three = [] | ||
276 | + var oneObj = {}, twoObj = {}, threeObj = {} | ||
277 | + if (data && data.length > 0) { | ||
278 | + console.log('one', one) | ||
279 | + data.map((d, i) => { | ||
280 | + one.push(d.one_level_code) //三级联动中 第一级所有的code | ||
281 | + two.push(d.two_level_code) //三级联动中 第二级所有的code | ||
282 | + three.push(d.three_level_code) //三级联动中 第三级所有的code | ||
283 | + oneObj[d.one_level_code] = { | ||
284 | + "value": d.one_level_code, | ||
285 | + "label": d.one_level_name, | ||
286 | + "children": [] | ||
287 | + } //三级联动中 第一级所有的code + name | ||
288 | + twoObj[d.two_level_code] = { | ||
289 | + "value": d.two_level_code, | ||
290 | + "label": d.two_level_name, | ||
291 | + "children": [] | ||
292 | + } //三级联动中 第一级所有的code + name | ||
293 | + threeObj[d.three_level_code] = { | ||
294 | + "value": d.three_level_code, | ||
295 | + "label": d.three_level_name | ||
296 | + } //三级联动中 第一级所有的code + name | ||
297 | + for (let b in twoObj) { //把第三级的数据的Code和第二级数据的code做判断 相等的 放到第二级的children数组中 | ||
298 | + for (let c in threeObj) { | ||
299 | + if (b == c.slice(0, c.length - 1)) { | ||
300 | + twoObj[b].children.push(threeObj[c]) | ||
301 | + } | ||
302 | + } | ||
303 | + } | ||
304 | + for (let a in oneObj) { //把第二级的数据的Code和第二级数据的code做判断 相等的 放到第一级的children数组中 | ||
305 | + for (let b in twoObj) { | ||
306 | + if (a == b.slice(0, b.length - 1)) { | ||
307 | + oneObj[a].children.push(twoObj[b]) | ||
308 | + } | ||
309 | + } | ||
310 | + } | ||
311 | + one = [...new Set(one)] //一级code去重 | ||
312 | + one.map((da, ind) => { //遍历 得到最终的三级联动数据 | ||
313 | + // console.log('oneObj', newdata) | ||
314 | + newdata.push(oneObj[da]) | ||
315 | + }) | ||
316 | + }) | ||
317 | + } | ||
318 | + console.log('newdata', newdata) | ||
319 | + | ||
320 | + return newdata | ||
321 | + }, | ||
322 | + | ||
323 | + getbanklist: function () { | ||
324 | + var that = this | ||
325 | + var Authorization = app.globalData.Authorization; | ||
326 | + var bank_info = that.data.bankInfo | ||
327 | + wx.request({ | ||
328 | + url: baseUrl + 'walletmgm/v1/bankinfos', | ||
329 | + method: "GET", | ||
330 | + header: { | ||
331 | + 'content-type': 'application/json', // 默认值 | ||
332 | + "Authorization": Authorization | ||
333 | + }, | ||
334 | + success: function (res) { | ||
335 | + console.log(res) | ||
336 | + bank_info.values = that.handleBankinfo(res.data.items) | ||
337 | + | ||
338 | + that.setData({ | ||
339 | + banklist: res.data.items, | ||
340 | + bankInfo: bank_info | ||
341 | + }) | ||
342 | + console.log("bankInfo", that.data.bankInfo) | ||
343 | + }, | ||
344 | + fail(res) { | ||
345 | + console.log(res) | ||
346 | + } | ||
347 | + }) | ||
348 | + }, | ||
349 | + | ||
350 | + handleBankinfo: function (data) { | ||
351 | + var bank_name = [] | ||
352 | + for (var i = 0; i < data.length; i++) { | ||
353 | + bank_name.push(data[i].bank_name) | ||
354 | + } | ||
355 | + return bank_name | ||
16 | }, | 356 | }, |
17 | 357 | ||
18 | /** | 358 | /** |
19 | * 生命周期函数--监听页面初次渲染完成 | 359 | * 生命周期函数--监听页面初次渲染完成 |
20 | */ | 360 | */ |
21 | onReady: function () { | 361 | onReady: function () { |
22 | - | 362 | + |
23 | }, | 363 | }, |
24 | 364 | ||
25 | /** | 365 | /** |
26 | * 生命周期函数--监听页面显示 | 366 | * 生命周期函数--监听页面显示 |
27 | */ | 367 | */ |
28 | onShow: function () { | 368 | onShow: function () { |
29 | - | 369 | + var that = this |
370 | + wx.getStorage({ | ||
371 | + key: 'id_info', | ||
372 | + success: function (res) { | ||
373 | + console.log(res.data) | ||
374 | + var birth_day = res.data.birthday.year + '-' + res.data.birthday.month + '-' + res.data.birthday.day, | ||
375 | + var cardtype_Data = that.data.cardtypeData | ||
376 | + cardtype_Data.selected = res.data.id_card_number | ||
377 | + that.setData({ | ||
378 | + name: res.data.name, | ||
379 | + birthday: birth_day, | ||
380 | + cardtypeData: cardtype_Data, | ||
381 | + card_number: res.data.id_card_number | ||
382 | + }) | ||
383 | + }, | ||
384 | + }) | ||
385 | + }, | ||
386 | + | ||
387 | + span: function (e) { | ||
388 | + console.log(e) | ||
389 | + if ("1" == e.target.id) { | ||
390 | + this.setData({ | ||
391 | + isshow01: !this.data.isshow01 | ||
392 | + }) | ||
393 | + } else if ("2" == e.target.id) { | ||
394 | + this.setData({ | ||
395 | + isshow02: !this.data.isshow02 | ||
396 | + }) | ||
397 | + } else if ("3" == e.target.id) { | ||
398 | + this.setData({ | ||
399 | + isshow03: !this.data.isshow03 | ||
400 | + }) | ||
401 | + } | ||
402 | + | ||
403 | + }, | ||
404 | + // =============普通单列picker选中处理============== | ||
405 | + onPickerSelect: function (e) { | ||
406 | + console.log('picker发送选择改变,携带值为', e) | ||
407 | + switch (e.currentTarget.id) { | ||
408 | + case 'relative': | ||
409 | + var relative_data = this.data.relativeData | ||
410 | + relative_data.selected = relative_data.values[e.detail.value] | ||
411 | + this.setData({ | ||
412 | + relativeData: relative_data | ||
413 | + }) | ||
414 | + break; | ||
415 | + case 'personstatus': | ||
416 | + var personstatus_data = this.data.personstatusData | ||
417 | + personstatus_data.selected = personstatus_data.values[e.detail.value] | ||
418 | + this.setData({ | ||
419 | + personstatusData: personstatus_data | ||
420 | + }) | ||
421 | + break; | ||
422 | + case 'cardtype': | ||
423 | + var is_idcard = this.data.isIdCard | ||
424 | + var cardtype_data = this.data.cardtypeData | ||
425 | + cardtype_data.selected = cardtype_data.values[e.detail.value] | ||
426 | + if (0 == e.detail.value) { | ||
427 | + is_idcard = true | ||
428 | + } else { | ||
429 | + is_idcard = false | ||
430 | + } | ||
431 | + this.setData({ | ||
432 | + isIdCard: is_idcard, | ||
433 | + cardtypeData: cardtype_data | ||
434 | + }) | ||
435 | + break; | ||
436 | + case 'forigner': | ||
437 | + var forigner_data = this.data.forignerInfo | ||
438 | + forigner_data.selected = forigner_data.values[e.detail.value] | ||
439 | + this.setData({ | ||
440 | + forignerInfo: forigner_data | ||
441 | + }) | ||
442 | + break; | ||
443 | + case 'bank': | ||
444 | + var bank_data = this.data.bankInfo | ||
445 | + bank_data.selected = bank_data.values[e.detail.value] | ||
446 | + this.setData({ | ||
447 | + bankInfo: bank_data | ||
448 | + }) | ||
449 | + break; | ||
450 | + case 'gender': | ||
451 | + var gender_data = this.data.genderData | ||
452 | + gender_data.selected = gender_data.values[e.detail.value] | ||
453 | + this.setData({ | ||
454 | + genderData: gender_data | ||
455 | + }) | ||
456 | + break; | ||
457 | + case 'profession': | ||
458 | + // var profession_data = this.data.professionData | ||
459 | + // profession_data.selected = profession_data.values[e.detail.value] | ||
460 | + // this.setData({ | ||
461 | + // professionData: profession_data | ||
462 | + // }) | ||
463 | + break; | ||
464 | + case 'degree': | ||
465 | + var degree_data = this.data.degreeData | ||
466 | + degree_data.selected = degree_data.values[e.detail.value] | ||
467 | + this.setData({ | ||
468 | + degreeData: degree_data | ||
469 | + }) | ||
470 | + break; | ||
471 | + case 'disable': | ||
472 | + var disable_data = this.data.disabilityInfo | ||
473 | + disable_data.selected = disable_data.values[e.detail.value] | ||
474 | + this.setData({ | ||
475 | + disabilityInfo: disable_data | ||
476 | + }) | ||
477 | + break; | ||
478 | + case 'lieshu': | ||
479 | + var lieshu_data = this.data.lieshuInfo | ||
480 | + lieshu_data.selected = lieshu_data.values[e.detail.value] | ||
481 | + this.setData({ | ||
482 | + lieshuInfo: lieshu_data | ||
483 | + }) | ||
484 | + break; | ||
485 | + case 'lonelyolder': | ||
486 | + var lonelyolder_data = this.data.lonelyolderInfo | ||
487 | + lonelyolder_data.selected = lonelyolder_data.values[e.detail.value] | ||
488 | + this.setData({ | ||
489 | + lonelyolderInfo: lonelyolder_data | ||
490 | + }) | ||
491 | + break; | ||
492 | + case 'invest': | ||
493 | + var invest_data = this.data.investInfo | ||
494 | + invest_data.selected = invest_data.values[e.detail.value] | ||
495 | + this.setData({ | ||
496 | + investInfo: invest_data | ||
497 | + }) | ||
498 | + break; | ||
499 | + case 'specificIndustry': | ||
500 | + var specificIndustry_data = this.data.specificIndustryInfo | ||
501 | + specificIndustry_data.selected = specificIndustry_data.values[e.detail.value] | ||
502 | + this.setData({ | ||
503 | + specificIndustryInfo: specificIndustry_data | ||
504 | + }) | ||
505 | + break; | ||
506 | + case 'employee': | ||
507 | + var employee_data = this.data.employeeInfo | ||
508 | + employee_data.selected = employee_data.values[e.detail.value] | ||
509 | + this.setData({ | ||
510 | + employeeInfo: employee_data | ||
511 | + }) | ||
512 | + break; | ||
513 | + } | ||
514 | + | ||
515 | + }, | ||
516 | + | ||
517 | + // =============日期picker选中处理============== | ||
518 | + birthdayChange:function(e){ | ||
519 | + var birth_date = this.data.birthDate; | ||
520 | + birth_date.selected = e.detail.value | ||
521 | + this.setData({ | ||
522 | + birthday: e.detail.value, | ||
523 | + birthDate: birth_date | ||
524 | + }) | ||
525 | + }, | ||
526 | + | ||
527 | + startChange:function(e){ | ||
528 | + var start_date = this.data.startDate; | ||
529 | + start_date.selected = e.detail.value | ||
530 | + this.setData({ | ||
531 | + startDate: start_date | ||
532 | + }) | ||
533 | + }, | ||
534 | + | ||
535 | + endChange: function (e) { | ||
536 | + var end_date = this.data.endDate; | ||
537 | + end_date.selected = e.detail.value | ||
538 | + this.setData({ | ||
539 | + endDate: end_date | ||
540 | + }) | ||
541 | + }, | ||
542 | + | ||
543 | + // =============地区picker选中处理============== | ||
544 | + | ||
545 | + contactAddressSelect:function(e){ | ||
546 | + console.log('contactAddressSelect',e) | ||
547 | + var contact_address = this.data.contactaddressInfo; | ||
548 | + contact_address.address_value = e.detail.value | ||
549 | + contact_address.address_code = e.detail.code | ||
550 | + this.setData({ | ||
551 | + contactaddressInfo: contact_address | ||
552 | + }) | ||
553 | + }, | ||
554 | + | ||
555 | + currentAddressSelect: function (e) { | ||
556 | + console.log('currentAddressSelect', e) | ||
557 | + var current_address = this.data.currentaddressInfo; | ||
558 | + current_address.address_value = e.detail.value | ||
559 | + current_address.address_code = e.detail.code | ||
560 | + this.setData({ | ||
561 | + currentaddressInfo: current_address | ||
562 | + }) | ||
563 | + }, | ||
564 | + | ||
565 | + birthAddressSelect: function (e) { | ||
566 | + console.log('birthAddressSelect', e) | ||
567 | + var birth_address = this.data.birthaddressInfo; | ||
568 | + birth_address.address_value = e.detail.value | ||
569 | + birth_address.address_code = e.detail.code | ||
570 | + this.setData({ | ||
571 | + birthaddressInfo: birth_address | ||
572 | + }) | ||
573 | + }, | ||
574 | + | ||
575 | + // =============其他数据选中处理============== | ||
576 | + | ||
577 | + getIdInfo: function (e) { | ||
578 | + if (this.data.isIdCard){ | ||
579 | + wx.navigateTo({ | ||
580 | + url: '../idinfo/idinfo', | ||
581 | + success: function (res) { }, | ||
582 | + }) | ||
583 | + } | ||
584 | + }, | ||
585 | + | ||
586 | + formSubmit: function (e) { | ||
587 | + console.log("date", Date.parse(new Date(this.data.birthday))/1000) | ||
588 | + | ||
589 | + var formdata = e.detail.value; | ||
590 | + var toast_title = '' | ||
591 | + console.log("formdata", formdata); | ||
592 | + if (formdata.name.length < 1) { | ||
593 | + this.showtoast('请输入姓名'); | ||
594 | + return | ||
595 | + } else if (this.data.relativeData.selected.length < 1) { | ||
596 | + this.showtoast('请选择成员关系'); | ||
597 | + return | ||
598 | + } else if (this.data.personstatusData.selected.length < 1) { | ||
599 | + this.showtoast('请选择纳税人状态'); | ||
600 | + return | ||
601 | + } else if (this.data.cardtypeData.selected.length < 1) { | ||
602 | + this.showtoast('请选择证照类型'); | ||
603 | + return | ||
604 | + } else if (this.data.card_number.length<1||formdata.id_card_no.length < 1) { | ||
605 | + this.showtoast('请输入证件号码'); | ||
606 | + return | ||
607 | + // } else if (formdata.taxpayer_no.length < 1) { | ||
608 | + // this.showtoast('请输入纳税人识别号'); | ||
609 | + // return | ||
610 | + // } else if (formdata.disability_no.length < 1) { | ||
611 | + // this.showtoast('请输入残疾证号'); | ||
612 | + // return | ||
613 | + // } else if (formdata.martyr_family_no.length < 1) { | ||
614 | + // this.showtoast('请输入烈属证号'); | ||
615 | + // return | ||
616 | + } else if (formdata.mobile.length < 1) { | ||
617 | + this.showtoast('请输入联系电话'); | ||
618 | + return | ||
619 | + } else if (formdata.investInfo.selected.length < 1) { | ||
620 | + this.showtoast('请输入是否股东投资者'); | ||
621 | + return | ||
622 | + } else if (formdata.specificIndustryInfo.selected.length < 1) { | ||
623 | + this.showtoast('请输入是否特定行业'); | ||
624 | + return | ||
625 | + } | ||
626 | + this.setData({ | ||
627 | + card_number: this.data.card_number.length > 0 ? this.data.card_number : formdata.id_card_no, | ||
628 | + formData:formdata | ||
629 | + }) | ||
630 | + // else if (formdata.contact_address_detail | ||
631 | + // .length < 1) { | ||
632 | + // this.showtoast('请输入联系详细地址'); | ||
633 | + // return | ||
634 | + // } else if (formdata.bank_account.length < 1) { | ||
635 | + // this.showtoast('请输入银行卡号'); | ||
636 | + // return | ||
637 | + // } else if (formdata.email.length < 1) { | ||
638 | + // this.showtoast('请输入邮箱'); | ||
639 | + // return | ||
640 | + // } else if (formdata.current_address_detail.length < 1) { | ||
641 | + // this.showtoast('请输入居住详细地址'); | ||
642 | + // return | ||
643 | + // } else if (formdata.huji_address_detail.length < 1) { | ||
644 | + // this.showtoast('请输入户籍详细地址'); | ||
645 | + // return | ||
646 | + // } | ||
647 | + this.goCommit(); | ||
648 | + }, | ||
649 | + | ||
650 | + goCommit: function () { | ||
651 | + var that = this | ||
652 | + var Authorization = app.globalData.Authorization; | ||
653 | + wx.request({ | ||
654 | + url: baseUrl + 'persontax/v1/personal-taxes', | ||
655 | + method: "GET", | ||
656 | + data: { | ||
657 | + "name": that.data.formdata.name, | ||
658 | + "family_ties": that.data.relativeData.selected, | ||
659 | + "native": "中国", | ||
660 | + "id_card_type": that.data.relativeData.selected, | ||
661 | + "id_card_no": that.data.card_number, | ||
662 | + "gender": that.data.genderData.selected, | ||
663 | + "birth_date": Date.parse(new Date(this.data.birthday)) / 1000, | ||
664 | + "profession": { | ||
665 | + "one_level_code": "1", | ||
666 | + "one_level_name": "专业技术人员", | ||
667 | + "two_level_code": "11", | ||
668 | + "two_level_name": "科学研究人员", | ||
669 | + "three_level_code": "111", | ||
670 | + "three_level_name": "哲学研究人员" | ||
671 | + }, | ||
672 | + "education": that.data.degreeData.selected, | ||
673 | + "taxpayer_no": formdata.taxpayer_no, | ||
674 | + "taxpayer_status": that.data.personstatusData.selected, | ||
675 | + "is_martyr_family": that.data.lieshuInfo.selected, | ||
676 | + "martyr_family_no": formdata.martyr_family_no, | ||
677 | + "is_disability": that.data.disabilityInfo.selected, | ||
678 | + "disability_no": formdata.disability_no, | ||
679 | + "is_lonely_man": that.data.lonelyolderInfo.selected, | ||
680 | + "is_overseas_personnel": "否", | ||
681 | + "comment": formdata.comment, | ||
682 | + "current_address": { | ||
683 | + "province_code": that.data.currentaddressInfo.address_code[0], | ||
684 | + "province": that.data.currentaddressInfo.address_value[0], | ||
685 | + "city_code": that.data.currentaddressInfo.address_code[1], | ||
686 | + "city": that.data.currentaddressInfo.address_value[1], | ||
687 | + "district_code": that.data.currentaddressInfo.address_code[2], | ||
688 | + "district": that.data.currentaddressInfo.address_value[2] | ||
689 | + }, | ||
690 | + "current_address_detail": formdata.current_address_detail, | ||
691 | + "huji_address": { | ||
692 | + "province_code": that.data.birthaddressInfo.address_code[0], | ||
693 | + "province": that.data.birthaddressInfo.address_value[0], | ||
694 | + "city_code": that.data.birthaddressInfo.address_code[1], | ||
695 | + "city": that.data.birthaddressInfo.address_value[1], | ||
696 | + "district_code": that.data.birthaddressInfo.address_code[2], | ||
697 | + "district": that.data.birthaddressInfo.address_value[2] | ||
698 | + }, | ||
699 | + "huji_address_detail": formdata.huji_address_detail, | ||
700 | + "mobile": formdata.mobile, | ||
701 | + "contact_address": { | ||
702 | + "province_code": that.data.contactaddressInfo.address_code[0], | ||
703 | + "province": that.data.contactaddressInfo.address_value[0], | ||
704 | + "city_code": that.data.contactaddressInfo.address_code[1], | ||
705 | + "city": that.data.contactaddressInfo.address_value[1], | ||
706 | + "district_code": that.data.contactaddressInfo.address_code[2], | ||
707 | + "district": that.data.contactaddressInfo.address_value[2] | ||
708 | + }, | ||
709 | + "contact_address_detail": formdata.contact_address_detail, | ||
710 | + "email": formdata.email, | ||
711 | + "bank": that.data.bankInfo.selected, | ||
712 | + "bank_account": formdata.bank_account, | ||
713 | + "join_date": Date.parse(new Date(that.data.startDate.selected)) / 1000, | ||
714 | + "separate_date": Date.parse(new Date(that.data.endDate.selected)) / 1000, | ||
715 | + "is_employee": that.data.employeeInfo.selected, | ||
716 | + "is_specific_profession": that.data.specificIndustryInfo.selected, | ||
717 | + "is_investor": that.data.investInfo.selected, | ||
718 | + "is_business_angel": that.data.investpersonalInfo.selected, | ||
719 | + "company_equity_total": formdata.company_equity_total, | ||
720 | + "personal_equity_total": formdata.personal_equity_total, | ||
721 | + "employee_no": formdata.employee_no | ||
722 | + }, | ||
723 | + header: { | ||
724 | + 'content-type': 'application/json', // 默认值 | ||
725 | + "Authorization": Authorization | ||
726 | + }, | ||
727 | + success: function (res) { | ||
728 | + console.log(res) | ||
729 | + }, | ||
730 | + fail(res) { | ||
731 | + console.log(res) | ||
732 | + } | ||
733 | + }) | ||
734 | + }, | ||
735 | + | ||
736 | + showtoast: function (title) { | ||
737 | + wx.showToast({ | ||
738 | + title: title, | ||
739 | + }) | ||
30 | }, | 740 | }, |
31 | 741 | ||
32 | /** | 742 | /** |
33 | * 生命周期函数--监听页面隐藏 | 743 | * 生命周期函数--监听页面隐藏 |
34 | */ | 744 | */ |
35 | onHide: function () { | 745 | onHide: function () { |
36 | - | 746 | + |
37 | }, | 747 | }, |
38 | 748 | ||
39 | /** | 749 | /** |
40 | * 生命周期函数--监听页面卸载 | 750 | * 生命周期函数--监听页面卸载 |
41 | */ | 751 | */ |
42 | onUnload: function () { | 752 | onUnload: function () { |
43 | - | 753 | + |
44 | }, | 754 | }, |
45 | 755 | ||
46 | /** | 756 | /** |
47 | * 页面相关事件处理函数--监听用户下拉动作 | 757 | * 页面相关事件处理函数--监听用户下拉动作 |
48 | */ | 758 | */ |
49 | onPullDownRefresh: function () { | 759 | onPullDownRefresh: function () { |
50 | - | 760 | + |
51 | }, | 761 | }, |
52 | 762 | ||
53 | /** | 763 | /** |
54 | * 页面上拉触底事件的处理函数 | 764 | * 页面上拉触底事件的处理函数 |
55 | */ | 765 | */ |
56 | onReachBottom: function () { | 766 | onReachBottom: function () { |
57 | - | 767 | + |
58 | }, | 768 | }, |
59 | 769 | ||
60 | /** | 770 | /** |
61 | * 用户点击右上角分享 | 771 | * 用户点击右上角分享 |
62 | */ | 772 | */ |
63 | onShareAppMessage: function () { | 773 | onShareAppMessage: function () { |
64 | - | 774 | + |
65 | } | 775 | } |
66 | }) | 776 | }) |
1 | <!--pages/main/addinfo/addinfo.wxml--> | 1 | <!--pages/main/addinfo/addinfo.wxml--> |
2 | -<text>pages/main/addinfo/addinfo.wxml</text> | 2 | +<import src="../../common/picker_cell" /> |
3 | + | ||
4 | +<view class='page'> | ||
5 | + <form bindsubmit='formSubmit'> | ||
6 | + | ||
7 | + <!-- 成员关系 --> | ||
8 | + <view class='head_wrap' hidden="{{isself}}"> | ||
9 | + <text class='head_text_wrap1'>成员关系</text> | ||
10 | + </view> | ||
11 | + <view class='data_list' hidden="{{isself}}"> | ||
12 | + <view class='data_item'> | ||
13 | + <view class='item_body'> | ||
14 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
15 | + <text class='text_black_28 float_left'>姓名</text> | ||
16 | + <input class='input_wrap float_right' placeholder='请填写姓名' name='name' value='{{name}}'></input> | ||
17 | + </view> | ||
18 | + <view class="divide_line"></view> | ||
19 | + <!-- <view class='item_body' bindtap='openpicker'> | ||
20 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
21 | + <text class='text_black_28 float_left'>关系</text> | ||
22 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
23 | + <text class='text_333_28 float_right'>请选择关系</text> | ||
24 | + </view> --> | ||
25 | + | ||
26 | + <template is="picker_cell_normal" data="{{...relativeData}}" /> | ||
27 | + </view> | ||
28 | + </view> | ||
29 | + | ||
30 | + <!-- 基本信息 --> | ||
31 | + <view class='head_wrap' bindtap='span' id='1'> | ||
32 | + <text class='head_text_wrap1'>基本信息</text> | ||
33 | + <text class='head_text_wrap2'>(点击收起非必填选项)</text> | ||
34 | + <view style='float:right' wx:if='{{isshow01}}'> | ||
35 | + <image class='head_image_wrap_up' src='/images/arrow_up.png'></image> | ||
36 | + </view> | ||
37 | + <view wx:else style='float:right'> | ||
38 | + <image class='head_image_wrap_down' src='/images/arrow_down.png'></image> | ||
39 | + </view> | ||
40 | + <!-- <image class='{{isshow01}}?head_image_wrap_up:head_image_wrap_down' src="{{isshow01?'/images/arrow_up.png':'/images/arrow_down.png'}}"></image> --> | ||
41 | + </view> | ||
42 | + | ||
43 | + <view class='data_list'> | ||
44 | + <view class='data_item'> | ||
45 | + <view class='item_body' hidden="{{!isself}}"> | ||
46 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
47 | + <text class='text_black_28 float_left'>姓名</text> | ||
48 | + <input class='input_wrap float_right' placeholder='请填写姓名' value='{{taxInfo.name}}'></input> | ||
49 | + </view> | ||
50 | + <view class="divide_line"></view> | ||
51 | + | ||
52 | + <view class='item_body'> | ||
53 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
54 | + <text class='text_black_28 float_left'>国籍(地区)</text> | ||
55 | + <input class='input_wrap float_right' value='中国'></input> | ||
56 | + </view> | ||
57 | + <view class="divide_line"></view> | ||
58 | + | ||
59 | + <!-- <view class='item_body'> | ||
60 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
61 | + <text class='text_black_28 float_left'>纳税人状态</text> | ||
62 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
63 | + <text class='text_333_28 float_right'>在职</text> | ||
64 | + </view> --> | ||
65 | + <template is="picker_cell_normal" data="{{...personstatusData}}" /> | ||
66 | + <view class="divide_line"></view> | ||
67 | + | ||
68 | + <!-- <view class='item_body'> | ||
69 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
70 | + <text class='text_black_28 float_left'>证照类型</text> | ||
71 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
72 | + <text class='text_333_28 float_right'>居民身份证</text> | ||
73 | + </view> --> | ||
74 | + <template is="picker_cell_normal" data="{{...cardtypeData}}" /> | ||
75 | + <view class="divide_line"></view> | ||
76 | + | ||
77 | + <view class='item_body' bindtap='getIdInfo'> | ||
78 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
79 | + <text class='text_black_28 float_left'>证照号码</text> | ||
80 | + <view wx:if="{{isIdCard}}"> | ||
81 | + <image class='image_camera float_right' src='/images/camera.png'></image> | ||
82 | + <text class='text_333_28 float_right'>{{id_card_number}}</text> | ||
83 | + </view> | ||
84 | + <view wx:else> | ||
85 | + <input class='input_wrap float_right' placeholder='请输入证件号码' name='id_card_no'></input> | ||
86 | + </view> | ||
87 | + </view> | ||
88 | + <view class="divide_line"></view> | ||
89 | + | ||
90 | + <!-- <view class='item_body'> | ||
91 | + <text class='head_red_star float_left'>*</text> | ||
92 | + <text class='text_black_28 float_left'>是否境外人员</text> | ||
93 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
94 | + <text class='text_333_28 float_right'>否</text> | ||
95 | + </view> --> | ||
96 | + <template is="picker_cell_normal" data="{{...forignerInfo}}" /> | ||
97 | + <!-- 非必填部分 --> | ||
98 | + <view hidden='{{!isshow01}}'> | ||
99 | + <view class="divide_line"></view> | ||
100 | + | ||
101 | + <!-- <view class='item_body'> | ||
102 | + <text class='text_666_28 float_left'>性别</text> | ||
103 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
104 | + <text class='text_333_28 float_right'>男</text> | ||
105 | + </view> --> | ||
106 | + <template is="picker_cell_normal" data="{{...genderData}}" /> | ||
107 | + <view class="divide_line"></view> | ||
108 | + <!-- <view class='item_body'> | ||
109 | + <text class='text_666_28 float_left'>出生年月</text> | ||
110 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
111 | + <text class='text_333_28 float_right'></text> | ||
112 | + </view> --> | ||
113 | + <template is="picker_cell_normal" data="{{...birthDate}}" /> | ||
114 | + <view class="divide_line"></view> | ||
115 | + <!-- <view class='item_body'> | ||
116 | + <text class='text_666_28 float_left'>职业</text> | ||
117 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
118 | + <text class='text_333_28 float_right'></text> | ||
119 | + </view> --> | ||
120 | + <template is="picker_cell_muti" data="{{...professionData}}" /> | ||
121 | + <view class="divide_line"></view> | ||
122 | + <!-- <view class='item_body'> | ||
123 | + <text class='text_666_28 float_left'>学历</text> | ||
124 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
125 | + <text class='text_333_28 float_right'></text> | ||
126 | + </view> --> | ||
127 | + <template is="picker_cell_normal" data="{{...degreeData}}" /> | ||
128 | + <view class="divide_line"></view> | ||
129 | + <view class='item_body'> | ||
130 | + <text class='text_666_28 float_left'>纳税人识别号</text> | ||
131 | + <input class='input_wrap float_right' name='taxpayer_no' type='number'></input> | ||
132 | + </view> | ||
133 | + <view class="divide_line"></view> | ||
134 | + <!-- <view class='item_body'> | ||
135 | + <text class='text_666_28 float_left'>是否残疾</text> | ||
136 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
137 | + <text class='text_333_28 float_right'></text> | ||
138 | + </view> --> | ||
139 | + <template is="picker_cell_normal" data="{{...disabilityInfo}}" /> | ||
140 | + <view class="divide_line"></view> | ||
141 | + <view class='item_body'> | ||
142 | + <text class='text_666_28 float_left'>残疾证号</text> | ||
143 | + <input class='input_wrap float_right' name='disability_no' type='number'></input> | ||
144 | + </view> | ||
145 | + <view class="divide_line"></view> | ||
146 | + <!-- <view class='item_body'> | ||
147 | + <text class='text_666_28 float_left'>是否烈属</text> | ||
148 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
149 | + <text class='text_333_28 float_right'></text> | ||
150 | + </view> --> | ||
151 | + <template is="picker_cell_normal" data="{{...lieshuInfo}}" /> | ||
152 | + <view class="divide_line"></view> | ||
153 | + <view class='item_body'> | ||
154 | + <text class='text_666_28 float_left'>烈属证号</text> | ||
155 | + <input class='input_wrap float_right' name='martyr_family_no' type='number'></input> | ||
156 | + </view> | ||
157 | + <view class="divide_line"></view> | ||
158 | + <!-- <view class='item_body'> | ||
159 | + <text class='text_666_28 float_left'>是否孤老</text> | ||
160 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
161 | + <text class='text_333_28 float_right'></text> | ||
162 | + </view> --> | ||
163 | + <template is="picker_cell_normal" data="{{...lonelyolderInfo}}" /> | ||
164 | + </view> | ||
165 | + </view> | ||
166 | + </view> | ||
167 | + | ||
168 | + <!-- 联系方式 --> | ||
169 | + <view class='head_wrap' style='margin-top:20rpx' bindtap='span' id='2'> | ||
170 | + <text class='head_text_wrap1'>联系方式</text> | ||
171 | + <text class='head_text_wrap2'>(点击收起非必填选项)</text> | ||
172 | + <view style='float:right' wx:if='{{isshow02}}'> | ||
173 | + <image class='head_image_wrap_up' src='/images/arrow_up.png'></image> | ||
174 | + </view> | ||
175 | + <view wx:else style='float:right'> | ||
176 | + <image class='head_image_wrap_down' src='/images/arrow_down.png'></image> | ||
177 | + </view> | ||
178 | + </view> | ||
179 | + | ||
180 | + <view class='data_list'> | ||
181 | + <view class='data_item'> | ||
182 | + <view class='item_body'> | ||
183 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
184 | + <text class='text_black_28 float_left'>联系电话</text> | ||
185 | + <input class='input_wrap float_right' placeholder='请填写电话' value='{{taxInfo.mobile}}' name='mobile' type='number'></input> | ||
186 | + </view> | ||
187 | + <!-- 非必填部分02 --> | ||
188 | + <view hidden='{{!isshow02}}'> | ||
189 | + <view class="divide_line"></view> | ||
190 | + <!-- <view class='item_body'> | ||
191 | + <text class='text_666_28 float_left'>联系地址</text> | ||
192 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
193 | + <text class='text_333_28 float_right'></text> | ||
194 | + </view> --> | ||
195 | + <template is="picker_cell_normal" data="{{...contactaddressInfo}}" /> | ||
196 | + <view class="divide_line"></view> | ||
197 | + <view class='item_body'> | ||
198 | + <text class='text_666_28 float_left'>详细地址</text> | ||
199 | + <input class='input_wrap float_right' name='contact_address_detail'></input> | ||
200 | + </view> | ||
201 | + <view class="divide_line"></view> | ||
202 | + <!-- <view class='item_body'> | ||
203 | + <text class='text_666_28 float_left'>开户银行</text> | ||
204 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
205 | + <text class='text_333_28 float_right'></text> | ||
206 | + </view> --> | ||
207 | + <template is="picker_cell_normal" data="{{...bankInfo}}" /> | ||
208 | + <view class="divide_line"></view> | ||
209 | + <view class='item_body'> | ||
210 | + <text class='text_666_28 float_left'>银行账号</text> | ||
211 | + <input class='input_wrap float_right' name='bank_account'></input> | ||
212 | + </view> | ||
213 | + <view class="divide_line"></view> | ||
214 | + <view class='item_body'> | ||
215 | + <text class='text_666_28 float_left'>电子邮箱</text> | ||
216 | + <input class='input_wrap float_right' name='email'></input> | ||
217 | + </view> | ||
218 | + <view class="divide_line"></view> | ||
219 | + <!-- <view class='item_body'> | ||
220 | + <text class='text_666_28 float_left'>居住地</text> | ||
221 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
222 | + <text class='text_333_28 float_right'></text> | ||
223 | + </view> --> | ||
224 | + <template is="picker_cell_normal" data="{{...currentaddressInfo}}" /> | ||
225 | + <view class="divide_line"></view> | ||
226 | + <view class='item_body'> | ||
227 | + <text class='text_666_28 float_left'>详细地址</text> | ||
228 | + <input class='input_wrap float_right' name='current_address_detail'></input> | ||
229 | + </view> | ||
230 | + <view class="divide_line"></view> | ||
231 | + <!-- <view class='item_body'> | ||
232 | + <text class='text_666_28 float_left'>户籍所在地</text> | ||
233 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
234 | + <text class='text_333_28 float_right'></text> | ||
235 | + </view> --> | ||
236 | + <template is="picker_cell_normal" data="{{...birthaddressInfo}}" /> | ||
237 | + <view class="divide_line"></view> | ||
238 | + <view class='item_body'> | ||
239 | + <text class='text_666_28 float_left'>详细地址</text> | ||
240 | + <input class='input_wrap float_right' name='huji_address_detail'></input> | ||
241 | + </view> | ||
242 | + <view class="divide_line"></view> | ||
243 | + </view> | ||
244 | + | ||
245 | + </view> | ||
246 | + </view> | ||
247 | + | ||
248 | + <!-- 任职雇佣信息 --> | ||
249 | + <view class='head_wrap' style='margin-top:20rpx' bindtap='span' id='3'> | ||
250 | + <text class='head_text_wrap1'>任职雇佣信息</text> | ||
251 | + <text class='head_text_wrap2'>(点击收起非必填选项)</text> | ||
252 | + <view style='float:right' wx:if='{{isshow03}}'> | ||
253 | + <image class='head_image_wrap_up' src='/images/arrow_up.png'></image> | ||
254 | + </view> | ||
255 | + <view wx:else style='float:right'> | ||
256 | + <image class='head_image_wrap_down' src='/images/arrow_down.png'></image> | ||
257 | + </view> | ||
258 | + </view> | ||
259 | + | ||
260 | + <view class='data_list'> | ||
261 | + <view class='data_item'> | ||
262 | + <!-- <view class='item_body'> | ||
263 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
264 | + <text class='text_black_28 float_left'>是否股东、投资者</text> | ||
265 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
266 | + <text class='text_333_28 float_right'>是</text> | ||
267 | + </view> --> | ||
268 | + <template is="picker_cell_normal" data="{{...investInfo}}" /> | ||
269 | + <view class="divide_line"></view> | ||
270 | + <!-- <view class='item_body'> | ||
271 | + <text style='color:red;font-size: 28rpx;line-height: 80rpx;float:left'>*</text> | ||
272 | + <text class='text_black_28 float_left'>是否特定行业</text> | ||
273 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
274 | + <text class='text_333_28 float_right'></text> | ||
275 | + </view> --> | ||
276 | + <template is="picker_cell_normal" data="{{...specificIndustryInfo}}" /> | ||
277 | + <view hidden='{{!isshow03}}'> | ||
278 | + <view class="divide_line"></view> | ||
279 | + <!-- <view class='item_body'> | ||
280 | + <text class='text_666_28 float_left'>是否雇员</text> | ||
281 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
282 | + <text class='text_333_28 float_right'></text> | ||
283 | + </view> --> | ||
284 | + <template is="picker_cell_normal" data="{{...employeeInfo}}" /> | ||
285 | + <view class="divide_line"></view> | ||
286 | + <view class='item_body'> | ||
287 | + <text class='text_666_28 float_left'>公司股本总额</text> | ||
288 | + <input class='input_wrap float_right' name='company_equity_total' type='digit'></input> | ||
289 | + </view> | ||
290 | + <view class="divide_line"></view> | ||
291 | + <!-- <view class='item_body'> | ||
292 | + <text class='text_666_28 float_left'>在职受雇日期</text> | ||
293 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
294 | + <text class='text_333_28 float_right'></text> | ||
295 | + </view> --> | ||
296 | + <template is="picker_cell_normal" data="{{...startDate}}" /> | ||
297 | + | ||
298 | + <view class="divide_line"></view> | ||
299 | + <!-- <view class='item_body'> | ||
300 | + <text class='text_666_28 float_left'>离职日期</text> | ||
301 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
302 | + <text class='text_333_28 float_right'></text> | ||
303 | + </view> --> | ||
304 | + <template is="picker_cell_normal" data="{{...endDate}}" /> | ||
305 | + <view class="divide_line"></view> | ||
306 | + <view class='item_body'> | ||
307 | + <text class='text_666_28 float_left'>工号</text> | ||
308 | + <input class='input_wrap float_right' name='employee_no' type='number'></input> | ||
309 | + </view> | ||
310 | + <view class="divide_line"></view> | ||
311 | + <!-- <view class='item_body'> | ||
312 | + <text class='text_666_28 float_left'>是否天使投资个人</text> | ||
313 | + <image class='arrow_wrap' src='/images/arrow_right.png'></image> | ||
314 | + <text class='text_333_28 float_right'></text> | ||
315 | + </view> --> | ||
316 | + <template is="picker_cell_normal" data="{{...investpersonalInfo}}" /> | ||
317 | + <view class="divide_line"></view> | ||
318 | + <view class='item_body'> | ||
319 | + <text class='text_666_28 float_left'>个人投资总额</text> | ||
320 | + <input class='input_wrap float_right' name='personal_equity_total' type='digit'></input> | ||
321 | + </view> | ||
322 | + <view class="divide_line"></view> | ||
323 | + </view> | ||
324 | + | ||
325 | + | ||
326 | + <view style='width:100%'> | ||
327 | + <text class='text_666_28 float_left'>备注</text> | ||
328 | + <input class='extra_input float_right' value='' name='comment'></input> | ||
329 | + </view> | ||
330 | + </view> | ||
331 | + | ||
332 | + </view> | ||
333 | + | ||
334 | + <view style='background:#e8e8e8;height:150rpx'></view> | ||
335 | + | ||
336 | + <button class="btn_bottom" formType="submit"> 保存</button> | ||
337 | + </form> | ||
338 | +</view> | ||
339 | + | ||
340 | +<!-- 普通选择器 --> |
1 | -/* pages/main/addinfo/addinfo.wxss */ | ||
1 | +/* pages/main/addinfo/addinfo.wxss */ | ||
2 | + | ||
3 | +/* pages/main//editinfo/editinfo.wxss */ | ||
4 | + | ||
5 | +.page { | ||
6 | + background: #f8f8f8; | ||
7 | +} | ||
8 | + | ||
9 | +.head_wrap { | ||
10 | + height: 70rpx; | ||
11 | + background: #f7f9fd; | ||
12 | + padding-right: 20rpx; | ||
13 | + padding-left: 32rpx; | ||
14 | +} | ||
15 | + | ||
16 | +.head_red_star { | ||
17 | + color: red; | ||
18 | + font-size: 28rpx; | ||
19 | + line-height: 80rpx; | ||
20 | +} | ||
21 | + | ||
22 | +.head_text_wrap1 { | ||
23 | + font-family: PingFangSC-Regular; | ||
24 | + font-size: 12px; | ||
25 | + color: #999; | ||
26 | +} | ||
27 | + | ||
28 | +.head_text_wrap2 { | ||
29 | + font-family: PingFang-SC-Medium; | ||
30 | + font-size: 12px; | ||
31 | + color: #c9c9c9; | ||
32 | + letter-spacing: 0; | ||
33 | + text-align: left; | ||
34 | +} | ||
35 | + | ||
36 | +.head_image_wrap_down { | ||
37 | + width: 28rpx; | ||
38 | + height: 16rpx; | ||
39 | +} | ||
40 | + | ||
41 | +.head_image_wrap_up { | ||
42 | + width: 40rpx; | ||
43 | + height: 40rpx; | ||
44 | + margin-top: 16rpx; | ||
45 | +} | ||
46 | + | ||
47 | +.data_list { | ||
48 | + display: flex; | ||
49 | + font-family: PingFangSC-Regular; | ||
50 | + padding-left: 30rpx; | ||
51 | + padding-right: 30rpx; | ||
52 | + background: #fff; | ||
53 | +} | ||
54 | + | ||
55 | +.data_item { | ||
56 | + width: 100%; | ||
57 | + height: auto; | ||
58 | + flex-direction: column; | ||
59 | + display: flex; | ||
60 | +} | ||
61 | + | ||
62 | +.input_wrap { | ||
63 | + width: 500rpx; | ||
64 | + height: 80rpx; | ||
65 | + font-size: 28rpx; | ||
66 | + color: #333; | ||
67 | + text-align: right; | ||
68 | + overflow: hidden; | ||
69 | + text-overflow: ellipsis; | ||
70 | + white-space: nowrap; | ||
71 | +} | ||
72 | + | ||
73 | +.text_666_28 { | ||
74 | + font-family: PingFangSC-Regular; | ||
75 | + font-size: 28rpx; | ||
76 | + color: #666; | ||
77 | + text-align: right; | ||
78 | + line-height: 80rpx; | ||
79 | +} | ||
80 | + | ||
81 | +.image_camera { | ||
82 | + width: 42rpx; | ||
83 | + height: 42rpx; | ||
84 | + margin-left: 10rpx; | ||
85 | + margin-top: 22rpx; | ||
86 | +} | ||
87 | + | ||
88 | +.extra_input { | ||
89 | + width: 600rpx; | ||
90 | + font-size: 28rpx; | ||
91 | + color: #333; | ||
92 | + float: right; | ||
93 | + text-aligh: right; | ||
94 | + line-height: 40rpx; | ||
95 | + padding: 16rpx 0; | ||
96 | + word-wrap: break-word; | ||
97 | +} | ||
98 | + | ||
99 | +.divide_line { | ||
100 | + background: #e5e5e5; | ||
101 | + width: 100%; | ||
102 | + height: 2rpx; | ||
103 | +} |
@@ -50,6 +50,7 @@ Page({ | @@ -50,6 +50,7 @@ Page({ | ||
50 | label: '是否境外人员', | 50 | label: '是否境外人员', |
51 | bindtype: 'forigner', | 51 | bindtype: 'forigner', |
52 | selected: '否', | 52 | selected: '否', |
53 | + disabled: true, | ||
53 | values: ["否", "是"], | 54 | values: ["否", "是"], |
54 | onChange: 'onPickerSelect' | 55 | onChange: 'onPickerSelect' |
55 | }, | 56 | }, |
@@ -497,7 +498,7 @@ Page({ | @@ -497,7 +498,7 @@ Page({ | ||
497 | }) | 498 | }) |
498 | }, | 499 | }, |
499 | 500 | ||
500 | - formBindSubmit: function(e) { | 501 | + formSubmit: function(e) { |
501 | var formdata = e.detail.value; | 502 | var formdata = e.detail.value; |
502 | var toast_title= '' | 503 | var toast_title= '' |
503 | console.log("formdata", formdata); | 504 | console.log("formdata", formdata); |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <import src="../../common/picker_cell" /> | 2 | <import src="../../common/picker_cell" /> |
3 | 3 | ||
4 | <view class='page'> | 4 | <view class='page'> |
5 | - <form bindsubmit='formBindSubmit'> | 5 | + <form bindsubmit='formSubmit'> |
6 | 6 | ||
7 | <!-- 成员关系 --> | 7 | <!-- 成员关系 --> |
8 | <view class='head_wrap' hidden="{{isself}}"> | 8 | <view class='head_wrap' hidden="{{isself}}"> |
请
注册
或
登录
后发表评论