提交 d149bc410ad00ba74e8585ccac6a046989900d04

作者 pangy
2 个父辈 fa620603 dc549412

Merge branch 'dev_py' into dev2.0

@@ -81,16 +81,16 @@ Page({ @@ -81,16 +81,16 @@ Page({
81 end: '2018-01-01', 81 end: '2018-01-01',
82 onChange: 'onPickerSelect', 82 onChange: 'onPickerSelect',
83 }, 83 },
84 - older_relativeData: {  
85 - label: '与纳税人关系',  
86 - isrequre: true,  
87 - bindtype: 'older_relative',  
88 - selected: '',  
89 - isblack: 'true',  
90 - placeholder: '请选择与纳税人关系',  
91 - values: ["父母", "祖父母、外祖父母"],  
92 - onChange: 'onPickerSelect'  
93 - }, 84 + // older_relativeData: {
  85 + // label: '与纳税人关系',
  86 + // isrequre: true,
  87 + // bindtype: 'older_relative',
  88 + // selected: '',
  89 + // isblack: 'true',
  90 + // placeholder: '请选择与纳税人关系',
  91 + // values: ["父母", "祖父母、外祖父母"],
  92 + // onChange: 'onPickerSelect'
  93 + // },
94 taxperson_relativeData: { 94 taxperson_relativeData: {
95 label: '与纳税人的关系', 95 label: '与纳税人的关系',
96 isrequre: true, 96 isrequre: true,
@@ -553,6 +553,7 @@ Page({ @@ -553,6 +553,7 @@ Page({
553 }) 553 })
554 } else if (frontPage.data.house_type == "rent" || frontPage.data.house_type == "house_fund_rent") { 554 } else if (frontPage.data.house_type == "rent" || frontPage.data.house_type == "house_fund_rent") {
555 this.getbanklist() 555 this.getbanklist()
  556 + this.getTaxList()
556 house_type = "house_fund_rent" 557 house_type = "house_fund_rent"
557 title = '住房租金' 558 title = '住房租金'
558 if (options.reducetype == '月度') { 559 if (options.reducetype == '月度') {
@@ -782,11 +783,6 @@ Page({ @@ -782,11 +783,6 @@ Page({
782 olderbirthDate.datelong = data.birth_date 783 olderbirthDate.datelong = data.birth_date
783 setData.olderbirthDate = olderbirthDate 784 setData.olderbirthDate = olderbirthDate
784 } 785 }
785 - if (data.family_ties && data.family_ties.length) {  
786 - var older_relativeData = this.data.older_relativeData  
787 - older_relativeData.selected = data.family_ties  
788 - setData.older_relativeData = older_relativeData  
789 - }  
790 this.setData(setData) 786 this.setData(setData)
791 break; 787 break;
792 case 'medical_fund': 788 case 'medical_fund':
@@ -1203,10 +1199,10 @@ Page({ @@ -1203,10 +1199,10 @@ Page({
1203 this.showToast('请选择被赡养人出生日期') 1199 this.showToast('请选择被赡养人出生日期')
1204 return 1200 return
1205 } 1201 }
1206 - if (this.data.older_relativeData.selected.length < 1) {  
1207 - this.showToast('请选择与纳税人关系')  
1208 - return  
1209 - } 1202 + // if (this.data.older_relativeData.selected.length < 1) {
  1203 + // this.showToast('请选择与纳税人关系')
  1204 + // return
  1205 + // }
1210 // if (!formdata.percentage || formdata.percentage.length < 1 || formdata.percentage > 100) { 1206 // if (!formdata.percentage || formdata.percentage.length < 1 || formdata.percentage > 100) {
1211 // this.showToast('请填写合理分摊比例') 1207 // this.showToast('请填写合理分摊比例')
1212 // return 1208 // return
@@ -1219,7 +1215,7 @@ Page({ @@ -1219,7 +1215,7 @@ Page({
1219 newdata.share_method = this.share_method 1215 newdata.share_method = this.share_method
1220 } 1216 }
1221 newdata.birthday = this.data.olderbirthDate.datelong 1217 newdata.birthday = this.data.olderbirthDate.datelong
1222 - newdata.relationship = this.data.older_relativeData.selected 1218 + // newdata.relationship = this.data.older_relativeData.selected
1223 newdata.id_card_type = '1' //this.data.oldercardtypeData.selected 1219 newdata.id_card_type = '1' //this.data.oldercardtypeData.selected
1224 newdata.nation = "中国" 1220 newdata.nation = "中国"
1225 break; 1221 break;
@@ -1430,7 +1426,7 @@ Page({ @@ -1430,7 +1426,7 @@ Page({
1430 // this.showToast('请填写扣除金额') 1426 // this.showToast('请填写扣除金额')
1431 // return 1427 // return
1432 // } 1428 // }
1433 - if (this.data.cur_index != 'medical_fund') { 1429 + if (this.data.cur_index != 'medical_fund' && this.data.cur_index != 'continuing_education') {
1434 newdata.deduction_type = this.data.reducetypeData.selected == '月度' ? "month" : "year" 1430 newdata.deduction_type = this.data.reducetypeData.selected == '月度' ? "month" : "year"
1435 newdata.deduction_amount = this.data.deduction_amount //formdata.reduce_money 1431 newdata.deduction_amount = this.data.deduction_amount //formdata.reduce_money
1436 } 1432 }
@@ -1633,13 +1629,13 @@ Page({ @@ -1633,13 +1629,13 @@ Page({
1633 loverbirthDate: lover_birthDate 1629 loverbirthDate: lover_birthDate
1634 }) 1630 })
1635 break; 1631 break;
1636 - case 'older_relative':  
1637 - var older_relativeData = this.data.older_relativeData  
1638 - older_relativeData.selected = older_relativeData.values[e.detail.value]  
1639 - this.setData({  
1640 - older_relativeData: older_relativeData  
1641 - })  
1642 - break; 1632 + // case 'older_relative':
  1633 + // var older_relativeData = this.data.older_relativeData
  1634 + // older_relativeData.selected = older_relativeData.values[e.detail.value]
  1635 + // this.setData({
  1636 + // older_relativeData: older_relativeData
  1637 + // })
  1638 + // break;
1643 case 'taxperson_relative': 1639 case 'taxperson_relative':
1644 var taxperson_relativedata = this.data.taxperson_relativeData 1640 var taxperson_relativedata = this.data.taxperson_relativeData
1645 taxperson_relativedata.selected = taxperson_relativedata.values[e.detail.value] 1641 taxperson_relativedata.selected = taxperson_relativedata.values[e.detail.value]
@@ -1772,20 +1768,20 @@ Page({ @@ -1772,20 +1768,20 @@ Page({
1772 edutypee_data.selected = edutypee_data.values[e.detail.value] 1768 edutypee_data.selected = edutypee_data.values[e.detail.value]
1773 var reducetypeData = this.data.reducetypeData 1769 var reducetypeData = this.data.reducetypeData
1774 var deduction_amount 1770 var deduction_amount
1775 - if (e.detail.value == '1') {//非学历教育  
1776 - reducetypeData.selected = '年度'  
1777 - // reducetypeData.disabled = true  
1778 - deduction_amount = Deduce_amounts_year['continuing_education_non']  
1779 - }else {  
1780 - // reducetypeData.disabled = false  
1781 - reducetypeData.selected = '月度'  
1782 - deduction_amount = Deduce_amounts_month['continuing_education']  
1783 - } 1771 + // if (e.detail.value == '1') {//非学历教育
  1772 + // reducetypeData.selected = '年度'
  1773 + // // reducetypeData.disabled = true
  1774 + // deduction_amount = Deduce_amounts_year['continuing_education_non']
  1775 + // }else {
  1776 + // // reducetypeData.disabled = false
  1777 + // reducetypeData.selected = '月度'
  1778 + // deduction_amount = Deduce_amounts_month['continuing_education']
  1779 + // }
1784 this.setData({ 1780 this.setData({
1785 edu_lable: e.detail.value == 0 ? 'school' : 'tech', 1781 edu_lable: e.detail.value == 0 ? 'school' : 'tech',
1786 edutypeData: edutypee_data, 1782 edutypeData: edutypee_data,
1787 - reducetypeData: reducetypeData,  
1788 - deduction_amount: deduction_amount 1783 + // reducetypeData: reducetypeData,
  1784 + // deduction_amount: deduction_amount
1789 }) 1785 })
1790 break; 1786 break;
1791 case 'edu_style': 1787 case 'edu_style':
@@ -145,7 +145,7 @@ @@ -145,7 +145,7 @@
145 </view> 145 </view>
146 <view class='divide_line_30'></view> 146 <view class='divide_line_30'></view>
147 147
148 - <template is="picker_cell_normal" data="{{...older_relativeData}}" /> 148 + <!-- <template is="picker_cell_normal" data="{{...older_relativeData}}" /> -->
149 <!-- <view style='height:90rpx;'> 149 <!-- <view style='height:90rpx;'>
150 <text class='red_star_right_10'>*</text> 150 <text class='red_star_right_10'>*</text>
151 <text class='text_777_30 float_left'>分摊比例</text> 151 <text class='text_777_30 float_left'>分摊比例</text>
@@ -316,7 +316,7 @@ @@ -316,7 +316,7 @@
316 </view> 316 </view>
317 </view> 317 </view>
318 318
319 -<view style='padding:0 30rpx;' wx:if="{{cur_index!='medical_fund' && cur_index!='support_duty'}}"> 319 +<view style='padding:0 30rpx;' wx:if="{{cur_index=='children_education' || cur_index=='house_fund'}}">
320 <view class='divide_line_30'></view> 320 <view class='divide_line_30'></view>
321 <template is="picker_cell_normal" data="{{...reducetypeData}}" /> 321 <template is="picker_cell_normal" data="{{...reducetypeData}}" />
322 <view class='divide_line_30'></view> 322 <view class='divide_line_30'></view>
@@ -30,7 +30,8 @@ Page({ @@ -30,7 +30,8 @@ Page({
30 selected: '', 30 selected: '',
31 disabled: false, 31 disabled: false,
32 placeholder: '请选择关系', 32 placeholder: '请选择关系',
33 - values: ["子","女" ,"配偶", "父母", "祖父母、外祖父母"], 33 + // values: ["子","女" ,"配偶", "父母", "祖父母、外祖父母"],
  34 + values: ["子", "女", "配偶", "父母"],
34 onChange: 'onPickerSelect' 35 onChange: 'onPickerSelect'
35 }, 36 },
36 cardtypeData: { 37 cardtypeData: {
@@ -263,15 +264,14 @@ Page({ @@ -263,15 +264,14 @@ Page({
263 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$"); 264 var regEmail = new RegExp("^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,20}[a-z0-9]+$");
264 var formdata = e.detail.value; 265 var formdata = e.detail.value;
265 console.log("formdata", formdata); 266 console.log("formdata", formdata);
266 - console.log('idnum', this.data.card_number.length < 1 && !format.isIDCardNum(formdata.id_card_no))  
267 if (this.data.relativeData.selected.length < 1) { 267 if (this.data.relativeData.selected.length < 1) {
268 this.showtoast('请选择关系'); 268 this.showtoast('请选择关系');
269 return 269 return
270 } 270 }
271 - else if (this.data.isIdCard && (this.data.card_number.length < 1 && formdata.id_card_no.length < 1)) { 271 + if (this.data.card_number.length < 1) {
272 this.showtoast('请填写证照号码'); 272 this.showtoast('请填写证照号码');
273 return 273 return
274 - } else if (this.data.isIdCard && !format.isIDCardNum(formdata.id_card_no)) { 274 + } else if (this.data.isIdCard && this.data.card_number.length > 0 && !format.isIDCardNum(this.data.card_number)) {
275 this.showtoast('证照号码有误'); 275 this.showtoast('证照号码有误');
276 return 276 return
277 } 277 }
@@ -287,22 +287,6 @@ Page({ @@ -287,22 +287,6 @@ Page({
287 this.showtoast('手机号码有误'); 287 this.showtoast('手机号码有误');
288 return 288 return
289 } 289 }
290 - var new_card_num = ''  
291 - if (this.data.isIdCard) {  
292 - if (this.data.card_number.length > 0) {  
293 - new_card_num = this.data.card_number  
294 - }  
295 - if (formdata.id_card_no.length > 0) {  
296 - new_card_num = formdata.id_card_no  
297 - }  
298 - }  
299 -  
300 - if (!this.data.isIdCard && formdata.id_card_no && formdata.id_card_no.length > 0) {  
301 - new_card_num = formdata.id_card_no  
302 - }  
303 - this.setData({  
304 - card_number: new_card_num,  
305 - })  
306 this.goCommit(formdata); 290 this.goCommit(formdata);
307 }, 291 },
308 292
@@ -327,7 +311,7 @@ Page({ @@ -327,7 +311,7 @@ Page({
327 'certification_status': that.getCertifyStatus(formdata), 311 'certification_status': that.getCertifyStatus(formdata),
328 "family_ties": that.data.relativeData.selected, 312 "family_ties": that.data.relativeData.selected,
329 "id_card_type": '居民身份证',//that.data.cardtypeData.selected, 313 "id_card_type": '居民身份证',//that.data.cardtypeData.selected,
330 - "id_card_no": formdata.id_card_no ? formdata.id_card_no : that.data.card_number, 314 + "id_card_no": that.data.card_number,
331 "name": name, 315 "name": name,
332 "gender": that.data.genderData.selected, 316 "gender": that.data.genderData.selected,
333 "mobile": formdata.mobile, 317 "mobile": formdata.mobile,
@@ -403,6 +387,9 @@ Page({ @@ -403,6 +387,9 @@ Page({
403 idChange: function (e) { 387 idChange: function (e) {
404 console.log('idCardNoChange', e.detail.value) 388 console.log('idCardNoChange', e.detail.value)
405 var idCardNo = e.detail.value 389 var idCardNo = e.detail.value
  390 + this.setData({
  391 + card_number: idCardNo
  392 + })
406 if (e.detail.value.length == 18){ 393 if (e.detail.value.length == 18){
407 if (!format.isIDCardNum(idCardNo)) { 394 if (!format.isIDCardNum(idCardNo)) {
408 wx.showToast({ 395 wx.showToast({
@@ -415,8 +402,10 @@ Page({ @@ -415,8 +402,10 @@ Page({
415 } 402 }
416 }, 403 },
417 idDone: function (e) { 404 idDone: function (e) {
418 -  
419 var idCardNo = e.detail.value 405 var idCardNo = e.detail.value
  406 + this.setData({
  407 + card_number: idCardNo
  408 + })
420 if (!idCardNo.length) { 409 if (!idCardNo.length) {
421 wx.showToast({ 410 wx.showToast({
422 image: "../../../../images/warn.png", 411 image: "../../../../images/warn.png",
@@ -431,7 +420,6 @@ Page({ @@ -431,7 +420,6 @@ Page({
431 }) 420 })
432 return; 421 return;
433 } 422 }
434 -  
435 }, 423 },
436 424
437 /** 425 /**
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 <view wx:if="{{isIdCard}}" > 24 <view wx:if="{{isIdCard}}" >
25 <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo'></image> 25 <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo'></image>
26 <!-- <text class='text_333_28 float_right'>{{card_number}}</text> --> 26 <!-- <text class='text_333_28 float_right'>{{card_number}}</text> -->
27 - <input class='input_wrap' placeholder='请输入或拍摄身份证' placeholder-class='text_777_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}' type='idcard'></input> 27 + <input class='input_wrap' placeholder='请输入或拍摄身份证' placeholder-class='text_777_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}' type='idcard' ></input>
28 </view> 28 </view>
29 <view wx:else> 29 <view wx:else>
30 <input class='input_wrap' placeholder='请输入证照号码' placeholder-class='text_777_30' name='id_card_no' maxlength='18' type="idcard" value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input> 30 <input class='input_wrap' placeholder='请输入证照号码' placeholder-class='text_777_30' name='id_card_no' maxlength='18' type="idcard" value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input>
@@ -333,8 +333,8 @@ Page({ @@ -333,8 +333,8 @@ Page({
333 specificIndustryInfo: this.data.specificIndustryInfo, 333 specificIndustryInfo: this.data.specificIndustryInfo,
334 genderData: this.data.genderData, 334 genderData: this.data.genderData,
335 bankInfo: this.data.bankInfo, 335 bankInfo: this.data.bankInfo,
336 - personal_equity_total:tax_info.personal_equity_total,  
337 - company_equity_total: tax_info.company_equity_total, 336 + personal_equity_total: tax_info.personal_equity_total ? tax_info.personal_equity_total : 0,
  337 + company_equity_total: tax_info.company_equity_total ? tax_info.company_equity_total: 0,
338 338
339 professionData: this.data.professionData, 339 professionData: this.data.professionData,
340 degreeData: this.data.degreeData, 340 degreeData: this.data.degreeData,
@@ -349,9 +349,9 @@ Page({ @@ -349,9 +349,9 @@ Page({
349 349
350 long_birth_date: tax_info.birth_date, 350 long_birth_date: tax_info.birth_date,
351 birthDate: this.data.birthDate, 351 birthDate: this.data.birthDate,
352 - long_start_date: tax_info.join_date, 352 + long_start_date: tax_info.join_date ? tax_info.join_date:0,
353 startDate: this.data.startDate, 353 startDate: this.data.startDate,
354 - long_end_date: tax_info.separate_date, 354 + long_end_date: tax_info.separate_date ? tax_info.separate_date : 0,
355 endDate: this.data.endDate, 355 endDate: this.data.endDate,
356 isIdCard: '居民身份证' == tax_info.id_card_type ? true : false, 356 isIdCard: '居民身份证' == tax_info.id_card_type ? true : false,
357 card_number: this.data.card_number 357 card_number: this.data.card_number
@@ -458,7 +458,7 @@ Page({ @@ -458,7 +458,7 @@ Page({
458 bank_info.values = res.data.banks//that.handleBankinfo(res.data.items) 458 bank_info.values = res.data.banks//that.handleBankinfo(res.data.items)
459 459
460 that.setData({ 460 that.setData({
461 - banklist: res.data.items, 461 + // banklist: res.data.items,
462 bankInfo: bank_info 462 bankInfo: bank_info
463 }) 463 })
464 console.log("bankInfo", that.data.bankInfo) 464 console.log("bankInfo", that.data.bankInfo)
@@ -786,6 +786,16 @@ Page({ @@ -786,6 +786,16 @@ Page({
786 786
787 idcardblur: function (e) { 787 idcardblur: function (e) {
788 var idCardNo = e.detail.value 788 var idCardNo = e.detail.value
  789 + this.setData({
  790 + card_number: idCardNo
  791 + })
  792 + if (!idCardNo.length) {
  793 + wx.showToast({
  794 + image: "../../../../images/warn.png",
  795 + title: '请输入身份证号'
  796 + })
  797 + return;
  798 + }
789 if (!format.isIDCardNum(idCardNo)) { 799 if (!format.isIDCardNum(idCardNo)) {
790 wx.showToast({ 800 wx.showToast({
791 image: "../../../../images/warn.png", 801 image: "../../../../images/warn.png",
@@ -793,10 +803,12 @@ Page({ @@ -793,10 +803,12 @@ Page({
793 }) 803 })
794 return; 804 return;
795 } 805 }
796 - this.dealIdInfo(idCardNo)  
797 }, 806 },
798 bindinputcardnum: function(e) { 807 bindinputcardnum: function(e) {
799 var idCardNo = e.detail.value 808 var idCardNo = e.detail.value
  809 + this.setData({
  810 + card_number: idCardNo
  811 + })
800 if (e.detail.value.length == 18) { 812 if (e.detail.value.length == 18) {
801 if (!format.isIDCardNum(idCardNo)) { 813 if (!format.isIDCardNum(idCardNo)) {
802 wx.showToast({ 814 wx.showToast({
@@ -811,9 +823,22 @@ Page({ @@ -811,9 +823,22 @@ Page({
811 //根据身份证号码,获取相关信息 823 //根据身份证号码,获取相关信息
812 dealIdInfo: function (idCardNum) { 824 dealIdInfo: function (idCardNum) {
813 var info = format.analyzeIDCard(idCardNum) 825 var info = format.analyzeIDCard(idCardNum)
814 - this.setData({  
815 - card_number: idCardNum  
816 - }) 826 + console.log('info', info.age, info.sex)
  827 + if (info.age) {
  828 + this.data.birthDate.selected = info.birthDay
  829 + this.setData({
  830 + age: info.age,
  831 + long_birth_date: Date.parse(new Date(info.birthDay)) / 1000,
  832 + birthDate: this.data.birthDate
  833 + })
  834 + }
  835 + if (info.sex) {
  836 + var gender_data = this.data.genderData
  837 + gender_data.selected = info.sex
  838 + this.setData({
  839 + genderData: gender_data
  840 + })
  841 + }
817 }, 842 },
818 personalmoney:function(e){ 843 personalmoney:function(e){
819 console.log('personalmoney', e) 844 console.log('personalmoney', e)
@@ -838,9 +863,8 @@ Page({ @@ -838,9 +863,8 @@ Page({
838 var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/ 863 var regMoney = /^([1-9][\d]{0,10}|0)(\.[\d]{1,2})?$/
839 var formdata = e.detail.value; 864 var formdata = e.detail.value;
840 console.log("formdata", formdata) 865 console.log("formdata", formdata)
841 - console.log("card_number", this.data.card_number)  
842 if (this.data.card_number.length < 1) { 866 if (this.data.card_number.length < 1) {
843 - this.showtoast('请输入身份证号码'); 867 + this.showtoast('请填写证照号码');
844 return 868 return
845 } else if (this.data.isIdCard && this.data.card_number.length > 0 && !format.isIDCardNum(this.data.card_number)) { 869 } else if (this.data.isIdCard && this.data.card_number.length > 0 && !format.isIDCardNum(this.data.card_number)) {
846 this.showtoast('证照号码有误'); 870 this.showtoast('证照号码有误');
@@ -853,6 +877,14 @@ Page({ @@ -853,6 +877,14 @@ Page({
853 this.showtoast('请输入正确姓名'); 877 this.showtoast('请输入正确姓名');
854 return 878 return
855 } 879 }
  880 + if (this.data.mobile.length < 1) {
  881 + this.showtoast('请输入手机号码');
  882 + return
  883 + } else if (this.data.mobile.length > 0 && !regMobile.test(this.data.mobile)) {
  884 + this.showtoast('手机号码有误');
  885 + return
  886 + }
  887 + this.goCommit(formdata);
856 // else if (this.data.personstatusData.selected.length < 1) { 888 // else if (this.data.personstatusData.selected.length < 1) {
857 // this.showtoast('有必填项未填写'); 889 // this.showtoast('有必填项未填写');
858 // return 890 // return
@@ -869,13 +901,6 @@ Page({ @@ -869,13 +901,6 @@ Page({
869 // this.showtoast('有必填项未填写'); 901 // this.showtoast('有必填项未填写');
870 // return 902 // return
871 // } else 903 // } else
872 - if (this.data.mobile.length < 1) {  
873 - this.showtoast('请输入手机号码');  
874 - return  
875 - } else if (this.data.mobile.length > 0 && !regMobile.test(this.data.mobile)) {  
876 - this.showtoast('手机号码有误');  
877 - return  
878 - }  
879 // if (formdata.email && formdata.email.length > 0 && !regEmail.test(formdata.email)) { 904 // if (formdata.email && formdata.email.length > 0 && !regEmail.test(formdata.email)) {
880 // this.showtoast('请输入正确邮箱'); 905 // this.showtoast('请输入正确邮箱');
881 // return 906 // return
@@ -908,7 +933,6 @@ Page({ @@ -908,7 +933,6 @@ Page({
908 // this.setData({ 933 // this.setData({
909 // card_number: new_ard_num, 934 // card_number: new_ard_num,
910 // }) 935 // })
911 - this.goCommit(formdata);  
912 }, 936 },
913 937
914 goCommit: function(data) { 938 goCommit: function(data) {
@@ -920,8 +944,6 @@ Page({ @@ -920,8 +944,6 @@ Page({
920 var request_current_address = that.getCurrentAddressRequest() 944 var request_current_address = that.getCurrentAddressRequest()
921 var request_birth_address = that.getBirthAddressRequest() 945 var request_birth_address = that.getBirthAddressRequest()
922 var Authorization = app.globalData.Authorization; 946 var Authorization = app.globalData.Authorization;
923 - console.log('long_birth_date', that.data.long_birth_date)  
924 -  
925 wx.request({ 947 wx.request({
926 url: baseUrl + 'persontax/v1/personal-taxes/' + that.data.cur_id, 948 url: baseUrl + 'persontax/v1/personal-taxes/' + that.data.cur_id,
927 method: "PUT", 949 method: "PUT",
@@ -1079,7 +1101,7 @@ Page({ @@ -1079,7 +1101,7 @@ Page({
1079 var gender = this.data.genderData.selected; 1101 var gender = this.data.genderData.selected;
1080 var long_birth_date = Date.parse(new Date(this.data.birthDate.selected)) / 1000; 1102 var long_birth_date = Date.parse(new Date(this.data.birthDate.selected)) / 1000;
1081 console.log("birth_day", long_birth_date + "---" + this.data.long_birth_date) 1103 console.log("birth_day", long_birth_date + "---" + this.data.long_birth_date)
1082 - if (this.data.taxInfo.certification_status == 'active'||(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)) { 1104 + 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)) {
1083 return 'active' 1105 return 'active'
1084 } else { 1106 } else {
1085 return '' 1107 return ''
注册登录 后发表评论