提交 b4a47b8202a79bd27f68943e276c3e9645ff0939

作者 pangy
2 个父辈 ed8949fb 3d81aaf9

Merge branch 'dev_py' into dev2.0

... ... @@ -195,7 +195,7 @@ Page({
195 195 onChange: 'onPickerSelect'
196 196 },
197 197 cardtypeData: {
198   - label: '证类型',
  198 + label: '证类型',
199 199 isrequre: true,
200 200 bindtype: 'cardtype',
201 201 selected: '居民身份证',
... ... @@ -866,10 +866,10 @@ Page({
866 866 supported_name: id_info.name,
867 867 olderbirthDate: this.data.olderbirthDate
868 868 }
869   - } else if (this.idcard_belong == 'owner_id_cartd_no') {
  869 + } else if (this.idcard_belong == 'owner_id_card_no') {
870 870 this.data.olderbirthDate.selected = birth_day
871 871 data = {
872   - owner_id_cartd_no: id_info.id_card_number,
  872 + owner_id_card_no: id_info.id_card_number,
873 873 }
874 874 }
875 875 this.setData(data)
... ... @@ -1114,6 +1114,8 @@ Page({
1114 1114 console.log('TITLE', this.data.title)
1115 1115
1116 1116 if (this.data.house_type == "house_fund_loan") {
  1117 + newdata.type = 'loan'
  1118 +
1117 1119 if (this.data.houseLocateInfo.address_value.length < 1) {
1118 1120 this.showToast('请选择住房地址')
1119 1121 return
... ... @@ -1154,19 +1156,21 @@ Page({
1154 1156 newdata.payback_date = this.data.firstpaybackDate.selected
1155 1157 // newdata.loan_datelong = this.data.loandatelongData.selected
1156 1158 var request_loan_address = this.getLoanAddressRequest()
1157   - newdata.house_location = request_loan_address
  1159 + newdata.house_address = request_loan_address
1158 1160
1159 1161 } else if (this.data.house_type == "house_fund_rent") {
1160   - if (this.data.workingcityInfo.address_value.length < 1) {
  1162 + newdata.type = 'rent'
  1163 + console.log('workingcityInfo', this.data.workingcityInfo.address_value)
  1164 + if (this.data.workingcityInfo.address_value[0].length < 1) {
1161 1165 this.showToast('请选择工作城市')
1162 1166 return
1163 1167 } else if (this.data.leasetypeData.selected.length < 1) {
1164 1168 this.showToast('请选择出租方类型')
1165 1169 return
1166   - } else if (!formdata.lease_name || formdata.lease_name.length < 1) {
  1170 + } else if (!formdata.owner_name || formdata.owner_name.length < 1) {
1167 1171 this.showToast('请填写出租方名称')
1168 1172 return
1169   - } else if (!formdata.lease_idno || formdata.lease_idno.length < 1) {
  1173 + } else if (!formdata.owner_credit_no || formdata.owner_credit_no.length < 1) {
1170 1174 this.showToast('请填写纳税人识别号')
1171 1175 return
1172 1176 }
... ... @@ -1174,17 +1178,19 @@ Page({
1174 1178 // this.showToast('请填写出租方号码')
1175 1179 // return
1176 1180 // }
1177   - else if (this.data.identifytypeData.selected.length < 1) {
  1181 + else if (this.data.cardtypeData.selected.length < 1) {
1178 1182 this.showToast('请选择证件类型')
1179 1183 return
1180   - } else if (!formdata.owner_id_cartd_no || formdata.owner_id_cartd_no.length < 1) {
  1184 + } else if (!formdata.owner_id_card_no || formdata.owner_id_card_no.length < 1) {
1181 1185 this.showToast('请填写证件号码')
1182 1186 return
1183   - } else if (this.data.rentLocateInfo.address_value.length < 1) {
  1187 + } else if (this.data.rentLocateInfo.address_value[0].length < 1) {
1184 1188 this.showToast('请选择房屋地址')
1185 1189 return
1186   - }
1187   - else if (!formdata.rent_contract_no || formdata.rent_contract_no.length < 1) {
  1190 + } else if (!formdata.house_detail_address || formdata.house_detail_address.length < 1) {
  1191 + this.showToast('请填写房屋详细地址')
  1192 + return
  1193 + }else if (!formdata.rent_contract_no || formdata.rent_contract_no.length < 1) {
1188 1194 this.showToast('请填写租赁合同编号')
1189 1195 return
1190 1196 } else if (this.data.leasestartDate.selected.length < 1) {
... ... @@ -1194,8 +1200,8 @@ Page({
1194 1200 this.showToast('请选择日期')
1195 1201 return
1196 1202 }
1197   - newdata.lease_type = this.data.leasetypeData.selected
1198   - newdata.certification_type = this.data.identifytypeData.selected
  1203 + newdata.owner_type = this.data.leasetypeData.selected
  1204 + newdata.owner_id_card_type = '1'//this.data.cardtypeData.selected
1199 1205 newdata.rent_start = this.data.leasestartDate.datelong
1200 1206 newdata.rent_end = this.data.leaseendDate.datelong
1201 1207
... ... @@ -1218,8 +1224,9 @@ Page({
1218 1224 return
1219 1225 }
1220 1226 }
1221   - newdata.lover_cardtype = this.data.lovercardtypeData.selected
1222   - newdata.lover_birthdate = this.data.loverbirthDate.selected
  1227 + newdata.id_card_no = newdata.spouse_id_card_no
  1228 + newdata.id_card_type = '1' //this.data.lovercardtypeData.selected
  1229 + newdata.birthday = this.data.loverbirthDate.datelong > 0 ? this.data.loverbirthDate.datelong : 0
1223 1230 break;
1224 1231 }
1225 1232
... ... @@ -1328,11 +1335,11 @@ Page({
1328 1335 data = {
1329 1336 olderbirthDate: this.data.olderbirthDate
1330 1337 }
1331   - } else if (idcard_belong == 'owner_id_cartd_no_input') {
  1338 + } else if (idcard_belong == 'owner_id_card_no_input') {
1332 1339 // this.data.olderbirthDate.selected = info.birthDay
1333 1340 // this.data.olderbirthDate.datelong = (Date.parse(new Date(info.birthDay)) / 1000)
1334 1341 // data = {
1335   - // owner_id_cartd_no: idCardNum,
  1342 + // owner_id_card_no: idCardNum,
1336 1343 // }
1337 1344 }
1338 1345 if (info.age) {
... ... @@ -1580,7 +1587,7 @@ Page({
1580 1587 case 'lease_start_date':
1581 1588 var leasestart_Date = this.data.leasestartDate
1582 1589 leasestart_Date.selected = e.detail.value
1583   - console.log('lease_start_date', Date.parse(new Date(e.detail.value)))
  1590 + leasestart_Date.datelong = Date.parse(new Date(e.detail.value)) / 1000,
1584 1591 this.setData({
1585 1592 leasestartDate: leasestart_Date
1586 1593 })
... ... @@ -1588,7 +1595,7 @@ Page({
1588 1595 case 'lease_end_date':
1589 1596 var leaseend_Date = this.data.leaseendDate
1590 1597 leaseend_Date.selected = e.detail.value
1591   - console.log('lease_end_date', Date.parse(new Date(e.detail.value)))
  1598 + leaseend_Date.datelong = Date.parse(new Date(e.detail.value)) / 1000,
1592 1599 this.setData({
1593 1600 leaseendDate: leaseend_Date
1594 1601 })
... ...
... ... @@ -253,23 +253,23 @@
253 253 <view style='height:90rpx'>
254 254 <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
255 255 <text class='text_black_30 float_left'>出租方名称</text>
256   - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入出租方名称' name='lease_name'></input>
  256 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入出租方名称' name='owner_name'></input>
257 257 </view>
258 258 <view class='divide_line_f5f5f5'></view>
259 259 <view style='height:90rpx'>
260 260 <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
261 261 <text class='text_black_30 float_left'>出租方纳税人识别号</text>
262   - <input class='input_wrap01 float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='统一社会信用代码' name='lease_idno'></input>
  262 + <input class='input_wrap01 float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='统一社会信用代码' name='owner_credit_no'></input>
263 263 </view>
264 264 <view class='divide_line_f5f5f5'></view>
265   - <template is="picker_cell_normal" data="{{...identifytypeData}}" />
  265 + <template is="picker_cell_normal" data="{{...cardtypeData}}" />
266 266 <view class='divide_line_f5f5f5'></view>
267 267 <view style='height:90rpx'>
268 268 <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
269 269 <text class='text_black_30 float_left'>证件号码</text>
270 270 <view wx:if="{{isIdCard}}">
271   - <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="owner_id_cartd_no"></image>
272   - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;width:380rpx;' placeholder='请输入证件号码' maxlength='18' type='idcard' name='owner_id_cartd_no' value='{{owner_id_cartd_no}}' bindinput="idChange" id='owner_id_cartd_no_input'></input>
  271 + <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="owner_id_card_no"></image>
  272 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;width:380rpx;' placeholder='请输入证件号码' maxlength='18' type='idcard' name='owner_id_card_no' value='{{owner_id_card_no}}' bindinput="idChange" id='owner_id_card_no_input'></input>
273 273 </view>
274 274 </view>
275 275 </view>
... ... @@ -278,7 +278,7 @@
278 278 <template is="picker_cell_normal" data="{{...rentLocateInfo}}" />
279 279 <view class='divide_line_f5f5f5'></view>
280 280 <view style='height:90rpx'>
281   - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入详细地址,精确到楼牌号' name='detail_address'></input>
  281 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入详细地址,精确到楼牌号' name='house_detail_address'></input>
282 282 </view>
283 283 <view class='divide_line_f5f5f5'></view>
284 284 <view style='height:90rpx'>
... ... @@ -313,7 +313,7 @@
313 313
314 314 <view style='padding:0 30rpx;'>
315 315
316   - <view wx:if="{{cur_index=='children_education'}}">
  316 + <view wx:if="{{cur_index=='children_education' || cur_index=='house_fund'}}">
317 317 <view style='height:90rpx'>
318 318 <text class='text_black_30 float_left'>配偶姓名</text>
319 319 <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>
... ... @@ -338,30 +338,6 @@
338 338 </view>
339 339 </view>
340 340
341   - <view wx:if="{{cur_index=='house_fund'}}">
342   - <view style='height:90rpx'>
343   - <text class='text_black_30 float_left'>配偶姓名</text>
344   - <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>
345   - </view>
346   - <view class='divide_line_f5f5f5'></view>
347   -
348   - <template is="picker_cell_normal" data="{{...lovercardtypeData}}" />
349   - <view class='divide_line_f5f5f5'></view>
350   - <view style='height:90rpx'>
351   - <text class='text_black_30 float_left'>配偶证件号码</text>
352   - <view wx:if="{{isIdCard}}">
353   - <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="lover"></image>
354   - <input class='input_wrap01 float_right' placeholder='请输入证件号码' placeholder-class='text_999_30' name='lover_idno' maxlength='18' type='idcard' value='{{lover_idno}}' bindinput="idChange" id='spouse_id_card_no_input'></input>
355   - </view>
356   - </view>
357   - <view class='divide_line_f5f5f5'></view>
358   - <template is="picker_cell_normal" data="{{...loverbirthDate}}" />
359   - <view class='divide_line_f5f5f5'></view>
360   - <view style='height:90rpx'>
361   - <text class='text_black_30 float_left'>国籍</text>
362   - <text class='text_777_30 float_right' style='line-height: 90rpx;text-align:right' name='lover_country'>中国</text>
363   - </view>
364   - </view>
365 341
366 342 </view>
367 343 <!-- <view class='divide_line_f5f5f5'></view>
... ...
注册登录 后发表评论