提交 75f064347ce16a51d0fa7b35968d4957a35186f6

作者 wangyu
1 个父辈 77df475f

自然人基础信息增加开户银行省份字段

1 var format = require('../../../../utils/util.js'); 1 var format = require('../../../../utils/util.js');
  2 +var province = require('../../../../utils/province.js');
2 var app = getApp(); 3 var app = getApp();
3 var baseUrl = app.globalData.baseUrl; 4 var baseUrl = app.globalData.baseUrl;
4 const reg_18_Number = /^[0-9]{18}$/; 5 const reg_18_Number = /^[0-9]{18}$/;
@@ -16,10 +17,11 @@ Page({ @@ -16,10 +17,11 @@ Page({
16 * 页面的初始数据 17 * 页面的初始数据
17 */ 18 */
18 data: { 19 data: {
  20 + province: [],
19 isshow01: false, 21 isshow01: false,
20 isshow02: false, 22 isshow02: false,
21 isshow03: false, 23 isshow03: false,
22 - hasOtherCard:false, 24 + hasOtherCard: false,
23 taxInfo: {}, 25 taxInfo: {},
24 proffessionlist: {}, 26 proffessionlist: {},
25 banklist: {}, 27 banklist: {},
@@ -32,7 +34,7 @@ Page({ @@ -32,7 +34,7 @@ Page({
32 birthday: '', 34 birthday: '',
33 idInfoData: '', 35 idInfoData: '',
34 id_error: false, 36 id_error: false,
35 - has_certify:false, 37 + has_certify: false,
36 curAddress_haschanged: false, 38 curAddress_haschanged: false,
37 birthAddress_haschanged: false, 39 birthAddress_haschanged: false,
38 contactAddress_haschanged: false, 40 contactAddress_haschanged: false,
@@ -40,8 +42,8 @@ Page({ @@ -40,8 +42,8 @@ Page({
40 long_birth_date: 0, 42 long_birth_date: 0,
41 long_start_date: 0, 43 long_start_date: 0,
42 long_end_date: 0, 44 long_end_date: 0,
43 - personal_equity_total:0,  
44 - company_equity_total:0, 45 + personal_equity_total: 0,
  46 + company_equity_total: 0,
45 huji_address_detail: '', 47 huji_address_detail: '',
46 personstatusData: { 48 personstatusData: {
47 isrequre: true, 49 isrequre: true,
@@ -104,7 +106,7 @@ Page({ @@ -104,7 +106,7 @@ Page({
104 label: '纳税人类型', 106 label: '纳税人类型',
105 bindtype: 'taxpayerType', 107 bindtype: 'taxpayerType',
106 placeholder: '请选择纳税人类型', 108 placeholder: '请选择纳税人类型',
107 - selected:"居民", 109 + selected: "居民",
108 values: ["居民", "非居民"], 110 values: ["居民", "非居民"],
109 onChange: 'onPickerSelect' 111 onChange: 'onPickerSelect'
110 }, 112 },
@@ -114,18 +116,26 @@ Page({ @@ -114,18 +116,26 @@ Page({
114 bindtype: 'forigner', 116 bindtype: 'forigner',
115 placeholder: '请选择', 117 placeholder: '请选择',
116 disabled: true, 118 disabled: true,
117 - selected:"否", 119 + selected: "否",
118 values: ["否", "是"], 120 values: ["否", "是"],
119 onChange: 'onPickerSelect' 121 onChange: 'onPickerSelect'
120 }, 122 },
121 bankInfo: { 123 bankInfo: {
122 label: '开户银行', 124 label: '开户银行',
123 bindtype: 'bank', 125 bindtype: 'bank',
124 - maxWidth:490, 126 + maxWidth: 490,
125 placeholder: '请选择开户银行', 127 placeholder: '请选择开户银行',
126 selected: '', 128 selected: '',
127 onChange: 'onPickerSelect' 129 onChange: 'onPickerSelect'
128 }, 130 },
  131 + bankProvinceInfo: {
  132 + label: '开户银行省份',
  133 + bindtype: 'bank_province',
  134 + maxWidth: 490,
  135 + placeholder: '请选择开户银行省份',
  136 + selected: '',
  137 + onChange: 'onPickerSelect'
  138 + },
129 genderData: { 139 genderData: {
130 label: '性别', 140 label: '性别',
131 isrequre: true, 141 isrequre: true,
@@ -216,7 +226,7 @@ Page({ @@ -216,7 +226,7 @@ Page({
216 // 时间picker 226 // 时间picker
217 birthDate: { 227 birthDate: {
218 label: '出生日期', 228 label: '出生日期',
219 - isrequre:true, 229 + isrequre: true,
220 bindtype: 'birthday', 230 bindtype: 'birthday',
221 placeholder: '出生日期', 231 placeholder: '出生日期',
222 selected: '', 232 selected: '',
@@ -306,7 +316,7 @@ Page({ @@ -306,7 +316,7 @@ Page({
306 * 生命周期函数--监听页面加载 316 * 生命周期函数--监听页面加载
307 */ 317 */
308 onLoad: function(options) { 318 onLoad: function(options) {
309 - 319 +
310 console.log('options.id', options.id) 320 console.log('options.id', options.id)
311 if (options.id && options.id.length > 0) { 321 if (options.id && options.id.length > 0) {
312 this.setData({ 322 this.setData({
@@ -317,9 +327,28 @@ Page({ @@ -317,9 +327,28 @@ Page({
317 this.getproffessiondata() 327 this.getproffessiondata()
318 this.getbanklist() 328 this.getbanklist()
319 this.getCountry() 329 this.getCountry()
  330 + this.loadProvince()
320 }, 331 },
321 -//****************获取国籍数据************/  
322 - getCountry: function () { 332 +
  333 +//****************获取开户行省份************/
  334 + loadProvince: function () {
  335 + province.init(this)
  336 + var provincelist = this.data.province
  337 + var province_data = []
  338 + var bankprovince_info = this.data.bankProvinceInfo
  339 + for (var i = 0; i < provincelist.length; i++) {
  340 + province_data.push(provincelist[i].name)
  341 + }
  342 +
  343 + bankprovince_info.values = province_data
  344 + this.setData({
  345 + bankProvinceInfo: bankprovince_info
  346 + })
  347 + console.log("bankProvinceInfo", this.data.bankProvinceInfo)
  348 + },
  349 +
  350 + //****************获取国籍数据************/
  351 + getCountry: function() {
323 var that = this 352 var that = this
324 wx.showLoading({ 353 wx.showLoading({
325 title: '', 354 title: '',
@@ -332,7 +361,7 @@ Page({ @@ -332,7 +361,7 @@ Page({
332 'content-type': 'application/json', // 默认值 361 'content-type': 'application/json', // 默认值
333 "Authorization": Authorization 362 "Authorization": Authorization
334 }, 363 },
335 - success: function (res) { 364 + success: function(res) {
336 var countrys = res.data.concat() 365 var countrys = res.data.concat()
337 that.data.birthCountryData.values = res.data 366 that.data.birthCountryData.values = res.data
338 if (countrys.indexOf('中国') > -1) { 367 if (countrys.indexOf('中国') > -1) {
@@ -364,7 +393,7 @@ Page({ @@ -364,7 +393,7 @@ Page({
364 }, 393 },
365 394
366 395
367 -//****************获取自然人数据************/ 396 + //****************获取自然人数据************/
368 getpersonalTax: function(id) { 397 getpersonalTax: function(id) {
369 var that = this 398 var that = this
370 wx.showLoading({ 399 wx.showLoading({
@@ -383,7 +412,7 @@ Page({ @@ -383,7 +412,7 @@ Page({
383 that.setData({ 412 that.setData({
384 taxInfo: res.data, 413 taxInfo: res.data,
385 // isself: '魏先森' != res.data.name ? false : true 414 // isself: '魏先森' != res.data.name ? false : true
386 - isself: res.data.family_ties=="本人" ? true : false 415 + isself: res.data.family_ties == "本人" ? true : false
387 }) 416 })
388 that.handleDatas(res.data) 417 that.handleDatas(res.data)
389 }, 418 },
@@ -398,16 +427,16 @@ Page({ @@ -398,16 +427,16 @@ Page({
398 }, 427 },
399 428
400 //对各参数初始赋值 429 //对各参数初始赋值
401 - handleDatas: function (tax_info) { 430 + handleDatas: function(tax_info) {
402 //todo 431 //todo
403 console.log('tax_info', tax_info) 432 console.log('tax_info', tax_info)
404 var curdate = format.curDateTime() 433 var curdate = format.curDateTime()
405 - this.dealCardType(tax_info.id_card_type)//为防止干扰其他字段,需要先执行 434 + this.dealCardType(tax_info.id_card_type) //为防止干扰其他字段,需要先执行
406 435
407 this.data.name = tax_info.name 436 this.data.name = tax_info.name
408 this.data.other_name = tax_info.other_name 437 this.data.other_name = tax_info.other_name
409 - if (tax_info.certification_status == 'active' && tax_info.id_card_no.length) {//已通过拍摄身份证认证过,不能修改  
410 - if (tax_info.id_card_type=='居民身份证'){ 438 + if (tax_info.certification_status == 'active' && tax_info.id_card_no.length) { //已通过拍摄身份证认证过,不能修改
  439 + if (tax_info.id_card_type == '居民身份证') {
411 this.data.genderData.disabled = true 440 this.data.genderData.disabled = true
412 this.data.birthDate.disabled = true 441 this.data.birthDate.disabled = true
413 } 442 }
@@ -424,7 +453,7 @@ Page({ @@ -424,7 +453,7 @@ Page({
424 453
425 this.data.other_card_number = tax_info.other_id_card_no 454 this.data.other_card_number = tax_info.other_id_card_no
426 this.data.overseas = tax_info.is_overseas_personnel 455 this.data.overseas = tax_info.is_overseas_personnel
427 - if (tax_info.native){ 456 + if (tax_info.native) {
428 this.data.countryData.selected = tax_info.native 457 this.data.countryData.selected = tax_info.native
429 } 458 }
430 this.data.birthCountryData.selected = tax_info.birth_native 459 this.data.birthCountryData.selected = tax_info.birth_native
@@ -436,7 +465,7 @@ Page({ @@ -436,7 +465,7 @@ Page({
436 this.data.mobile = tax_info.mobile 465 this.data.mobile = tax_info.mobile
437 this.data.investInfo.selected = tax_info.is_investor 466 this.data.investInfo.selected = tax_info.is_investor
438 this.data.specificIndustryInfo.selected = tax_info.is_specific_profession 467 this.data.specificIndustryInfo.selected = tax_info.is_specific_profession
439 - 468 +
440 this.data.genderData.selected = tax_info.gender 469 this.data.genderData.selected = tax_info.gender
441 if (tax_info.birth_date == -62135596800 || tax_info.birth_date == 0) { 470 if (tax_info.birth_date == -62135596800 || tax_info.birth_date == 0) {
442 this.data.birthDate.selected = '' 471 this.data.birthDate.selected = ''
@@ -444,17 +473,17 @@ Page({ @@ -444,17 +473,17 @@ Page({
444 // this.data.birthDate.selected = format.yearFormString(tax_info.birth_date) + '-' + format.monthFormString(tax_info.birth_date) + '-' + format.dayFormString(tax_info.birth_date) 473 // this.data.birthDate.selected = format.yearFormString(tax_info.birth_date) + '-' + format.monthFormString(tax_info.birth_date) + '-' + format.dayFormString(tax_info.birth_date)
445 this.data.birthDate.selected = tax_info.birth_date_str //format.formatTime_date(tax_info.birth_date) 474 this.data.birthDate.selected = tax_info.birth_date_str //format.formatTime_date(tax_info.birth_date)
446 } 475 }
447 -//非必填 476 + //非必填
448 if (tax_info.join_date > 1000) { 477 if (tax_info.join_date > 1000) {
449 // this.data.startDate.selected = format.yearFormString(tax_info.join_date) + '-' + format.monthFormString(tax_info.join_date) + '-' + format.dayFormString(tax_info.join_date) 478 // this.data.startDate.selected = format.yearFormString(tax_info.join_date) + '-' + format.monthFormString(tax_info.join_date) + '-' + format.dayFormString(tax_info.join_date)
450 - this.data.startDate.selected = format.formatTime_date(tax_info.join_date) 479 + this.data.startDate.selected = format.formatTime_date(tax_info.join_date)
451 } 480 }
452 if (tax_info.separate_date > 1000) { 481 if (tax_info.separate_date > 1000) {
453 - this.data.endDate.selected = format.formatTime_date(tax_info.separate_date) 482 + this.data.endDate.selected = format.formatTime_date(tax_info.separate_date)
454 } 483 }
455 const firstEntryDate = format.formatTime_date(tax_info.first_entry_date) 484 const firstEntryDate = format.formatTime_date(tax_info.first_entry_date)
456 const predictLeaveDate = format.formatTime_date(tax_info.predict_leave_date) 485 const predictLeaveDate = format.formatTime_date(tax_info.predict_leave_date)
457 - this.data.firstEntryDate.selected = (firstEntryDate.indexOf("01-01-01") == -1) ? firstEntryDate:'' 486 + this.data.firstEntryDate.selected = (firstEntryDate.indexOf("01-01-01") == -1) ? firstEntryDate : ''
458 this.data.firstEntryDate.datelong = tax_info.first_entry_date 487 this.data.firstEntryDate.datelong = tax_info.first_entry_date
459 this.data.predictLeaveDate.selected = (predictLeaveDate.indexOf("01-01-01") == -1) ? predictLeaveDate : '' 488 this.data.predictLeaveDate.selected = (predictLeaveDate.indexOf("01-01-01") == -1) ? predictLeaveDate : ''
460 this.data.predictLeaveDate.datelong = tax_info.predict_leave_date 489 this.data.predictLeaveDate.datelong = tax_info.predict_leave_date
@@ -468,6 +497,7 @@ Page({ @@ -468,6 +497,7 @@ Page({
468 this.data.lieshuInfo.selected = tax_info.is_martyr_family 497 this.data.lieshuInfo.selected = tax_info.is_martyr_family
469 this.data.lonelyolderInfo.selected = tax_info.is_lonely_man 498 this.data.lonelyolderInfo.selected = tax_info.is_lonely_man
470 this.data.bankInfo.selected = tax_info.bank 499 this.data.bankInfo.selected = tax_info.bank
  500 + this.data.bankProvinceInfo.selected = tax_info.bank_province
471 this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district 501 this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district
472 this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district 502 this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district
473 this.data.birthaddressInfo.selected = (tax_info.huji_address.province + tax_info.huji_address.city + tax_info.huji_address.district).replace(/(^\s*)|(\s*$)/g, "") 503 this.data.birthaddressInfo.selected = (tax_info.huji_address.province + tax_info.huji_address.city + tax_info.huji_address.district).replace(/(^\s*)|(\s*$)/g, "")
@@ -485,8 +515,9 @@ Page({ @@ -485,8 +515,9 @@ Page({
485 specificIndustryInfo: this.data.specificIndustryInfo, 515 specificIndustryInfo: this.data.specificIndustryInfo,
486 genderData: this.data.genderData, 516 genderData: this.data.genderData,
487 bankInfo: this.data.bankInfo, 517 bankInfo: this.data.bankInfo,
  518 + bankProvinceInfo: this.data.bankProvinceInfo,
488 personal_equity_total: tax_info.personal_equity_total ? tax_info.personal_equity_total : 0, 519 personal_equity_total: tax_info.personal_equity_total ? tax_info.personal_equity_total : 0,
489 - company_equity_total: tax_info.company_equity_total ? tax_info.company_equity_total: 0, 520 + company_equity_total: tax_info.company_equity_total ? tax_info.company_equity_total : 0,
490 521
491 professionData: this.data.professionData, 522 professionData: this.data.professionData,
492 degreeData: this.data.degreeData, 523 degreeData: this.data.degreeData,
@@ -501,7 +532,7 @@ Page({ @@ -501,7 +532,7 @@ Page({
501 532
502 long_birth_date: tax_info.birth_date, 533 long_birth_date: tax_info.birth_date,
503 birthDate: this.data.birthDate, 534 birthDate: this.data.birthDate,
504 - long_start_date: tax_info.join_date ? tax_info.join_date:0, 535 + long_start_date: tax_info.join_date ? tax_info.join_date : 0,
505 startDate: this.data.startDate, 536 startDate: this.data.startDate,
506 long_end_date: tax_info.separate_date ? tax_info.separate_date : 0, 537 long_end_date: tax_info.separate_date ? tax_info.separate_date : 0,
507 endDate: this.data.endDate, 538 endDate: this.data.endDate,
@@ -531,7 +562,7 @@ Page({ @@ -531,7 +562,7 @@ Page({
531 "Authorization": Authorization 562 "Authorization": Authorization
532 }, 563 },
533 success: function(res) { 564 success: function(res) {
534 - if (res.data.items.length<1){ 565 + if (res.data.items.length < 1) {
535 return 566 return
536 } 567 }
537 proffession_info.values = that.handleProfession(res.data.items) 568 proffession_info.values = that.handleProfession(res.data.items)
@@ -617,7 +648,7 @@ Page({ @@ -617,7 +648,7 @@ Page({
617 }, 648 },
618 success: function(res) { 649 success: function(res) {
619 console.log(res) 650 console.log(res)
620 - bank_info.values = res.data.banks//that.handleBankinfo(res.data.items) 651 + bank_info.values = res.data.banks //that.handleBankinfo(res.data.items)
621 652
622 that.setData({ 653 that.setData({
623 // banklist: res.data.items, 654 // banklist: res.data.items,
@@ -692,7 +723,7 @@ Page({ @@ -692,7 +723,7 @@ Page({
692 // return 723 // return
693 // } 724 // }
694 that.setData({ 725 that.setData({
695 - has_certify:true, 726 + has_certify: true,
696 idInfoData: id_info, 727 idInfoData: id_info,
697 name: id_info.name, 728 name: id_info.name,
698 birthday: birth_day, 729 birthday: birth_day,
@@ -716,7 +747,7 @@ Page({ @@ -716,7 +747,7 @@ Page({
716 }, 747 },
717 748
718 span: function(e) { 749 span: function(e) {
719 - console.log(e,'9808909') 750 + console.log(e, '9808909')
720 if ("1" == e.currentTarget.id) { 751 if ("1" == e.currentTarget.id) {
721 this.setData({ 752 this.setData({
722 isshow01: !this.data.isshow01 753 isshow01: !this.data.isshow01
@@ -733,7 +764,7 @@ Page({ @@ -733,7 +764,7 @@ Page({
733 764
734 }, 765 },
735 766
736 - dealCardType: function (new_type){ 767 + dealCardType: function(new_type) {
737 // console.log('cardtype_code', new_type_code) 768 // console.log('cardtype_code', new_type_code)
738 console.log('cardtype', new_type) 769 console.log('cardtype', new_type)
739 var is_idcard = this.data.isIdCard 770 var is_idcard = this.data.isIdCard
@@ -767,12 +798,12 @@ Page({ @@ -767,12 +798,12 @@ Page({
767 this.data.countryData.selected = '' 798 this.data.countryData.selected = ''
768 this.data.countryData.disabled = false 799 this.data.countryData.disabled = false
769 this.data.nameText = '英文名' 800 this.data.nameText = '英文名'
770 - if (new_type.indexOf('通行证') != -1){  
771 - this.data.otherCardtypeData.values = ['港澳居民居住证'];// [{ 'code': '4', 'name': '港澳居民居住证'}]; 801 + if (new_type.indexOf('通行证') != -1) {
  802 + this.data.otherCardtypeData.values = ['港澳居民居住证']; // [{ 'code': '4', 'name': '港澳居民居住证'}];
772 this.data.otherCardtypeData.isrequre = false 803 this.data.otherCardtypeData.isrequre = false
773 - }else{  
774 - this.data.otherCardtypeData.values = ['港澳居民来往内地通行证'];// [{ 'code': '3', 'name': '港澳居民来往内地通行证'}];  
775 - this.data.otherCardtypeData.selected = '港澳居民来往内地通行证'; 804 + } else {
  805 + this.data.otherCardtypeData.values = ['港澳居民来往内地通行证']; // [{ 'code': '3', 'name': '港澳居民来往内地通行证'}];
  806 + this.data.otherCardtypeData.selected = '港澳居民来往内地通行证';
776 this.data.otherCardtypeData.isrequre = true 807 this.data.otherCardtypeData.isrequre = true
777 } 808 }
778 } else if (new_type.indexOf("台湾") != -1) { 809 } else if (new_type.indexOf("台湾") != -1) {
@@ -780,11 +811,11 @@ Page({ @@ -780,11 +811,11 @@ Page({
780 this.data.countryData.disabled = true 811 this.data.countryData.disabled = true
781 this.data.nameText = '英文名' 812 this.data.nameText = '英文名'
782 if (new_type.indexOf('通行证') != -1) { 813 if (new_type.indexOf('通行证') != -1) {
783 - this.data.otherCardtypeData.values = ['台湾居民居住证'];//[{ 'code': '6', 'name': '台湾居民居住证' }]; 814 + this.data.otherCardtypeData.values = ['台湾居民居住证']; //[{ 'code': '6', 'name': '台湾居民居住证' }];
784 this.data.otherCardtypeData.isrequre = false 815 this.data.otherCardtypeData.isrequre = false
785 } else { 816 } else {
786 this.data.otherCardtypeData.values = ['台湾居民来往大陆通行证']; //[{ 'code': '5', 'name': '台湾居民来往大陆通行证' }]; 817 this.data.otherCardtypeData.values = ['台湾居民来往大陆通行证']; //[{ 'code': '5', 'name': '台湾居民来往大陆通行证' }];
787 - this.data.otherCardtypeData.selected = '台湾居民来往大陆通行证'; 818 + this.data.otherCardtypeData.selected = '台湾居民来往大陆通行证';
788 this.data.otherCardtypeData.isrequre = true 819 this.data.otherCardtypeData.isrequre = true
789 } 820 }
790 821
@@ -794,12 +825,12 @@ Page({ @@ -794,12 +825,12 @@ Page({
794 this.data.countryData.disabled = false 825 this.data.countryData.disabled = false
795 this.data.nameText = '中文名' 826 this.data.nameText = '中文名'
796 if (new_type.indexOf("外国护照") != -1) { 827 if (new_type.indexOf("外国护照") != -1) {
797 - // this.data.otherCardtypeData.values = [{ 'code': '8', 'name': '外国人永久居留身份证' }, { 'code': '9', 'name': '外国人工作许可证(A类)' }, { 'code': '10', 'name': '外国人工作许可证(B类)' }, { 'code': '11', 'name': '外国人工作许可证(C类)' }];  
798 - this.data.otherCardtypeData.values = ['外国人永久居留身份证', '外国人工作许可证(A类)', '外国人工作许可证(B类)','外国人工作许可证(C类)']; 828 + // this.data.otherCardtypeData.values = [{ 'code': '8', 'name': '外国人永久居留身份证' }, { 'code': '9', 'name': '外国人工作许可证(A类)' }, { 'code': '10', 'name': '外国人工作许可证(B类)' }, { 'code': '11', 'name': '外国人工作许可证(C类)' }];
  829 + this.data.otherCardtypeData.values = ['外国人永久居留身份证', '外国人工作许可证(A类)', '外国人工作许可证(B类)', '外国人工作许可证(C类)'];
799 this.data.otherCardtypeData.isrequre = false 830 this.data.otherCardtypeData.isrequre = false
800 } else { 831 } else {
801 this.data.otherCardtypeData.values = ['外国护照']; //[{ 'code': '7', 'name': '外国护照' }]; 832 this.data.otherCardtypeData.values = ['外国护照']; //[{ 'code': '7', 'name': '外国护照' }];
802 - this.data.otherCardtypeData.selected = '外国护照'; 833 + this.data.otherCardtypeData.selected = '外国护照';
803 this.data.otherCardtypeData.isrequre = true 834 this.data.otherCardtypeData.isrequre = true
804 } 835 }
805 } 836 }
@@ -815,8 +846,8 @@ Page({ @@ -815,8 +846,8 @@ Page({
815 overseas: this.data.overseas, 846 overseas: this.data.overseas,
816 taxpayerTypeData: this.data.taxpayerTypeData 847 taxpayerTypeData: this.data.taxpayerTypeData
817 }) 848 })
818 -  
819 - 849 +
  850 +
820 }, 851 },
821 852
822 853
@@ -837,10 +868,12 @@ Page({ @@ -837,10 +868,12 @@ Page({
837 var selected = cardtypeData.selected 868 var selected = cardtypeData.selected
838 if (new_type != selected) { 869 if (new_type != selected) {
839 this.dealCardType(new_type) 870 this.dealCardType(new_type)
840 - var setData = { card_number: ''} 871 + var setData = {
  872 + card_number: ''
  873 + }
841 if ((new_type.indexOf('外国人') != -1) && (selected.indexOf('外国人') != -1)) { 874 if ((new_type.indexOf('外国人') != -1) && (selected.indexOf('外国人') != -1)) {
842 console.log('外国人', new_type, selected) 875 console.log('外国人', new_type, selected)
843 - }else { 876 + } else {
844 setData.other_card_number = '' 877 setData.other_card_number = ''
845 } 878 }
846 this.setData(setData) 879 this.setData(setData)
@@ -880,19 +913,19 @@ Page({ @@ -880,19 +913,19 @@ Page({
880 }) 913 })
881 } 914 }
882 break; 915 break;
883 - // case 'tax_reason':  
884 - // var taxReasonData = this.data.taxReasonData  
885 - // var reason = taxReasonData.values[e.detail.value]  
886 - // if (reason != taxReasonData.selected) {  
887 - // taxReasonData.selected = reason  
888 - // this.setData({  
889 - // taxReasonData: taxReasonData  
890 - // })  
891 - // }  
892 - // break; 916 + // case 'tax_reason':
  917 + // var taxReasonData = this.data.taxReasonData
  918 + // var reason = taxReasonData.values[e.detail.value]
  919 + // if (reason != taxReasonData.selected) {
  920 + // taxReasonData.selected = reason
  921 + // this.setData({
  922 + // taxReasonData: taxReasonData
  923 + // })
  924 + // }
  925 + // break;
893 case 'taxpayerType': 926 case 'taxpayerType':
894 var taxpayerTypeData = this.data.taxpayerTypeData 927 var taxpayerTypeData = this.data.taxpayerTypeData
895 - taxpayerTypeData.selected = taxpayerTypeData.values[e.detail.value] 928 + taxpayerTypeData.selected = taxpayerTypeData.values[e.detail.value]
896 this.setData({ 929 this.setData({
897 taxpayerTypeData: taxpayerTypeData 930 taxpayerTypeData: taxpayerTypeData
898 }) 931 })
@@ -911,6 +944,13 @@ Page({ @@ -911,6 +944,13 @@ Page({
911 bankInfo: bank_data 944 bankInfo: bank_data
912 }) 945 })
913 break; 946 break;
  947 + case 'bank_province':
  948 + var bankprovince_data = this.data.bankProvinceInfo
  949 + bankprovince_data.selected = bankprovince_data.values[e.detail.value]
  950 + this.setData({
  951 + bankProvinceInfo: bankprovince_data
  952 + })
  953 + break;
914 case 'gender': 954 case 'gender':
915 var gender_data = this.data.genderData 955 var gender_data = this.data.genderData
916 gender_data.selected = gender_data.values[e.detail.value] 956 gender_data.selected = gender_data.values[e.detail.value]
@@ -989,7 +1029,7 @@ Page({ @@ -989,7 +1029,7 @@ Page({
989 this.data.firstEntryDate.selected = e.detail.value 1029 this.data.firstEntryDate.selected = e.detail.value
990 this.data.firstEntryDate.datelong = Date.parse(new Date(e.detail.value)) / 1000 1030 this.data.firstEntryDate.datelong = Date.parse(new Date(e.detail.value)) / 1000
991 this.data.predictLeaveDate.start = e.detail.value 1031 this.data.predictLeaveDate.start = e.detail.value
992 - if (this.data.firstEntryDate.datelong>this.data.predictLeaveDate.datelong){ 1032 + if (this.data.firstEntryDate.datelong > this.data.predictLeaveDate.datelong) {
993 this.data.predictLeaveDate.selected = '' 1033 this.data.predictLeaveDate.selected = ''
994 } 1034 }
995 this.setData({ 1035 this.setData({
@@ -1106,7 +1146,7 @@ Page({ @@ -1106,7 +1146,7 @@ Page({
1106 other_name: e.detail.value 1146 other_name: e.detail.value
1107 }) 1147 })
1108 }, 1148 },
1109 - idcardblur: function (e) { 1149 + idcardblur: function(e) {
1110 var idCardNo = e.detail.value 1150 var idCardNo = e.detail.value
1111 this.setData({ 1151 this.setData({
1112 card_number: idCardNo 1152 card_number: idCardNo
@@ -1141,8 +1181,8 @@ Page({ @@ -1141,8 +1181,8 @@ Page({
1141 if (this.data.isIdCard && !format.isIDCardNum(idCardNo)) { 1181 if (this.data.isIdCard && !format.isIDCardNum(idCardNo)) {
1142 this.showtoast('证照号码有误'); 1182 this.showtoast('证照号码有误');
1143 return; 1183 return;
1144 - }  
1145 - if (this.data.isIdCard){ 1184 + }
  1185 + if (this.data.isIdCard) {
1146 this.dealIdInfo(idCardNo) 1186 this.dealIdInfo(idCardNo)
1147 return; 1187 return;
1148 } 1188 }
@@ -1151,7 +1191,7 @@ Page({ @@ -1151,7 +1191,7 @@ Page({
1151 return 1191 return
1152 } 1192 }
1153 } 1193 }
1154 - if (e.detail.value.length == 9){ 1194 + if (e.detail.value.length == 9) {
1155 if (this.data.cardtypeData.selected.indexOf('中国护照') > -1 && !reg_9_n_a.test(idCardNo)) { 1195 if (this.data.cardtypeData.selected.indexOf('中国护照') > -1 && !reg_9_n_a.test(idCardNo)) {
1156 this.showtoast('证照号码有误'); 1196 this.showtoast('证照号码有误');
1157 return 1197 return
@@ -1165,7 +1205,7 @@ Page({ @@ -1165,7 +1205,7 @@ Page({
1165 } 1205 }
1166 }, 1206 },
1167 //根据身份证号码,获取相关信息 1207 //根据身份证号码,获取相关信息
1168 - dealIdInfo: function (idCardNum) { 1208 + dealIdInfo: function(idCardNum) {
1169 var info = format.analyzeIDCard(idCardNum) 1209 var info = format.analyzeIDCard(idCardNum)
1170 console.log('info', info.age, info.sex) 1210 console.log('info', info.age, info.sex)
1171 if (info.age) { 1211 if (info.age) {
@@ -1184,14 +1224,14 @@ Page({ @@ -1184,14 +1224,14 @@ Page({
1184 }) 1224 })
1185 } 1225 }
1186 }, 1226 },
1187 - personalmoney:function(e){ 1227 + personalmoney: function(e) {
1188 console.log('personalmoney', e) 1228 console.log('personalmoney', e)
1189 this.setData({ 1229 this.setData({
1190 personal_equity_total: e.detail.value 1230 personal_equity_total: e.detail.value
1191 }) 1231 })
1192 }, 1232 },
1193 1233
1194 - companymoney:function(e){ 1234 + companymoney: function(e) {
1195 console.log('companymoney', e) 1235 console.log('companymoney', e)
1196 this.setData({ 1236 this.setData({
1197 company_equity_total: e.detail.value 1237 company_equity_total: e.detail.value
@@ -1202,8 +1242,8 @@ Page({ @@ -1202,8 +1242,8 @@ Page({
1202 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$"); 1242 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$");
1203 var regMobile = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/; 1243 var regMobile = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[8-9])[0-9]{8}$/;
1204 // var regname = /^[\u4E00-\u9FA5A-Za-z·s]{2,20}$/; 1244 // var regname = /^[\u4E00-\u9FA5A-Za-z·s]{2,20}$/;
1205 - var regname_c = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,30}$/; //中文  
1206 - var regname_e = /^[A-Za-z][A-Za-z\s]*[A-Za-z]$/; //英文 1245 + var regname_c = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,30}$/; //中文
  1246 + var regname_e = /^[A-Za-z][A-Za-z\s]*[A-Za-z]$/; //英文
1207 // var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/; 1247 // var regname = /^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/;
1208 // var regMoney = /^[0-9]*(\.[0,9]{1,2})?$/; 1248 // var regMoney = /^[0-9]*(\.[0,9]{1,2})?$/;
1209 var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/ 1249 var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/
@@ -1212,7 +1252,7 @@ Page({ @@ -1212,7 +1252,7 @@ Page({
1212 if (this.data.cardtypeData.selected.length < 1) { 1252 if (this.data.cardtypeData.selected.length < 1) {
1213 this.showtoast('请选择证照类型'); 1253 this.showtoast('请选择证照类型');
1214 return 1254 return
1215 - } 1255 + }
1216 if (this.data.card_number.length < 1) { 1256 if (this.data.card_number.length < 1) {
1217 this.showtoast('请填写证照号码'); 1257 this.showtoast('请填写证照号码');
1218 return 1258 return
@@ -1235,7 +1275,7 @@ Page({ @@ -1235,7 +1275,7 @@ Page({
1235 } else if (this.data.name.length > 0 && !regname_c.test(this.data.name)) { 1275 } else if (this.data.name.length > 0 && !regname_c.test(this.data.name)) {
1236 // this.showtoast('请输入正确姓名'); 1276 // this.showtoast('请输入正确姓名');
1237 // return 1277 // return
1238 - } 1278 + }
1239 if (this.data.genderData.selected.length < 1) { 1279 if (this.data.genderData.selected.length < 1) {
1240 this.showtoast('请选择性别'); 1280 this.showtoast('请选择性别');
1241 return 1281 return
@@ -1243,7 +1283,7 @@ Page({ @@ -1243,7 +1283,7 @@ Page({
1243 if (this.data.birthDate.selected.length < 1) { 1283 if (this.data.birthDate.selected.length < 1) {
1244 this.showtoast('请选择出生日期'); 1284 this.showtoast('请选择出生日期');
1245 return 1285 return
1246 - } 1286 + }
1247 if (this.data.countryData.selected.length < 1) { 1287 if (this.data.countryData.selected.length < 1) {
1248 this.showtoast('请选择国籍'); 1288 this.showtoast('请选择国籍');
1249 return 1289 return
@@ -1251,11 +1291,11 @@ Page({ @@ -1251,11 +1291,11 @@ Page({
1251 if (this.data.taxpayerTypeData.selected.length < 1) { 1291 if (this.data.taxpayerTypeData.selected.length < 1) {
1252 this.showtoast('请选择纳税人类型'); 1292 this.showtoast('请选择纳税人类型');
1253 return 1293 return
1254 - } 1294 + }
1255 if (this.data.hasOtherCard && !this.data.firstEntryDate.selected) { 1295 if (this.data.hasOtherCard && !this.data.firstEntryDate.selected) {
1256 this.showtoast('请选择首次入境时间'); 1296 this.showtoast('请选择首次入境时间');
1257 return 1297 return
1258 - } 1298 + }
1259 if (this.data.hasOtherCard && !this.data.predictLeaveDate.selected) { 1299 if (this.data.hasOtherCard && !this.data.predictLeaveDate.selected) {
1260 this.showtoast('请选择预计离境时间'); 1300 this.showtoast('请选择预计离境时间');
1261 return 1301 return
@@ -1270,24 +1310,24 @@ Page({ @@ -1270,24 +1310,24 @@ Page({
1270 if (this.data.hasOtherCard && !otherTypeSel && this.data.otherCardtypeData.isrequre) { 1310 if (this.data.hasOtherCard && !otherTypeSel && this.data.otherCardtypeData.isrequre) {
1271 this.showtoast('请选择其他证照类型'); 1311 this.showtoast('请选择其他证照类型');
1272 return 1312 return
1273 - } 1313 + }
1274 if (this.data.hasOtherCard && !otherHasInput && this.data.otherCardtypeData.isrequre) { 1314 if (this.data.hasOtherCard && !otherHasInput && this.data.otherCardtypeData.isrequre) {
1275 this.showtoast('请输入其他证照号码'); 1315 this.showtoast('请输入其他证照号码');
1276 return 1316 return
1277 } 1317 }
1278 - if (otherTypeSel.indexOf('居住证') > -1 && otherHasInput && !reg_18_Number.test(formdata.other_card_number)) { 1318 + if (otherTypeSel.indexOf('居住证') > -1 && otherHasInput && !reg_18_Number.test(formdata.other_card_number)) {
1279 this.showtoast('其他证照号码有误'); 1319 this.showtoast('其他证照号码有误');
1280 return 1320 return
1281 - }else if (otherTypeSel.indexOf('永久居留') > -1 && otherHasInput && !reg_15_n_a.test(formdata.other_card_number)) { 1321 + } else if (otherTypeSel.indexOf('永久居留') > -1 && otherHasInput && !reg_15_n_a.test(formdata.other_card_number)) {
1282 this.showtoast('其他证照号码有误'); 1322 this.showtoast('其他证照号码有误');
1283 return 1323 return
1284 - } 1324 + }
1285 if (this.data.hasOtherCard && !this.data.birthCountryData.selected) { 1325 if (this.data.hasOtherCard && !this.data.birthCountryData.selected) {
1286 this.showtoast('请选择出生国家'); 1326 this.showtoast('请选择出生国家');
1287 return 1327 return
1288 - } 1328 + }
1289 if (this.data.other_name.length > 0) { 1329 if (this.data.other_name.length > 0) {
1290 - if (this.data.cardtypeData.selected != '居民身份证' && this.data.cardtypeData.selected != '中国护照'){ 1330 + if (this.data.cardtypeData.selected != '居民身份证' && this.data.cardtypeData.selected != '中国护照') {
1291 var regname = (this.data.nameText == '中文名') ? regname_c : regname_e 1331 var regname = (this.data.nameText == '中文名') ? regname_c : regname_e
1292 this.data.other_name = this.data.other_name.replace(/(^\s*)|(\s*$)/g, ""); 1332 this.data.other_name = this.data.other_name.replace(/(^\s*)|(\s*$)/g, "");
1293 if (!regname.test(this.data.other_name)) { 1333 if (!regname.test(this.data.other_name)) {
@@ -1295,7 +1335,7 @@ Page({ @@ -1295,7 +1335,7 @@ Page({
1295 return 1335 return
1296 } 1336 }
1297 } 1337 }
1298 - } 1338 + }
1299 if (this.data.mobile.length < 1) { 1339 if (this.data.mobile.length < 1) {
1300 this.showtoast('请输入手机号码'); 1340 this.showtoast('请输入手机号码');
1301 return 1341 return
@@ -1343,12 +1383,36 @@ Page({ @@ -1343,12 +1383,36 @@ Page({
1343 // this.showtoast('邮箱格式有误'); 1383 // this.showtoast('邮箱格式有误');
1344 // return 1384 // return
1345 // } 1385 // }
1346 - if (this.data.bankInfo.selected.length > 0 && formdata.bank_account.length < 1) {  
1347 - this.showtoast('请输入银行卡号')  
1348 - return 1386 + if (this.data.bankInfo.selected && this.data.bankInfo.selected.length > 0) {
  1387 + if (this.data.bankProvinceInfo && this.data.bankProvinceInfo.selected.length < 1) {
  1388 + this.showtoast('请选择开户银行省份')
  1389 + return
  1390 + }
  1391 + if (!formdata.bank_account || formdata.bank_account.length < 1) {
  1392 + this.showtoast('请输入银行账户')
  1393 + return
  1394 + } else if (!format.banknoCheck(formdata.bank_account)) {
  1395 + this.showtoast('银行卡号格式有误')
  1396 + return
  1397 + }
  1398 + }
  1399 +
  1400 + if (this.data.bankProvinceInfo && this.data.bankProvinceInfo.selected.length > 0) {
  1401 + if (this.data.bankInfo && this.data.bankInfo.selected.length < 1) {
  1402 + this.showtoast('请选择开户银行')
  1403 + return
  1404 + }
  1405 + if (!formdata.bank_account || formdata.bank_account.length < 1) {
  1406 + this.showtoast('请输入银行账户')
  1407 + return
  1408 + } else if (!format.banknoCheck(formdata.bank_account)) {
  1409 + this.showtoast('银行卡号格式有误')
  1410 + return
  1411 + }
1349 } 1412 }
  1413 +
1350 if (formdata.bank_account && formdata.bank_account.length > 0) { 1414 if (formdata.bank_account && formdata.bank_account.length > 0) {
1351 - if (!format.banknoCheck(formdata.bank_account)){ 1415 + if (!format.banknoCheck(formdata.bank_account)) {
1352 this.showtoast('银行卡号格式有误') 1416 this.showtoast('银行卡号格式有误')
1353 return 1417 return
1354 } 1418 }
@@ -1356,6 +1420,10 @@ Page({ @@ -1356,6 +1420,10 @@ Page({
1356 this.showtoast('请选择开户银行') 1420 this.showtoast('请选择开户银行')
1357 return 1421 return
1358 } 1422 }
  1423 + if (!this.data.bankProvinceInfo.selected) {
  1424 + this.showtoast('请选择开户银行省份')
  1425 + return
  1426 + }
1359 } 1427 }
1360 this.goCommit(formdata); 1428 this.goCommit(formdata);
1361 // else if (this.data.personstatusData.selected.length < 1) { 1429 // else if (this.data.personstatusData.selected.length < 1) {
@@ -1384,7 +1452,7 @@ Page({ @@ -1384,7 +1452,7 @@ Page({
1384 // this.showtoast('有必填项未填写'); 1452 // this.showtoast('有必填项未填写');
1385 // return 1453 // return
1386 // } else 1454 // } else
1387 - 1455 +
1388 // else if (this.data.company_equity_total && this.data.company_equity_total.length > 0 && !regMoney.test(this.data.company_equity_total)) { 1456 // else if (this.data.company_equity_total && this.data.company_equity_total.length > 0 && !regMoney.test(this.data.company_equity_total)) {
1389 // this.showtoast('请输入正确金额'); 1457 // this.showtoast('请输入正确金额');
1390 // return 1458 // return
@@ -1420,14 +1488,14 @@ Page({ @@ -1420,14 +1488,14 @@ Page({
1420 'certification_status': that.getCertifyStatus(formdata), 1488 'certification_status': that.getCertifyStatus(formdata),
1421 "name": that.data.name, 1489 "name": that.data.name,
1422 "other_name": that.data.hasOtherCard ? that.data.other_name : '', 1490 "other_name": that.data.hasOtherCard ? that.data.other_name : '',
1423 - "family_ties": '本人',//that.data.relativeData.selected, 1491 + "family_ties": '本人', //that.data.relativeData.selected,
1424 "native": that.data.countryData.selected, 1492 "native": that.data.countryData.selected,
1425 - "taxpayer_type": that.data.taxpayerTypeData.selected == '非居民' ? 'non-resident' :'resident', 1493 + "taxpayer_type": that.data.taxpayerTypeData.selected == '非居民' ? 'non-resident' : 'resident',
1426 "is_overseas_personnel": that.data.overseas, 1494 "is_overseas_personnel": that.data.overseas,
1427 'birth_native': that.data.hasOtherCard ? that.data.birthCountryData.selected : '', 1495 'birth_native': that.data.hasOtherCard ? that.data.birthCountryData.selected : '',
1428 "id_card_type": that.data.cardtypeData.selected, //selected_code, 1496 "id_card_type": that.data.cardtypeData.selected, //selected_code,
1429 "id_card_no": that.data.card_number, 1497 "id_card_no": that.data.card_number,
1430 - "other_id_card_type": that.data.hasOtherCard ? that.data.otherCardtypeData.selected : '', //selected_code, 1498 + "other_id_card_type": that.data.hasOtherCard ? that.data.otherCardtypeData.selected : '', //selected_code,
1431 "other_id_card_no": that.data.hasOtherCard ? (formdata.other_card_number ? formdata.other_card_number : '') : '', 1499 "other_id_card_no": that.data.hasOtherCard ? (formdata.other_card_number ? formdata.other_card_number : '') : '',
1432 "gender": that.data.genderData.selected, 1500 "gender": that.data.genderData.selected,
1433 "birth_date": that.data.long_birth_date, 1501 "birth_date": that.data.long_birth_date,
@@ -1444,6 +1512,7 @@ Page({ @@ -1444,6 +1512,7 @@ Page({
1444 "profession": request_profession, 1512 "profession": request_profession,
1445 "education": that.data.degreeData.selected, 1513 "education": that.data.degreeData.selected,
1446 "bank": that.data.bankInfo.selected, 1514 "bank": that.data.bankInfo.selected,
  1515 + "bank_province": that.data.bankProvinceInfo.selected,
1447 "bank_account": formdata.bank_account, 1516 "bank_account": formdata.bank_account,
1448 // "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : that.data.taxInfo.taxpayer_no, 1517 // "taxpayer_no": formdata.taxpayer_no ? formdata.taxpayer_no : that.data.taxInfo.taxpayer_no,
1449 // "taxpayer_status": that.data.personstatusData.selected, 1518 // "taxpayer_status": that.data.personstatusData.selected,
@@ -1453,10 +1522,10 @@ Page({ @@ -1453,10 +1522,10 @@ Page({
1453 "martyr_family_no": that.data.lieshuInfo.selected == '否' ? '' : formdata.martyr_family_no, 1522 "martyr_family_no": that.data.lieshuInfo.selected == '否' ? '' : formdata.martyr_family_no,
1454 "is_lonely_man": that.data.lonelyolderInfo.selected, 1523 "is_lonely_man": that.data.lonelyolderInfo.selected,
1455 "comment": formdata.comment, 1524 "comment": formdata.comment,
1456 - 1525 +
1457 "contact_address": that.data.hasOtherCard ? request_contact_address : {}, 1526 "contact_address": that.data.hasOtherCard ? request_contact_address : {},
1458 - "contact_address_detail": that.data.hasOtherCard ? formdata.contact_address_detail: '',  
1459 - 1527 + "contact_address_detail": that.data.hasOtherCard ? formdata.contact_address_detail : '',
  1528 +
1460 // "join_date": that.data.startDate.selected.length > 0 ? Date.parse(new Date(that.data.startDate.selected)) / 1000 : this.data.taxInfo.join_date, 1529 // "join_date": that.data.startDate.selected.length > 0 ? Date.parse(new Date(that.data.startDate.selected)) / 1000 : this.data.taxInfo.join_date,
1461 // "separate_date": that.data.endDate.selected.length > 0 ? Date.parse(new Date(that.data.endDate.selected)) / 1000 : this.data.taxInfo.separate_date, 1530 // "separate_date": that.data.endDate.selected.length > 0 ? Date.parse(new Date(that.data.endDate.selected)) / 1000 : this.data.taxInfo.separate_date,
1462 // "is_employee": that.data.employeeInfo.selected, 1531 // "is_employee": that.data.employeeInfo.selected,
@@ -1475,9 +1544,9 @@ Page({ @@ -1475,9 +1544,9 @@ Page({
1475 console.log(res) 1544 console.log(res)
1476 if (res.statusCode < 300) { 1545 if (res.statusCode < 300) {
1477 wx.navigateBack({ 1546 wx.navigateBack({
1478 - delta:1 1547 + delta: 1
1479 }) 1548 })
1480 - } else if (res.data.code == 400 && res.data.errors.email){ 1549 + } else if (res.data.code == 400 && res.data.errors.email) {
1481 that.showtoast('邮箱格式有误') 1550 that.showtoast('邮箱格式有误')
1482 } else { 1551 } else {
1483 that.showtoast(res.data.message ? res.data.message : '请求出错') 1552 that.showtoast(res.data.message ? res.data.message : '请求出错')
@@ -1560,7 +1629,7 @@ Page({ @@ -1560,7 +1629,7 @@ Page({
1560 wx.showToast({ 1629 wx.showToast({
1561 title: str, 1630 title: str,
1562 duration: 2000, 1631 duration: 2000,
1563 - icon:'none' 1632 + icon: 'none'
1564 // image: '/images/error.png' 1633 // image: '/images/error.png'
1565 }) 1634 })
1566 }, 1635 },
@@ -1573,7 +1642,7 @@ Page({ @@ -1573,7 +1642,7 @@ Page({
1573 var gender = this.data.genderData.selected; 1642 var gender = this.data.genderData.selected;
1574 var long_birth_date = Date.parse(new Date(this.data.birthDate.selected)) / 1000; 1643 var long_birth_date = Date.parse(new Date(this.data.birthDate.selected)) / 1000;
1575 console.log("birth_day", long_birth_date + "---" + this.data.long_birth_date) 1644 console.log("birth_day", long_birth_date + "---" + this.data.long_birth_date)
1576 - if ((this.data.has_certify&&name == iddata.name && cardtype == '居民身份证' && card_no == iddata.id_card_number && gender == iddata.gender && long_birth_date == this.data.long_birth_date)) { 1645 + if ((this.data.has_certify && name == iddata.name && cardtype == '居民身份证' && card_no == iddata.id_card_number && gender == iddata.gender && long_birth_date == this.data.long_birth_date)) {
1577 return 'active' 1646 return 'active'
1578 } else { 1647 } else {
1579 return '' 1648 return ''
@@ -186,6 +186,8 @@ @@ -186,6 +186,8 @@
186 <view class="divide_line_30"></view> 186 <view class="divide_line_30"></view>
187 <template is="picker_cell_normal" data="{{...bankInfo}}" /> 187 <template is="picker_cell_normal" data="{{...bankInfo}}" />
188 <view class="divide_line_30"></view> 188 <view class="divide_line_30"></view>
  189 + <template is="picker_cell_normal" data="{{...bankProvinceInfo}}" />
  190 + <view class="divide_line_30"></view>
189 <view class='item_body'> 191 <view class='item_body'>
190 <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>银行账号</text> 192 <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>银行账号</text>
191 <input class='input_wrap' name='bank_account' value='{{taxInfo.bank_account}}' placeholder-class='text_999_30' placeholder='请输入银行账号' maxlength='19' type='number'></input> 193 <input class='input_wrap' name='bank_account' value='{{taxInfo.bank_account}}' placeholder-class='text_999_30' placeholder='请输入银行账号' maxlength='19' type='number'></input>
注册登录 后发表评论