正在显示
1 个修改的文件
包含
49 行增加
和
1 行删除
... | ... | @@ -488,6 +488,7 @@ Page({ |
488 | 488 | } |
489 | 489 | if ("children_education" == options.status) { |
490 | 490 | this.loadCountry() |
491 | + this.getTaxList() | |
491 | 492 | } else if ("continuing_education" == options.status) { |
492 | 493 | var studystart_date = this.data.studystartdate |
493 | 494 | studystart_date.label = "入学时间起" |
... | ... | @@ -520,6 +521,7 @@ Page({ |
520 | 521 | } |
521 | 522 | } else if (frontPage.data.house_type == "house_fund_loan") { |
522 | 523 | this.getbanklist() |
524 | + this.getTaxList() | |
523 | 525 | house_type = "house_fund_loan" |
524 | 526 | if (options.reducetype == '月度') { |
525 | 527 | reduce_typeData.selected = '月度' |
... | ... | @@ -546,7 +548,53 @@ Page({ |
546 | 548 | this.handleTransData(JSON.parse(options.datas)) |
547 | 549 | } |
548 | 550 | }, |
549 | - | |
551 | + getTaxList: function () { | |
552 | + var that = this; | |
553 | + wx.showLoading({ | |
554 | + title: '加载中', | |
555 | + }) | |
556 | + var Authorization = app.globalData.Authorization; | |
557 | + console.log('Authorization', Authorization) | |
558 | + if (!Authorization || Authorization.length < 10) { | |
559 | + return | |
560 | + } | |
561 | + wx.request({ | |
562 | + url: baseUrl + 'persontax/v1/personal-taxes', | |
563 | + method: "GET", | |
564 | + header: { | |
565 | + 'content-type': 'application/json', // 默认值 | |
566 | + "Authorization": Authorization | |
567 | + }, | |
568 | + data: { | |
569 | + 'family_ties': '配偶' | |
570 | + }, | |
571 | + success: function (res) { | |
572 | + console.log('是否有配偶接口数据', res) | |
573 | + if (res.data.items[0]) { | |
574 | + var hasLoverData = that.data.hasLoverData | |
575 | + hasLoverData.selected = '是' | |
576 | + var data = res.data.items[0], setData = { hasLover: true, hasLoverData: hasLoverData} | |
577 | + if (data.name && data.name.length) { | |
578 | + setData.spouse_name = data.name | |
579 | + } | |
580 | + if (data.id_card_no && data.id_card_no.length) { | |
581 | + setData.spouse_id_card_no = data.id_card_no | |
582 | + that.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input') | |
583 | + } | |
584 | + that.setData(setData) | |
585 | + } | |
586 | + }, | |
587 | + fail(res) { | |
588 | + console.log(res.data) | |
589 | + }, | |
590 | + complete() { | |
591 | + wx.hideLoading() | |
592 | + that.setData({ | |
593 | + load_finish: true | |
594 | + }) | |
595 | + } | |
596 | + }) | |
597 | + }, | |
550 | 598 | loadCountry: function() { |
551 | 599 | countryInfo.init(this) |
552 | 600 | var countrylist = this.data.country | ... | ... |
请
注册
或
登录
后发表评论