提交 d86a9bf4d7ac3ffe441b26fb1faae3024e5edfcd

作者 pangy
2 个父辈 b2e392c4 579a5369

Merge branch 'dev_py' into dev2.0

... ... @@ -16,7 +16,8 @@ const Deduce_amounts_month = {
16 16 'continuing_education': 400,
17 17 'support_duty': 2000,
18 18 'medical_fund': 0,
19   - 'house_fund': 0
  19 + 'house_fund_rent': 1000,
  20 + "house_fund_loan":1200
20 21 }
21 22 const Deduce_amounts_year = {
22 23 'children_education': 12000,
... ... @@ -24,13 +25,15 @@ const Deduce_amounts_year = {
24 25 'continuing_education_non': 3600,
25 26 'support_duty': 24000,
26 27 'medical_fund': 0,
27   - 'house_fund': 0
  28 + 'house_fund_rent': 12000,
  29 + "house_fund_loan":14400
28 30 }
29 31
30 32 Page({
31 33 idcard_belong: null, //照片信息获取返回时判断所属
32 34 legal_entity_id: "",
33 35 legal_entity: "",
  36 + fund_type:"",
34 37 data: {
35 38 house_type: "",
36 39 deduction_amount: '',
... ... @@ -484,8 +487,26 @@ Page({
484 487 cardtypeData: cardtype_data,
485 488 commonbirthDate: commonbirth_date
486 489 })
487   - } else if (frontPage.data.house_type == "house_fund_rent" || frontPage.data.house_type == "house_fund_loan") {
  490 + } else if (frontPage.data.house_type == "rent") {
488 491 this.getbanklist()
  492 + this.fund_type = "rent"
  493 + if (options.reducetype == '月度') {
  494 + reduce_typeData.selected = '月度'
  495 + deduction_amount = Deduce_amounts_month["house_fund_rent"]
  496 + } else {
  497 + deduction_amount = Deduce_amounts_year["house_fund_rent"]
  498 + reduce_typeData.selected = '年度'
  499 + }
  500 + } else if (frontPage.data.house_type == "house_fund_loan") {
  501 + this.getbanklist()
  502 + this.fund_type = "loan"
  503 + if (options.reducetype == '月度') {
  504 + reduce_typeData.selected = '月度'
  505 + deduction_amount = Deduce_amounts_month["house_fund_loan"]
  506 + } else {
  507 + deduction_amount = Deduce_amounts_year["house_fund_loan"]
  508 + reduce_typeData.selected = '年度'
  509 + }
489 510 }
490 511 var title = '添加' + AddTypeNames[nameKey]
491 512
... ... @@ -1470,10 +1491,16 @@ Page({
1470 1491 case 'reduce_type':
1471 1492 var reduce_typeData = this.data.reducetypeData
1472 1493 var deduction_amount
  1494 + var key = this.data.cur_index
  1495 + if (this.fund_type == 'rent') {
  1496 + key = 'house_fund_rent'
  1497 + } else if (this.fund_type == 'loan') {
  1498 + key = 'house_fund_loan'
  1499 + }
1473 1500 if (e.detail.value == '0') {
1474   - deduction_amount = Deduce_amounts_month[this.data.cur_index]
  1501 + deduction_amount = Deduce_amounts_month[key]
1475 1502 } else {
1476   - deduction_amount = Deduce_amounts_year[this.data.cur_index]
  1503 + deduction_amount = Deduce_amounts_year[key]
1477 1504 }
1478 1505 reduce_typeData.selected = reduce_typeData.values[e.detail.value]
1479 1506 this.setData({
... ...
注册登录 后发表评论