正在显示
2 个修改的文件
包含
96 行增加
和
83 行删除
... | ... | @@ -506,26 +506,26 @@ Page({ |
506 | 506 | placeholder: '中国', |
507 | 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 | 529 | edu_lable: "school", |
530 | 530 | oldersupport_lable: "", |
531 | 531 | img_path: "/images/upload_img.png" |
... | ... | @@ -1005,9 +1005,9 @@ Page({ |
1005 | 1005 | setData.loan_contract_no = data.loan_contract_no |
1006 | 1006 | } |
1007 | 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 | 1012 | var firstpayback_Date = this.data.firstpaybackDate |
1013 | 1013 | firstpayback_Date.selected = format.formatTime_date(data.loan_start) |
... | ... | @@ -1020,9 +1020,10 @@ Page({ |
1020 | 1020 | setData.sec_loan_contract_no = data.sec_loan_contract_no |
1021 | 1021 | } |
1022 | 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 | 1028 | var firstpaybackDate_2 = this.data.firstpaybackDate_2 |
1028 | 1029 | firstpaybackDate_2.selected = format.formatTime_date(data.sec_loan_start) |
... | ... | @@ -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 | 1251 | getCertificates: function () { |
1251 | 1252 | var that = this |
1252 | 1253 | var Authorization = app.globalData.Authorization; |
... | ... | @@ -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 | 1293 | formSubmit: function(e) { |
1293 | 1294 | console.log("formSubmit", e); |
... | ... | @@ -1593,7 +1594,7 @@ Page({ |
1593 | 1594 | if (!formdata.loan_contract_no || formdata.loan_contract_no.length < 1) { |
1594 | 1595 | this.showToast('请填写公积金贷款合同编号') |
1595 | 1596 | return |
1596 | - } else if (this.data.bankInfo.selected.length < 1) { | |
1597 | + } else if (!formdata.loan_bank || formdata.loan_bank.length < 1) { | |
1597 | 1598 | this.showToast('请选择公积金贷款银行') |
1598 | 1599 | return |
1599 | 1600 | } else if (this.data.firstpaybackDate.selected.length < 1) { |
... | ... | @@ -1603,7 +1604,7 @@ Page({ |
1603 | 1604 | this.showToast('请填写公积金贷款期限') |
1604 | 1605 | return |
1605 | 1606 | } |
1606 | - newdata.loan_bank = this.data.bankInfo.selected | |
1607 | + newdata.loan_bank = formdata.loan_bank | |
1607 | 1608 | newdata.loan_start = this.data.firstpaybackDate.datelong |
1608 | 1609 | newdata.loan_months = parseInt(formdata.loan_months) |
1609 | 1610 | } |
... | ... | @@ -1611,7 +1612,7 @@ Page({ |
1611 | 1612 | if (!formdata.sec_loan_contract_no || formdata.sec_loan_contract_no.length < 1) { |
1612 | 1613 | this.showToast('请填写商业贷款合同编号') |
1613 | 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 | 1616 | this.showToast('请选择商业贷款银行') |
1616 | 1617 | return |
1617 | 1618 | } else if (this.data.firstpaybackDate_2.selected.length < 1) { |
... | ... | @@ -1621,7 +1622,7 @@ Page({ |
1621 | 1622 | this.showToast('请填写商业贷款期限') |
1622 | 1623 | return |
1623 | 1624 | } |
1624 | - newdata.sec_loan_bank = this.data.bankInfo_2.selected | |
1625 | + newdata.sec_loan_bank = formdata.sec_loan_bank | |
1625 | 1626 | newdata.sec_loan_start = this.data.firstpaybackDate_2.datelong |
1626 | 1627 | newdata.sec_loan_months = parseInt(formdata.sec_loan_months) |
1627 | 1628 | } |
... | ... | @@ -2294,20 +2295,20 @@ Page({ |
2294 | 2295 | this.showToast('终止日期不符合要求,无法申报') |
2295 | 2296 | } |
2296 | 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 | 2312 | case 'house_locate': |
2312 | 2313 | console.log('house_locate', e) |
2313 | 2314 | var house_address = this.data.houseLocateInfo; | ... | ... |
... | ... | @@ -235,8 +235,14 @@ |
235 | 235 | <text class='text_777_30 float_left'>公积金贷款合同编号</text> |
236 | 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 | 237 | </view> |
238 | + <!-- <view class='divide_line_30'></view> | |
239 | + <template is="picker_cell_normal" data="{{...bankInfo}}" /> --> | |
238 | 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 | 246 | <view class='divide_line_30'></view> |
241 | 247 | <template is="picker_cell_normal" data="{{...firstpaybackDate}}" /> |
242 | 248 | <view class='divide_line_30'></view> |
... | ... | @@ -254,8 +260,14 @@ |
254 | 260 | <text class='text_777_30 float_left'>商业贷款合同编号</text> |
255 | 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 | 262 | </view> |
263 | + <!-- <view class='divide_line_30'></view> | |
264 | + <template is="picker_cell_normal" data="{{...bankInfo_2}}" /> --> | |
257 | 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 | 271 | <view class='divide_line_30'></view> |
260 | 272 | <template is="picker_cell_normal" data="{{...firstpaybackDate_2}}" /> |
261 | 273 | <view class='divide_line_30'></view> | ... | ... |
请
注册
或
登录
后发表评论