提交 919cc60d106fee942df4b1e1045a6ff3b260fef5

作者 pangy
1 个父辈 b4a47b82

添加住房: 贷款

... ... @@ -1116,7 +1116,7 @@ Page({
1116 1116 if (this.data.house_type == "house_fund_loan") {
1117 1117 newdata.type = 'loan'
1118 1118
1119   - if (this.data.houseLocateInfo.address_value.length < 1) {
  1119 + if (this.data.houseLocateInfo.address_value[0].length < 1) {
1120 1120 this.showToast('请选择住房地址')
1121 1121 return
1122 1122 } else if (this.data.identifytypeData.selected.length < 1) {
... ... @@ -1143,17 +1143,17 @@ Page({
1143 1143 } else if (this.data.firstpaybackDate.selected.length < 1) {
1144 1144 this.showToast('请选择首次还款日期')
1145 1145 return
1146   - } else if (!formdata.loan_datelong || formdata.loan_datelong.length < 1) {
  1146 + } else if (!formdata.loan_months || formdata.loan_months.length < 1) {
1147 1147 this.showToast('请选择贷款期限')
1148 1148 return
1149 1149 }
1150 1150 newdata.loan_before_marry = this.data.beforemarryData.selected == "是" ? 'y' : 'n'
1151 1151 newdata.loan_by_self = this.data.isselfData.selected == "是" ? 'y' : 'n'
1152   - newdata.identify_type = this.data.identifytypeData.selected
  1152 + newdata.certification_type = this.data.identifytypeData.selected
1153 1153
1154 1154 newdata.loan_type = this.data.loantypeData.selected
1155 1155 newdata.loan_bank = this.data.bankInfo.selected
1156   - newdata.payback_date = this.data.firstpaybackDate.selected
  1156 + newdata.loan_start = this.data.firstpaybackDate.datelong
1157 1157 // newdata.loan_datelong = this.data.loandatelongData.selected
1158 1158 var request_loan_address = this.getLoanAddressRequest()
1159 1159 newdata.house_address = request_loan_address
... ... @@ -1565,7 +1565,7 @@ Page({
1565 1565 case 'payback_date':
1566 1566 var firstpayback_Date = this.data.firstpaybackDate
1567 1567 firstpayback_Date.selected = e.detail.value
1568   - console.log('payback_date', Date.parse(new Date(e.detail.value)))
  1568 + firstpayback_Date.datelong = Date.parse(new Date(e.detail.value)) / 1000,
1569 1569 this.setData({
1570 1570 firstpaybackDate: firstpayback_Date
1571 1571 })
... ...
... ... @@ -238,7 +238,7 @@
238 238 <view style='height:90rpx'>
239 239 <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
240 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='loan_datelong' type='number'></input>
  241 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入贷款月数' name='loan_months' type='number'></input>
242 242 </view>
243 243 </view>
244 244
... ...
注册登录 后发表评论