正在显示
4 个修改的文件
包含
14 行增加
和
8 行删除
... | ... | @@ -13,7 +13,7 @@ |
13 | 13 | <text class='text_777_30 float_left' style='line-height: 90rpx'>子女证照号码</text> |
14 | 14 | <view wx:if="{{isIdCard}}"> |
15 | 15 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="children_id_card_no" hidden='{{!isIdCard_child}}'></image> |
16 | - <input class='input_wrap' style='color:#000;' placeholder='请输入证照号码' placeholder-class='text_999_30' name='children_id_card_no' maxlength='18' value='{{children_id_card_no}}' bindinput="idChange" bindblur="idDone" id='children_id_card_no_input'></input> | |
16 | + <input class='input_wrap' style='color:#000;' placeholder='请输入证照号码' placeholder-class='text_999_30' name='children_id_card_no' maxlength='20' value='{{children_id_card_no}}' bindinput="idChange" bindblur="idDone" id='children_id_card_no_input'></input> | |
17 | 17 | </view> |
18 | 18 | <!-- <view wx:else> |
19 | 19 | <input class='input_wrap' placeholder='请输入证照号码' placeholder-class='text_999_30' name='children_id_card_no' maxlength='18' type='idcard' value='{{children_id_card_no}}'></input> |
... | ... | @@ -142,7 +142,7 @@ |
142 | 142 | <text class='text_777_30 float_left'>被赡养人证照号码</text> |
143 | 143 | <view> |
144 | 144 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="older_id_card_no" hidden='{{!isIdCard_older}}'></image> |
145 | - <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入证照号码' maxlength='18' name='id_card_no' value='{{id_card_no}}' bindinput="idChange" bindblur="idDone" id="older_id_card_no_input"></input> | |
145 | + <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入证照号码' maxlength='20' name='id_card_no' value='{{id_card_no}}' bindinput="idChange" bindblur="idDone" id="older_id_card_no_input"></input> | |
146 | 146 | </view> |
147 | 147 | </view> |
148 | 148 | <view class='divide_line_30'></view> |
... | ... | @@ -313,7 +313,7 @@ |
313 | 313 | <text class='text_777_30 float_left head_in'>证照号码</text> |
314 | 314 | <view> |
315 | 315 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="owner_id_card_no" hidden='{{!isIdCard_owner}}'></image> |
316 | - <input class='input_wrap' placeholder-class='text_999_30 float_right' style=' line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入证照号码' maxlength='18' name='owner_id_card_no' value='{{owner_id_card_no}}' bindinput="idChange" bindblur="idDone" id='owner_id_card_no_input'></input> | |
316 | + <input class='input_wrap' placeholder-class='text_999_30 float_right' style=' line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入证照号码' maxlength='20' name='owner_id_card_no' value='{{owner_id_card_no}}' bindinput="idChange" bindblur="idDone" id='owner_id_card_no_input'></input> | |
317 | 317 | </view> |
318 | 318 | </view> |
319 | 319 | </view> |
... | ... | @@ -372,7 +372,7 @@ |
372 | 372 | <text class='text_777_30 float_left head_in'>配偶证照号码</text> |
373 | 373 | <view> |
374 | 374 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' hidden='{{!isIdCard_lover}}' id="spouse_id_card_no"></image><!-- hidden='{{hasGetLover || !isIdCard_lover}}' --> |
375 | - <input class='input_wrap' style='color:#000;' placeholder='请输入证照号码' placeholder-class='text_999_30' name='spouse_id_card_no' maxlength='18' value='{{spouse_id_card_no}}' bindinput="idChange" bindblur="idDone" id='spouse_id_card_no_input'></input><!-- disabled='{{hasGetLover}}' --> | |
375 | + <input class='input_wrap' style='color:#000;' placeholder='请输入证照号码' placeholder-class='text_999_30' name='spouse_id_card_no' maxlength='20' value='{{spouse_id_card_no}}' bindinput="idChange" bindblur="idDone" id='spouse_id_card_no_input'></input><!-- disabled='{{hasGetLover}}' --> | |
376 | 376 | </view> |
377 | 377 | </view> |
378 | 378 | <view class='divide_line_30'></view> |
... | ... |
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | <input class='input_wrap' placeholder='请输入或拍摄身份证' placeholder-class='text_999_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}' type='idcard' ></input> |
28 | 28 | </view> |
29 | 29 | <view wx:else> |
30 | - <input class='input_wrap' placeholder='请输入证照号码' placeholder-class='text_999_30' name='id_card_no' maxlength='30' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input> | |
30 | + <input class='input_wrap' placeholder='请输入证照号码' placeholder-class='text_999_30' name='id_card_no' maxlength='20' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input> | |
31 | 31 | </view> |
32 | 32 | </view> |
33 | 33 | <view class="divide_line_30"></view> |
... | ... |
... | ... | @@ -1223,7 +1223,13 @@ Page({ |
1223 | 1223 | if (this.data.hasOtherCard && !formdata.other_card_number.length) { |
1224 | 1224 | this.showtoast('请输入其他证照号码'); |
1225 | 1225 | return |
1226 | - } | |
1226 | + } else if (this.data.otherCardtypeData.selected.indexOf('居住证') > -1 && !reg_18_Number.test(formdata.other_card_number)) { | |
1227 | + this.showtoast('其他证照号码有误'); | |
1228 | + return | |
1229 | + } else if (this.data.otherCardtypeData.selected.indexOf('中国护照') > -1 && !reg_9_n_a.test(formdata.other_card_number)) { | |
1230 | + this.showtoast('其他证照号码有误'); | |
1231 | + return | |
1232 | + } | |
1227 | 1233 | if (this.data.hasOtherCard && !this.data.birthCountryData.selected) { |
1228 | 1234 | this.showtoast('请选择出生国家'); |
1229 | 1235 | return |
... | ... |
... | ... | @@ -29,7 +29,7 @@ |
29 | 29 | <text class='text_777_30 float_left' style='line-height: 90rpx'>证照号码</text> |
30 | 30 | <view> |
31 | 31 | <image wx:if="{{isIdCard}}" class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' hidden="{{taxInfo.certification_status=='active' && taxInfo.id_card_no.length>0}}"></image> |
32 | - <input class='input_wrap' disabled="{{taxInfo.certification_status=='active' && taxInfo.id_card_no.length>0}}" placeholder="请输入证照号码" value="{{card_number}}" name='id_card_no' maxlength='30' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> | |
32 | + <input class='input_wrap' disabled="{{taxInfo.certification_status=='active' && taxInfo.id_card_no.length>0}}" placeholder="请输入证照号码" value="{{card_number}}" name='id_card_no' maxlength='20' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> | |
33 | 33 | <!-- <input class='input_wrap' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入证照号码" value='{{card_number}}' name='id_card_no' maxlength='18' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> |
34 | 34 | <input class='input_wrap' hidden="{{taxInfo.certification_status!='active'}}" placeholder="{{card_number?card_number:'身份证号获取失败'}}" name='id_card_no' disabled='true'></input> --> |
35 | 35 | <view class="divide_line_30"></view> |
... | ... | @@ -79,7 +79,7 @@ |
79 | 79 | <text class='red_star_right_10'>*</text> |
80 | 80 | <text class='text_777_30 float_left' style='line-height: 90rpx'>其他证照号码</text> |
81 | 81 | <view> |
82 | - <input class='input_wrap' placeholder="请输入证照号码" value="{{other_card_number}}" name='other_card_number' maxlength='30'></input> | |
82 | + <input class='input_wrap' placeholder="请输入证照号码" value="{{other_card_number}}" name='other_card_number' maxlength='20'></input> | |
83 | 83 | </view> |
84 | 84 | </view> |
85 | 85 | <view class="divide_line_30"></view> |
... | ... |
请
注册
或
登录
后发表评论