正在显示
2 个修改的文件
包含
96 行增加
和
83 行删除
@@ -506,26 +506,26 @@ Page({ | @@ -506,26 +506,26 @@ Page({ | ||
506 | placeholder: '中国', | 506 | placeholder: '中国', |
507 | onChange: 'onPickerSelect', | 507 | onChange: 'onPickerSelect', |
508 | }, | 508 | }, |
509 | - bankInfo: { | ||
510 | - label: '公积金贷款银行', | ||
511 | - bindtype: 'bank', | ||
512 | - maxWidth: 400, | ||
513 | - isrequre: true, | ||
514 | - placeholder: '请选择贷款银行', | ||
515 | - selected: '', | ||
516 | - values: [], | ||
517 | - onChange: 'onPickerSelect' | ||
518 | - }, | ||
519 | - bankInfo_2: { | ||
520 | - label: '商业贷款银行', | ||
521 | - bindtype: 'bank_2', | ||
522 | - maxWidth: 430, | ||
523 | - isrequre: true, | ||
524 | - placeholder: '请选择贷款银行', | ||
525 | - selected: '', | ||
526 | - values: [], | ||
527 | - onChange: 'onPickerSelect' | ||
528 | - }, | 509 | + // bankInfo: { |
510 | + // label: '公积金贷款银行', | ||
511 | + // bindtype: 'bank', | ||
512 | + // maxWidth: 400, | ||
513 | + // isrequre: true, | ||
514 | + // placeholder: '请选择贷款银行', | ||
515 | + // selected: '', | ||
516 | + // values: [], | ||
517 | + // onChange: 'onPickerSelect' | ||
518 | + // }, | ||
519 | + // bankInfo_2: { | ||
520 | + // label: '商业贷款银行', | ||
521 | + // bindtype: 'bank_2', | ||
522 | + // maxWidth: 430, | ||
523 | + // isrequre: true, | ||
524 | + // placeholder: '请选择贷款银行', | ||
525 | + // selected: '', | ||
526 | + // values: [], | ||
527 | + // onChange: 'onPickerSelect' | ||
528 | + // }, | ||
529 | edu_lable: "school", | 529 | edu_lable: "school", |
530 | oldersupport_lable: "", | 530 | oldersupport_lable: "", |
531 | img_path: "/images/upload_img.png" | 531 | img_path: "/images/upload_img.png" |
@@ -1005,9 +1005,9 @@ Page({ | @@ -1005,9 +1005,9 @@ Page({ | ||
1005 | setData.loan_contract_no = data.loan_contract_no | 1005 | setData.loan_contract_no = data.loan_contract_no |
1006 | } | 1006 | } |
1007 | if (data.loan_bank && data.loan_bank.length) { | 1007 | if (data.loan_bank && data.loan_bank.length) { |
1008 | - var bank_data = this.data.bankInfo | ||
1009 | - bank_data.selected = data.loan_bank | ||
1010 | - setData.bankInfo = bank_data | 1008 | + // var bank_data = this.data.bankInfo |
1009 | + // bank_data.selected = data.loan_bank | ||
1010 | + setData.loan_bank = data.loan_bank | ||
1011 | } | 1011 | } |
1012 | var firstpayback_Date = this.data.firstpaybackDate | 1012 | var firstpayback_Date = this.data.firstpaybackDate |
1013 | firstpayback_Date.selected = format.formatTime_date(data.loan_start) | 1013 | firstpayback_Date.selected = format.formatTime_date(data.loan_start) |
@@ -1020,9 +1020,10 @@ Page({ | @@ -1020,9 +1020,10 @@ Page({ | ||
1020 | setData.sec_loan_contract_no = data.sec_loan_contract_no | 1020 | setData.sec_loan_contract_no = data.sec_loan_contract_no |
1021 | } | 1021 | } |
1022 | if (data.sec_loan_bank && data.sec_loan_bank.length) { | 1022 | if (data.sec_loan_bank && data.sec_loan_bank.length) { |
1023 | - var bank_data = this.data.bankInfo_2 | ||
1024 | - bank_data.selected = data.sec_loan_bank | ||
1025 | - setData.bankInfo_2 = bank_data | 1023 | + // var bank_data = this.data.bankInfo_2 |
1024 | + // bank_data.selected = data.sec_loan_bank | ||
1025 | + // setData.bankInfo_2 = bank_data | ||
1026 | + setData.sec_loan_bank = data.sec_loan_bank | ||
1026 | } | 1027 | } |
1027 | var firstpaybackDate_2 = this.data.firstpaybackDate_2 | 1028 | var firstpaybackDate_2 = this.data.firstpaybackDate_2 |
1028 | firstpaybackDate_2.selected = format.formatTime_date(data.sec_loan_start) | 1029 | firstpaybackDate_2.selected = format.formatTime_date(data.sec_loan_start) |
@@ -1217,36 +1218,36 @@ Page({ | @@ -1217,36 +1218,36 @@ Page({ | ||
1217 | }) | 1218 | }) |
1218 | }, | 1219 | }, |
1219 | 1220 | ||
1220 | - getbanklist: function() { | ||
1221 | - var that = this | ||
1222 | - var Authorization = app.globalData.Authorization; | ||
1223 | - var bank_info = that.data.bankInfo | ||
1224 | - var bank_info_2 = that.data.bankInfo_2 | ||
1225 | - wx.request({ | ||
1226 | - url: baseUrl + 'persontax/v1/bank-list', | ||
1227 | - method: "GET", | ||
1228 | - header: { | ||
1229 | - 'content-type': 'application/json', // 默认值 | ||
1230 | - "Authorization": Authorization | ||
1231 | - }, | ||
1232 | - success: function(res) { | ||
1233 | - console.log(res) | ||
1234 | - bank_info.values = res.data.banks//that.handleBankinfo(res.data.items) | ||
1235 | - bank_info_2.values = res.data.banks//that.handleBankinfo(res.data.items) | ||
1236 | - that.setData({ | ||
1237 | - bankInfo: bank_info, | ||
1238 | - bankInfo_2: bank_info_2 | ||
1239 | - }) | ||
1240 | - console.log("bankInfo", that.data.bankInfo) | ||
1241 | - }, | ||
1242 | - fail(res) { | ||
1243 | - console.log(res) | ||
1244 | - }, | ||
1245 | - complete() { | ||
1246 | - wx.hideLoading() | ||
1247 | - } | ||
1248 | - }) | ||
1249 | - }, | 1221 | + // getbanklist: function() { |
1222 | + // var that = this | ||
1223 | + // var Authorization = app.globalData.Authorization; | ||
1224 | + // var bank_info = that.data.bankInfo | ||
1225 | + // var bank_info_2 = that.data.bankInfo_2 | ||
1226 | + // wx.request({ | ||
1227 | + // url: baseUrl + 'persontax/v1/bank-list', | ||
1228 | + // method: "GET", | ||
1229 | + // header: { | ||
1230 | + // 'content-type': 'application/json', // 默认值 | ||
1231 | + // "Authorization": Authorization | ||
1232 | + // }, | ||
1233 | + // success: function(res) { | ||
1234 | + // console.log(res) | ||
1235 | + // bank_info.values = res.data.banks//that.handleBankinfo(res.data.items) | ||
1236 | + // bank_info_2.values = res.data.banks//that.handleBankinfo(res.data.items) | ||
1237 | + // that.setData({ | ||
1238 | + // bankInfo: bank_info, | ||
1239 | + // bankInfo_2: bank_info_2 | ||
1240 | + // }) | ||
1241 | + // console.log("bankInfo", that.data.bankInfo) | ||
1242 | + // }, | ||
1243 | + // fail(res) { | ||
1244 | + // console.log(res) | ||
1245 | + // }, | ||
1246 | + // complete() { | ||
1247 | + // wx.hideLoading() | ||
1248 | + // } | ||
1249 | + // }) | ||
1250 | + // }, | ||
1250 | getCertificates: function () { | 1251 | getCertificates: function () { |
1251 | var that = this | 1252 | var that = this |
1252 | var Authorization = app.globalData.Authorization; | 1253 | var Authorization = app.globalData.Authorization; |
@@ -1281,13 +1282,13 @@ Page({ | @@ -1281,13 +1282,13 @@ Page({ | ||
1281 | } | 1282 | } |
1282 | }) | 1283 | }) |
1283 | }, | 1284 | }, |
1284 | - handleBankinfo: function(data) { | ||
1285 | - var bank_name = [] | ||
1286 | - for (var i = 0; i < data.length; i++) { | ||
1287 | - bank_name.push(data[i].bank_name) | ||
1288 | - } | ||
1289 | - return bank_name | ||
1290 | - }, | 1285 | + // handleBankinfo: function(data) { |
1286 | + // var bank_name = [] | ||
1287 | + // for (var i = 0; i < data.length; i++) { | ||
1288 | + // bank_name.push(data[i].bank_name) | ||
1289 | + // } | ||
1290 | + // return bank_name | ||
1291 | + // }, | ||
1291 | 1292 | ||
1292 | formSubmit: function(e) { | 1293 | formSubmit: function(e) { |
1293 | console.log("formSubmit", e); | 1294 | console.log("formSubmit", e); |
@@ -1593,7 +1594,7 @@ Page({ | @@ -1593,7 +1594,7 @@ Page({ | ||
1593 | if (!formdata.loan_contract_no || formdata.loan_contract_no.length < 1) { | 1594 | if (!formdata.loan_contract_no || formdata.loan_contract_no.length < 1) { |
1594 | this.showToast('请填写公积金贷款合同编号') | 1595 | this.showToast('请填写公积金贷款合同编号') |
1595 | return | 1596 | return |
1596 | - } else if (this.data.bankInfo.selected.length < 1) { | 1597 | + } else if (!formdata.loan_bank || formdata.loan_bank.length < 1) { |
1597 | this.showToast('请选择公积金贷款银行') | 1598 | this.showToast('请选择公积金贷款银行') |
1598 | return | 1599 | return |
1599 | } else if (this.data.firstpaybackDate.selected.length < 1) { | 1600 | } else if (this.data.firstpaybackDate.selected.length < 1) { |
@@ -1603,7 +1604,7 @@ Page({ | @@ -1603,7 +1604,7 @@ Page({ | ||
1603 | this.showToast('请填写公积金贷款期限') | 1604 | this.showToast('请填写公积金贷款期限') |
1604 | return | 1605 | return |
1605 | } | 1606 | } |
1606 | - newdata.loan_bank = this.data.bankInfo.selected | 1607 | + newdata.loan_bank = formdata.loan_bank |
1607 | newdata.loan_start = this.data.firstpaybackDate.datelong | 1608 | newdata.loan_start = this.data.firstpaybackDate.datelong |
1608 | newdata.loan_months = parseInt(formdata.loan_months) | 1609 | newdata.loan_months = parseInt(formdata.loan_months) |
1609 | } | 1610 | } |
@@ -1611,7 +1612,7 @@ Page({ | @@ -1611,7 +1612,7 @@ Page({ | ||
1611 | if (!formdata.sec_loan_contract_no || formdata.sec_loan_contract_no.length < 1) { | 1612 | if (!formdata.sec_loan_contract_no || formdata.sec_loan_contract_no.length < 1) { |
1612 | this.showToast('请填写商业贷款合同编号') | 1613 | this.showToast('请填写商业贷款合同编号') |
1613 | return | 1614 | return |
1614 | - } else if (this.data.bankInfo_2.selected.length < 1) { | 1615 | + } else if (!formdata.sec_loan_bank || formdata.sec_loan_bank.length < 1) { |
1615 | this.showToast('请选择商业贷款银行') | 1616 | this.showToast('请选择商业贷款银行') |
1616 | return | 1617 | return |
1617 | } else if (this.data.firstpaybackDate_2.selected.length < 1) { | 1618 | } else if (this.data.firstpaybackDate_2.selected.length < 1) { |
@@ -1621,7 +1622,7 @@ Page({ | @@ -1621,7 +1622,7 @@ Page({ | ||
1621 | this.showToast('请填写商业贷款期限') | 1622 | this.showToast('请填写商业贷款期限') |
1622 | return | 1623 | return |
1623 | } | 1624 | } |
1624 | - newdata.sec_loan_bank = this.data.bankInfo_2.selected | 1625 | + newdata.sec_loan_bank = formdata.sec_loan_bank |
1625 | newdata.sec_loan_start = this.data.firstpaybackDate_2.datelong | 1626 | newdata.sec_loan_start = this.data.firstpaybackDate_2.datelong |
1626 | newdata.sec_loan_months = parseInt(formdata.sec_loan_months) | 1627 | newdata.sec_loan_months = parseInt(formdata.sec_loan_months) |
1627 | } | 1628 | } |
@@ -2294,20 +2295,20 @@ Page({ | @@ -2294,20 +2295,20 @@ Page({ | ||
2294 | this.showToast('终止日期不符合要求,无法申报') | 2295 | this.showToast('终止日期不符合要求,无法申报') |
2295 | } | 2296 | } |
2296 | break; | 2297 | break; |
2297 | - case 'bank': | ||
2298 | - var bank_data = this.data.bankInfo | ||
2299 | - bank_data.selected = bank_data.values[e.detail.value] | ||
2300 | - this.setData({ | ||
2301 | - bankInfo: bank_data | ||
2302 | - }) | ||
2303 | - break; | ||
2304 | - case 'bank_2': | ||
2305 | - var bank_data_2 = this.data.bankInfo_2 | ||
2306 | - bank_data_2.selected = bank_data_2.values[e.detail.value] | ||
2307 | - this.setData({ | ||
2308 | - bankInfo_2: bank_data_2 | ||
2309 | - }) | ||
2310 | - break; | 2298 | + // case 'bank': |
2299 | + // var bank_data = this.data.bankInfo | ||
2300 | + // bank_data.selected = bank_data.values[e.detail.value] | ||
2301 | + // this.setData({ | ||
2302 | + // bankInfo: bank_data | ||
2303 | + // }) | ||
2304 | + // break; | ||
2305 | + // case 'bank_2': | ||
2306 | + // var bank_data_2 = this.data.bankInfo_2 | ||
2307 | + // bank_data_2.selected = bank_data_2.values[e.detail.value] | ||
2308 | + // this.setData({ | ||
2309 | + // bankInfo_2: bank_data_2 | ||
2310 | + // }) | ||
2311 | + // break; | ||
2311 | case 'house_locate': | 2312 | case 'house_locate': |
2312 | console.log('house_locate', e) | 2313 | console.log('house_locate', e) |
2313 | var house_address = this.data.houseLocateInfo; | 2314 | var house_address = this.data.houseLocateInfo; |
@@ -235,8 +235,14 @@ | @@ -235,8 +235,14 @@ | ||
235 | <text class='text_777_30 float_left'>公积金贷款合同编号</text> | 235 | <text class='text_777_30 float_left'>公积金贷款合同编号</text> |
236 | <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入贷款合同编号' name='loan_contract_no' value='{{loan_contract_no}}' bindinput="loan_input" id='loan_contract_no'></input> | 236 | <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入贷款合同编号' name='loan_contract_no' value='{{loan_contract_no}}' bindinput="loan_input" id='loan_contract_no'></input> |
237 | </view> | 237 | </view> |
238 | + <!-- <view class='divide_line_30'></view> | ||
239 | + <template is="picker_cell_normal" data="{{...bankInfo}}" /> --> | ||
238 | <view class='divide_line_30'></view> | 240 | <view class='divide_line_30'></view> |
239 | - <template is="picker_cell_normal" data="{{...bankInfo}}" /> | 241 | + <view style='height:90rpx'> |
242 | + <text class='red_star_right_10'>*</text> | ||
243 | + <text class='text_777_30 float_left'>公积金贷款银行</text> | ||
244 | + <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入贷款合同编号' name='loan_bank' value='{{loan_bank}}'></input> | ||
245 | + </view> | ||
240 | <view class='divide_line_30'></view> | 246 | <view class='divide_line_30'></view> |
241 | <template is="picker_cell_normal" data="{{...firstpaybackDate}}" /> | 247 | <template is="picker_cell_normal" data="{{...firstpaybackDate}}" /> |
242 | <view class='divide_line_30'></view> | 248 | <view class='divide_line_30'></view> |
@@ -254,8 +260,14 @@ | @@ -254,8 +260,14 @@ | ||
254 | <text class='text_777_30 float_left'>商业贷款合同编号</text> | 260 | <text class='text_777_30 float_left'>商业贷款合同编号</text> |
255 | <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;width:400rpx;' placeholder='请输入贷款合同编号' name='sec_loan_contract_no' value='{{sec_loan_contract_no}}' bindinput="loan_input" id='sec_loan_contract_no' ></input> | 261 | <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;width:400rpx;' placeholder='请输入贷款合同编号' name='sec_loan_contract_no' value='{{sec_loan_contract_no}}' bindinput="loan_input" id='sec_loan_contract_no' ></input> |
256 | </view> | 262 | </view> |
263 | + <!-- <view class='divide_line_30'></view> | ||
264 | + <template is="picker_cell_normal" data="{{...bankInfo_2}}" /> --> | ||
257 | <view class='divide_line_30'></view> | 265 | <view class='divide_line_30'></view> |
258 | - <template is="picker_cell_normal" data="{{...bankInfo_2}}" /> | 266 | + <view style='height:90rpx'> |
267 | + <text class='red_star_right_10'>*</text> | ||
268 | + <text class='text_777_30 float_left'>商业贷款银行</text> | ||
269 | + <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入商业贷款银行' name='sec_loan_bank' value='{{sec_loan_bank}}'></input> | ||
270 | + </view> | ||
259 | <view class='divide_line_30'></view> | 271 | <view class='divide_line_30'></view> |
260 | <template is="picker_cell_normal" data="{{...firstpaybackDate_2}}" /> | 272 | <template is="picker_cell_normal" data="{{...firstpaybackDate_2}}" /> |
261 | <view class='divide_line_30'></view> | 273 | <view class='divide_line_30'></view> |
请
注册
或
登录
后发表评论