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