提交 d737c1ee50387d45d12646b5abcf39d876dc75fe

作者 wangyu
1 个父辈 1826de2c

优化

@@ -320,6 +320,7 @@ Page({ @@ -320,6 +320,7 @@ Page({
320 wx.hideLoading() 320 wx.hideLoading()
321 } else { 321 } else {
322 this.setData({ 322 this.setData({
  323 + handle_finished: true,
323 additionInfo: newdata 324 additionInfo: newdata
324 }) 325 })
325 } 326 }
@@ -518,6 +519,12 @@ Page({ @@ -518,6 +519,12 @@ Page({
518 if (!Authorization || Authorization.length < 10) { 519 if (!Authorization || Authorization.length < 10) {
519 return 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 wx.request({ 528 wx.request({
522 url: baseUrl + 'persontax/v1/personal-taxes', 529 url: baseUrl + 'persontax/v1/personal-taxes',
523 method: "GET", 530 method: "GET",
@@ -526,7 +533,9 @@ Page({ @@ -526,7 +533,9 @@ Page({
526 "Authorization": Authorization 533 "Authorization": Authorization
527 }, 534 },
528 data: { 535 data: {
529 - 'all': true 536 + // 'all': true,
  537 + "declare_unit_id":that.data.legal_entity_id,
  538 + "category": type
530 }, 539 },
531 success: function(res) { 540 success: function(res) {
532 console.log('succ', res) 541 console.log('succ', res)
@@ -382,6 +382,7 @@ @@ -382,6 +382,7 @@
382 </view> 382 </view>
383 383
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'))}}"> 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 <view class='btn_blue_radius' bindtap="goadd"> 386 <view class='btn_blue_radius' bindtap="goadd">
386 <view class='text_white_34'>添加</view> 387 <view class='text_white_34'>添加</view>
387 </view> 388 </view>
注册登录 后发表评论