正在显示
2 个修改的文件
包含
11 行增加
和
1 行删除
| ... | ... | @@ -320,6 +320,7 @@ Page({ |
| 320 | 320 | wx.hideLoading() |
| 321 | 321 | } else { |
| 322 | 322 | this.setData({ |
| 323 | + handle_finished: true, | |
| 323 | 324 | additionInfo: newdata |
| 324 | 325 | }) |
| 325 | 326 | } |
| ... | ... | @@ -518,6 +519,12 @@ Page({ |
| 518 | 519 | if (!Authorization || Authorization.length < 10) { |
| 519 | 520 | return |
| 520 | 521 | } |
| 522 | + var type = "all" | |
| 523 | + if (this.data.cur_status == "children_education") { | |
| 524 | + type = "children" | |
| 525 | + } else if (this.data.cur_status == "support_duty") { | |
| 526 | + type = "parents" | |
| 527 | + } | |
| 521 | 528 | wx.request({ |
| 522 | 529 | url: baseUrl + 'persontax/v1/personal-taxes', |
| 523 | 530 | method: "GET", |
| ... | ... | @@ -526,7 +533,9 @@ Page({ |
| 526 | 533 | "Authorization": Authorization |
| 527 | 534 | }, |
| 528 | 535 | data: { |
| 529 | - 'all': true | |
| 536 | + // 'all': true, | |
| 537 | + "declare_unit_id":that.data.legal_entity_id, | |
| 538 | + "category": type | |
| 530 | 539 | }, |
| 531 | 540 | success: function(res) { |
| 532 | 541 | console.log('succ', res) | ... | ... |
| ... | ... | @@ -382,6 +382,7 @@ |
| 382 | 382 | </view> |
| 383 | 383 | |
| 384 | 384 | <view class='bottom_btn_wrap' hidden="{{handle_finished&&additionInfo.length>0&&((cur_status=='support_duty'&&(additionInfo[0].co_supporters.length>0||additionInfo[0].support_duties.length>0))||(cur_status=='house_fund'&&house_type=='house_fund_loan'))}}"> |
| 385 | + <!-- <view class='bottom_btn_wrap' wx:if="{{handle_finished&&(additionInfo.length<1||((!additionInfo[0].co_supporters||additionInfo[0].co_supporters.length<1)&&(!additionInfo[0].support_duties||additionInfo[0].support_duties.length<1))||((!additionInfo[0].profession_items||additionInfo[0].profession_items.length<1)&&(!additionInfo[0].title_items||additionInfo[0].title_items.length<1)))}}" > --> | |
| 385 | 386 | <view class='btn_blue_radius' bindtap="goadd"> |
| 386 | 387 | <view class='text_white_34'>添加</view> |
| 387 | 388 | </view> | ... | ... |
请
注册
或
登录
后发表评论