提交 12f05a5a4134b43a60aec86711e51b68203bb065

作者 pangy
2 个父辈 f459afd8 c3c1c9ed

Merge branch 'dev_py' into dev2.0

... ... @@ -4,9 +4,7 @@ var app = getApp();
4 4 var baseUrl = app.globalData.baseUrl;
5 5 Page({
6 6 idcard_belong:null,//照片信息获取返回时判断所属
7   - /**
8   - * Page initial data
9   - */
  7 + legal_entity_id: "",
10 8 data: {
11 9 deduction_amount:'',
12 10 lable: 0,
... ... @@ -14,7 +12,7 @@ Page({
14 12 title: '',
15 13 isIdCard:true,
16 14 extrainfo_arr: ["请上传子女出生证明、学籍信息凭证、学费凭证、本人结婚证和分摊协议", "请上传学历学籍凭证", "请上传出生证明或关系证明、独生子女证、分摊协议、其他法定赡养人赡养证明", "请上传诊断书和医疗费用收据", "请上传首套房证明、还款证明、不动产登记证、结婚证和夫妻约定抵扣协议"],
17   - cur_index: 0,
  15 + cur_index: 'children_education',
18 16 lovercardtypeData: {
19 17 label: '身份证件类型',
20 18 bindtype: 'lovercardtype',
... ... @@ -322,17 +320,17 @@ Page({
322 320 wx.setNavigationBarTitle({
323 321 title: this.data.title,
324 322 })
  323 + this.legal_entity_id = options.legal_entity_id
325 324 var reduce_typeData = this.data.reducetypeData
326 325 var deduction_amount = 1200
327 326 reduce_typeData.selected = '月度扣除'
328 327 this.setData({
329 328 title: '添加' + options.title,
330   - cur_index: options.index,
  329 + cur_index: options.status,
331 330 reducetypeData: reduce_typeData,
332 331 deduction_amount: deduction_amount
333 332 })
334 333
335   -
336 334 this.initOSS()
337 335 },
338 336
... ... @@ -446,7 +444,7 @@ Page({
446 444 var formdata = e.detail.value
447 445 var newdata = formdata;
448 446 switch (this.data.cur_index + '') {
449   - case '0':
  447 + case 'children_education':
450 448 if (!formdata.children_id_card_no || formdata.children_id_card_no.length < 1) {
451 449 this.showToast('请填写子女证件号码')
452 450 return
... ... @@ -509,7 +507,7 @@ Page({
509 507 newdata.children_nation = "中国"
510 508 newdata.nation = "中国"
511 509 break;
512   - case '1':
  510 + case 'continuing_education':
513 511 if (this.data.edutypeData.selected.length < 1) {
514 512 this.showToast('请选择教育类型')
515 513 return
... ... @@ -555,7 +553,7 @@ Page({
555 553 newdata.education_end = this.data.studystartdate.datelong
556 554 newdata.education_start = this.data.studyenddate.datelong
557 555 break;
558   - case '2':
  556 + case 'support_duty':
559 557 if (this.data.supporttypeData.selected.length < 1) {
560 558 this.showToast('请选择赡养类型')
561 559 return
... ... @@ -585,7 +583,7 @@ Page({
585 583 newdata.support_type = this.data.supporttypeData.selected
586 584 newdata.older_cardtype = this.data.oldercardtypeData.selected
587 585 break;
588   - case '3':
  586 + case 'medical_fund':
589 587 if (!formdata.name || formdata.name.length < 1) {
590 588 this.showToast('请填写姓名')
591 589 return
... ... @@ -608,7 +606,7 @@ Page({
608 606 newdata.cardtype = this.data.cardtypeData.selected
609 607 newdata.taxperson_relative = this.data.taxperson_relativeData.selected
610 608 break;
611   - case '4':
  609 + case 'house_fund_rent':
612 610 console.log('TITLE', this.data.title)
613 611 if (!formdata.lover_name || formdata.lover_name.length < 1) {
614 612 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>
... ...
注册登录 后发表评论