提交 12f05a5a4134b43a60aec86711e51b68203bb065

作者 pangy
2 个父辈 f459afd8 c3c1c9ed

Merge branch 'dev_py' into dev2.0

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