正在显示
2 个修改的文件
包含
13 行增加
和
6 行删除
| ... | ... | @@ -9,10 +9,10 @@ Page({ |
| 9 | 9 | */ |
| 10 | 10 | data: { |
| 11 | 11 | cur_status: "", |
| 12 | - handle_finished: false, | |
| 13 | 12 | legal_entity_id: "", |
| 14 | 13 | legal_entity: "", |
| 15 | 14 | house_type: "", |
| 15 | + btn_show:false, | |
| 16 | 16 | person_total_amount: 0, |
| 17 | 17 | remaining_amount: 0, |
| 18 | 18 | input_disable: false, |
| ... | ... | @@ -179,6 +179,7 @@ Page({ |
| 179 | 179 | origindata: data |
| 180 | 180 | }) |
| 181 | 181 | if (newdata && newdata.length > 0) { |
| 182 | + var btn_show = this.data.btn_show | |
| 182 | 183 | if (that.data.cur_status == "continuing_education") { |
| 183 | 184 | var professionlist = newdata[0].profession_items |
| 184 | 185 | for (var i = 0; i < professionlist.length > 0; i++) { |
| ... | ... | @@ -195,6 +196,7 @@ Page({ |
| 195 | 196 | titlelist[i].education_end = this.formatDate(titlelist[i].education_end).substring(0, 7) |
| 196 | 197 | } |
| 197 | 198 | } |
| 199 | + btn_show = true | |
| 198 | 200 | // this.setData({ |
| 199 | 201 | // issinglechildData: issinglechild_Data, |
| 200 | 202 | // shareMethodData: shareMethod_Data |
| ... | ... | @@ -227,6 +229,9 @@ Page({ |
| 227 | 229 | } |
| 228 | 230 | } |
| 229 | 231 | } |
| 232 | + if (supportlist.length1 < 1 && supportlist.length<1){ | |
| 233 | + btn_show = true | |
| 234 | + } | |
| 230 | 235 | this.setData({ |
| 231 | 236 | issinglechildData: issinglechild_Data, |
| 232 | 237 | shareMethodData: shareMethod_Data, |
| ... | ... | @@ -302,7 +307,9 @@ Page({ |
| 302 | 307 | housetype_new = newdata[0].type == 'loan' ? "house_fund_loan" : "house_fund_rent" |
| 303 | 308 | } |
| 304 | 309 | console.log("housetype_new", housetype_new) |
| 305 | - | |
| 310 | + if (housetype_new !="house_fund_loan"){ | |
| 311 | + btn_show = true | |
| 312 | + } | |
| 306 | 313 | this.setData({ |
| 307 | 314 | house_type: housetype_new, |
| 308 | 315 | }) |
| ... | ... | @@ -311,7 +318,7 @@ Page({ |
| 311 | 318 | reduce_amount: data.month_deduction_amount ? data.month_deduction_amount : 0, |
| 312 | 319 | input_disable: true, |
| 313 | 320 | |
| 314 | - handle_finished: true, | |
| 321 | + btn_show: btn_show, | |
| 315 | 322 | person_total_amount: data.person_total_amount ? data.person_total_amount : 0, |
| 316 | 323 | remaining_amount: data.remaining_amount ? data.remaining_amount : 0, |
| 317 | 324 | additionInfo: newdata |
| ... | ... | @@ -320,7 +327,7 @@ Page({ |
| 320 | 327 | wx.hideLoading() |
| 321 | 328 | } else { |
| 322 | 329 | this.setData({ |
| 323 | - handle_finished: true, | |
| 330 | + btn_show : true, | |
| 324 | 331 | additionInfo: newdata |
| 325 | 332 | }) |
| 326 | 333 | } | ... | ... |
| ... | ... | @@ -381,8 +381,8 @@ |
| 381 | 381 | </view> |
| 382 | 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'))}}"> | |
| 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)))}}" > --> | |
| 384 | + <!-- <view class='bottom_btn_wrap' hidden="{{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="{{btn_show}}" > | |
| 386 | 386 | <view class='btn_blue_radius' bindtap="goadd"> |
| 387 | 387 | <view class='text_white_34'>添加</view> |
| 388 | 388 | </view> | ... | ... |
请
注册
或
登录
后发表评论