正在显示
2 个修改的文件
包含
14 行增加
和
14 行删除
... | ... | @@ -14,7 +14,7 @@ Page({ |
14 | 14 | title: '', |
15 | 15 | isIdCard:true, |
16 | 16 | extrainfo_arr: ["请上传子女出生证明、学籍信息凭证、学费凭证、本人结婚证和分摊协议", "请上传学历学籍凭证", "请上传出生证明或关系证明、独生子女证、分摊协议、其他法定赡养人赡养证明", "请上传诊断书和医疗费用收据", "请上传首套房证明、还款证明、不动产登记证、结婚证和夫妻约定抵扣协议"], |
17 | - cur_index: 0, | |
17 | + cur_index: 'children_education', | |
18 | 18 | lovercardtypeData: { |
19 | 19 | label: '身份证件类型', |
20 | 20 | bindtype: 'lovercardtype', |
... | ... | @@ -327,7 +327,7 @@ Page({ |
327 | 327 | reduce_typeData.selected = '月度扣除' |
328 | 328 | this.setData({ |
329 | 329 | title: '添加' + options.title, |
330 | - cur_index: options.index, | |
330 | + cur_index: options.status, | |
331 | 331 | reducetypeData: reduce_typeData, |
332 | 332 | deduction_amount: deduction_amount |
333 | 333 | }) |
... | ... | @@ -446,7 +446,7 @@ Page({ |
446 | 446 | var formdata = e.detail.value |
447 | 447 | var newdata = formdata; |
448 | 448 | switch (this.data.cur_index + '') { |
449 | - case '0': | |
449 | + case 'children_education': | |
450 | 450 | if (!formdata.children_id_card_no || formdata.children_id_card_no.length < 1) { |
451 | 451 | this.showToast('请填写子女证件号码') |
452 | 452 | return |
... | ... | @@ -509,7 +509,7 @@ Page({ |
509 | 509 | newdata.children_nation = "中国" |
510 | 510 | newdata.nation = "中国" |
511 | 511 | break; |
512 | - case '1': | |
512 | + case 'continuing_education': | |
513 | 513 | if (this.data.edutypeData.selected.length < 1) { |
514 | 514 | this.showToast('请选择教育类型') |
515 | 515 | return |
... | ... | @@ -555,7 +555,7 @@ Page({ |
555 | 555 | newdata.education_end = this.data.studystartdate.datelong |
556 | 556 | newdata.education_start = this.data.studyenddate.datelong |
557 | 557 | break; |
558 | - case '2': | |
558 | + case 'support_duty': | |
559 | 559 | if (this.data.supporttypeData.selected.length < 1) { |
560 | 560 | this.showToast('请选择赡养类型') |
561 | 561 | return |
... | ... | @@ -585,7 +585,7 @@ Page({ |
585 | 585 | newdata.support_type = this.data.supporttypeData.selected |
586 | 586 | newdata.older_cardtype = this.data.oldercardtypeData.selected |
587 | 587 | break; |
588 | - case '3': | |
588 | + case 'medical_fund': | |
589 | 589 | if (!formdata.name || formdata.name.length < 1) { |
590 | 590 | this.showToast('请填写姓名') |
591 | 591 | return |
... | ... | @@ -608,7 +608,7 @@ Page({ |
608 | 608 | newdata.cardtype = this.data.cardtypeData.selected |
609 | 609 | newdata.taxperson_relative = this.data.taxperson_relativeData.selected |
610 | 610 | break; |
611 | - case '4': | |
611 | + case 'house_fund_rent': | |
612 | 612 | console.log('TITLE', this.data.title) |
613 | 613 | if (!formdata.lover_name || formdata.lover_name.length < 1) { |
614 | 614 | this.showToast('请填写配偶姓名') | ... | ... |
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | <view class='page'> |
5 | 5 | <form bindsubmit='formSubmit'> |
6 | 6 | <!-- 添加子女 --> |
7 | - <view wx:if="{{cur_index==0}}"> | |
7 | + <view wx:if="{{cur_index=='children_education'}}"> | |
8 | 8 | <view style='padding:0 30rpx;'> |
9 | 9 | <template is="picker_cell_normal" data="{{...childrencardtypeData}}" /> |
10 | 10 | <view class='divide_line_f5f5f5'></view> |
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 | </view> |
64 | 64 | </view> |
65 | 65 | <!-- 继续教育 --> |
66 | - <view wx:if="{{cur_index==1}}" style='padding:0 30rpx;'> | |
66 | + <view wx:if="{{cur_index=='continuing_education'}}" style='padding:0 30rpx;'> | |
67 | 67 | |
68 | 68 | <template is="picker_cell_normal" data="{{...edutypeData}}" /> |
69 | 69 | <view class='divide_line_f5f5f5'></view> |
... | ... | @@ -100,7 +100,7 @@ |
100 | 100 | |
101 | 101 | </view> |
102 | 102 | <!-- 赡养老人 --> |
103 | - <view wx:if="{{cur_index==2}}" style='padding:0 30rpx;'> | |
103 | + <view wx:if="{{cur_index=='support_duty'}}" style='padding:0 30rpx;'> | |
104 | 104 | <template is="picker_cell_normal" data="{{...supporttypeData}}" /> |
105 | 105 | <view class='divide_line_f5f5f5'></view> |
106 | 106 | <view style='height:90rpx'> |
... | ... | @@ -133,7 +133,7 @@ |
133 | 133 | </view> --> |
134 | 134 | </view> |
135 | 135 | <!-- 大病医疗 --> |
136 | - <view wx:if="{{cur_index==3}}" style='padding:0 30rpx;'> | |
136 | + <view wx:if="{{cur_index=='medical_fund'}}" style='padding:0 30rpx;'> | |
137 | 137 | <view style='height:90rpx'> |
138 | 138 | <text class='text_black_30 float_left'>姓名</text> |
139 | 139 | <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入姓名' name='name'></input> |
... | ... | @@ -160,7 +160,7 @@ |
160 | 160 | </view> |
161 | 161 | </view> |
162 | 162 | <!-- 住房 --> |
163 | - <view wx:if="{{cur_index==4}}" style='padding:0 30rpx;'> | |
163 | + <view wx:if="{{cur_index=='house_fund_rent'}}" style='padding:0 30rpx;'> | |
164 | 164 | |
165 | 165 | <view wx:if="{{title=='添加住房贷款利息'}}"> |
166 | 166 | |
... | ... | @@ -235,7 +235,7 @@ |
235 | 235 | |
236 | 236 | <view style='padding:0 30rpx;'> |
237 | 237 | |
238 | - <view wx:if="{{cur_index==0}}"> | |
238 | + <view wx:if="{{cur_index=='children_education'}}"> | |
239 | 239 | <view style='height:90rpx'> |
240 | 240 | <text class='text_black_30 float_left'>配偶姓名</text> |
241 | 241 | <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入配偶姓名' name='spouse_name' value='{{spouse_name}}'></input> |
... | ... | @@ -267,7 +267,7 @@ |
267 | 267 | </view> |
268 | 268 | </view> |
269 | 269 | |
270 | - <view wx:if="{{cur_index==4}}"> | |
270 | + <view wx:if="{{cur_index=='house_fund_rent'}}"> | |
271 | 271 | <view style='height:90rpx'> |
272 | 272 | <text class='text_black_30 float_left'>配偶姓名</text> |
273 | 273 | <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入配偶姓名' name='spouse_name' value='{{spouse_name}}'></input> | ... | ... |
请
注册
或
登录
后发表评论