正在显示
3 个修改的文件
包含
36 行增加
和
5 行删除
@@ -86,8 +86,38 @@ Page({ | @@ -86,8 +86,38 @@ Page({ | ||
86 | this.cur_id = options.id | 86 | this.cur_id = options.id |
87 | this.getpersonalTax(options.id) | 87 | this.getpersonalTax(options.id) |
88 | } | 88 | } |
89 | + this.getCountry() | ||
90 | + }, | ||
91 | + //****************获取国籍数据************/ | ||
92 | + getCountry: function () { | ||
93 | + var that = this | ||
94 | + wx.showLoading({ | ||
95 | + title: '', | ||
96 | + }) | ||
97 | + var Authorization = app.globalData.Authorization; | ||
98 | + wx.request({ | ||
99 | + url: baseUrl + 'persontax/v1/nation-list', | ||
100 | + method: "GET", | ||
101 | + header: { | ||
102 | + 'content-type': 'application/json', // 默认值 | ||
103 | + "Authorization": Authorization | ||
104 | + }, | ||
105 | + success: function (res) { | ||
106 | + var countryData = that.data.countryData | ||
107 | + countryData.values = res.data | ||
108 | + that.countrys = res.data | ||
109 | + that.setData({ | ||
110 | + countryData: countryData, | ||
111 | + }) | ||
112 | + }, | ||
113 | + fail(res) { | ||
114 | + wx.hideLoading() | ||
115 | + }, | ||
116 | + complete() { | ||
117 | + wx.hideLoading() | ||
118 | + } | ||
119 | + }) | ||
89 | }, | 120 | }, |
90 | - | ||
91 | //****************获取自然人数据************/ | 121 | //****************获取自然人数据************/ |
92 | getpersonalTax: function (id) { | 122 | getpersonalTax: function (id) { |
93 | var that = this | 123 | var that = this |
@@ -316,10 +316,10 @@ Page({ | @@ -316,10 +316,10 @@ Page({ | ||
316 | success: function (res) { | 316 | success: function (res) { |
317 | console.log('country', res) | 317 | console.log('country', res) |
318 | var countryData = that.data.countryData | 318 | var countryData = that.data.countryData |
319 | - countryData.values = res.data.countrys | 319 | + countryData.values = res.data |
320 | var birthCountryData = that.data.birthCountryData | 320 | var birthCountryData = that.data.birthCountryData |
321 | - birthCountryData.values = res.data.countrys | ||
322 | - that.countrys = res.data.countrys | 321 | + birthCountryData.values = res.data |
322 | + that.countrys = res.data | ||
323 | that.setData({ | 323 | that.setData({ |
324 | countryData: countryData, | 324 | countryData: countryData, |
325 | birthCountryData: birthCountryData | 325 | birthCountryData: birthCountryData |
@@ -432,7 +432,7 @@ Page({ | @@ -432,7 +432,7 @@ Page({ | ||
432 | this.data.lieshuInfo.selected = tax_info.is_martyr_family | 432 | this.data.lieshuInfo.selected = tax_info.is_martyr_family |
433 | this.data.lonelyolderInfo.selected = tax_info.is_lonely_man | 433 | this.data.lonelyolderInfo.selected = tax_info.is_lonely_man |
434 | this.data.bankInfo.selected = tax_info.bank | 434 | this.data.bankInfo.selected = tax_info.bank |
435 | - this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district | 435 | + // this.data.contactaddressInfo.selected = tax_info.contact_address.province + tax_info.contact_address.city + tax_info.contact_address.district |
436 | this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district | 436 | this.data.currentaddressInfo.selected = tax_info.current_address.province + tax_info.current_address.city + tax_info.current_address.district |
437 | this.data.birthaddressInfo.selected = (tax_info.huji_address.province + tax_info.huji_address.city + tax_info.huji_address.district).replace(/(^\s*)|(\s*$)/g, "") | 437 | this.data.birthaddressInfo.selected = (tax_info.huji_address.province + tax_info.huji_address.city + tax_info.huji_address.district).replace(/(^\s*)|(\s*$)/g, "") |
438 | this.data.employeeInfo.selected = tax_info.is_employee | 438 | this.data.employeeInfo.selected = tax_info.is_employee |
@@ -32,6 +32,7 @@ | @@ -32,6 +32,7 @@ | ||
32 | <input class='input_wrap' disabled="{{taxInfo.certification_status=='active' && taxInfo.id_card_no.length>0}}" placeholder="请输入证照号码" value="{{card_number}}" name='id_card_no' maxlength='30' bindblur='idcardblur' bindinput = 'bindinputcardnum' type="{{isIdCard?'idcard':''}}"></input> | 32 | <input class='input_wrap' disabled="{{taxInfo.certification_status=='active' && taxInfo.id_card_no.length>0}}" placeholder="请输入证照号码" value="{{card_number}}" name='id_card_no' maxlength='30' bindblur='idcardblur' bindinput = 'bindinputcardnum' type="{{isIdCard?'idcard':''}}"></input> |
33 | <!-- <input class='input_wrap' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入证照号码" value='{{card_number}}' name='id_card_no' maxlength='18' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> | 33 | <!-- <input class='input_wrap' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入证照号码" value='{{card_number}}' name='id_card_no' maxlength='18' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> |
34 | <input class='input_wrap' hidden="{{taxInfo.certification_status!='active'}}" placeholder="{{card_number?card_number:'身份证号获取失败'}}" name='id_card_no' disabled='true'></input> --> | 34 | <input class='input_wrap' hidden="{{taxInfo.certification_status!='active'}}" placeholder="{{card_number?card_number:'身份证号获取失败'}}" name='id_card_no' disabled='true'></input> --> |
35 | + <view class="divide_line_30"></view> | ||
35 | </view> | 36 | </view> |
36 | </view> | 37 | </view> |
37 | <view class='item_body' hidden="{{!isself}}"> | 38 | <view class='item_body' hidden="{{!isself}}"> |
请
注册
或
登录
后发表评论