正在显示
3 个修改的文件
包含
21 行增加
和
24 行删除
@@ -163,27 +163,27 @@ Page({ | @@ -163,27 +163,27 @@ Page({ | ||
163 | var gender_Data = that.data.genderData | 163 | var gender_Data = that.data.genderData |
164 | gender_Data.selected = id_info.gender | 164 | gender_Data.selected = id_info.gender |
165 | 165 | ||
166 | - that.data.birthDate.selected = birth_day | ||
167 | - | ||
168 | - if (that.data.name.length > 0 && id_info.name != that.data.name) { | ||
169 | - that.showtoast("姓名冲突") | ||
170 | - return | ||
171 | - } | ||
172 | - if (that.data.card_number.length > 0 && id_info.id_card_number != that.data.card_number) { | ||
173 | - that.showtoast("证照号码冲突") | ||
174 | - return | ||
175 | - } | 166 | + // that.data.birthDate.selected = birth_day |
167 | + | ||
168 | + // if (that.data.name.length > 0 && id_info.name != that.data.name) { | ||
169 | + // that.showtoast("姓名冲突") | ||
170 | + // return | ||
171 | + // } | ||
172 | + // if (that.data.card_number.length > 0 && id_info.id_card_number != that.data.card_number) { | ||
173 | + // that.showtoast("证照号码冲突") | ||
174 | + // return | ||
175 | + // } | ||
176 | that.setData({ | 176 | that.setData({ |
177 | idInfoData: id_info, | 177 | idInfoData: id_info, |
178 | name: id_info.name, | 178 | name: id_info.name, |
179 | - birthday: birth_day, | 179 | + // birthday: birth_day, |
180 | // cardtypeData: cardtype_Data, | 180 | // cardtypeData: cardtype_Data, |
181 | genderData: gender_Data, | 181 | genderData: gender_Data, |
182 | - long_birth_date: Date.parse(new Date(birth_day)) / 1000, | ||
183 | - birthDate: that.data.birthDate, | 182 | + // long_birth_date: Date.parse(new Date(birth_day)) / 1000, |
183 | + // birthDate: that.data.birthDate, | ||
184 | card_number: id_info.id_card_number | 184 | card_number: id_info.id_card_number |
185 | }) | 185 | }) |
186 | - this.dealIdInfo(id_info.id_card_number) | 186 | + that.dealIdInfo(id_info.id_card_number) |
187 | } | 187 | } |
188 | }, | 188 | }, |
189 | }) | 189 | }) |
@@ -263,10 +263,7 @@ Page({ | @@ -263,10 +263,7 @@ Page({ | ||
263 | } else if (this.data.isIdCard && !format.isIDCardNum(formdata.id_card_no)) { | 263 | } else if (this.data.isIdCard && !format.isIDCardNum(formdata.id_card_no)) { |
264 | this.showtoast('证照号码有误'); | 264 | this.showtoast('证照号码有误'); |
265 | return | 265 | return |
266 | - } else if (!this.data.isIdCard && (!formdata.id_card_no || formdata.id_card_no.length < 1)) { | ||
267 | - this.showtoast('请填写证照号码'); | ||
268 | - return | ||
269 | - } | 266 | + } |
270 | if (formdata.name.length < 1) { | 267 | if (formdata.name.length < 1) { |
271 | this.showtoast('姓名未填写'); | 268 | this.showtoast('姓名未填写'); |
272 | return | 269 | return |
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | <view wx:if="{{isIdCard}}" > | 24 | <view wx:if="{{isIdCard}}" > |
25 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo'></image> | 25 | <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo'></image> |
26 | <!-- <text class='text_333_28 float_right'>{{card_number}}</text> --> | 26 | <!-- <text class='text_333_28 float_right'>{{card_number}}</text> --> |
27 | - <input class='input_wrap float_right' placeholder='请输入或拍摄身份证' placeholder-class='text_777_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input> | 27 | + <input class='input_wrap float_right' placeholder='请输入或拍摄身份证' placeholder-class='text_777_30' name='id_card_no' maxlength='18' value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}' type='idcard'></input> |
28 | </view> | 28 | </view> |
29 | <view wx:else> | 29 | <view wx:else> |
30 | <input class='input_wrap float_right' placeholder='请输入证照号码' placeholder-class='text_777_30' name='id_card_no' maxlength='18' type="idcard" value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input> | 30 | <input class='input_wrap float_right' placeholder='请输入证照号码' placeholder-class='text_777_30' name='id_card_no' maxlength='18' type="idcard" value='{{card_number}}' bindblur="idDone" bindinput="idChange" disabled='{{isDisable}}'></input> |
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | <text class='text_777_30 float_left' style='line-height: 90rpx'>证照号码</text> | 29 | <text class='text_777_30 float_left' style='line-height: 90rpx'>证照号码</text> |
30 | <view> | 30 | <view> |
31 | <image wx:if="{{isIdCard}}" class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' hidden="{{taxInfo.certification_status=='active'}}"></image> | 31 | <image wx:if="{{isIdCard}}" class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' hidden="{{taxInfo.certification_status=='active'}}"></image> |
32 | - <input class='input_wrap float_right' disabled="{{taxInfo.certification_status=='active'}}" placeholder="请输入证照号码" value="{{card_number}}" name='id_card_no' maxlength='18' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> | 32 | + <input class='input_wrap float_right' disabled="{{taxInfo.certification_status=='active'}}" placeholder="请输入证照号码" value="{{card_number}}" name='id_card_no' maxlength='18' bindblur='idcardblur' bindinput = 'bindinputcardnum' type='idcard'></input> |
33 | <!-- <input class='input_wrap float_right' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入证照号码" value='{{card_number}}' name='id_card_no' maxlength='18' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> | 33 | <!-- <input class='input_wrap float_right' hidden="{{taxInfo.certification_status=='active'}}" placeholder="请输入证照号码" value='{{card_number}}' name='id_card_no' maxlength='18' bindblur='idcardblur' bindinput = 'bindinputcardnum'></input> |
34 | <input class='input_wrap float_right' hidden="{{taxInfo.certification_status!='active'}}" placeholder="{{card_number?card_number:'身份证号获取失败'}}" name='id_card_no' disabled='true'></input> --> | 34 | <input class='input_wrap float_right' hidden="{{taxInfo.certification_status!='active'}}" placeholder="{{card_number?card_number:'身份证号获取失败'}}" name='id_card_no' disabled='true'></input> --> |
35 | </view> | 35 | </view> |
@@ -91,7 +91,7 @@ | @@ -91,7 +91,7 @@ | ||
91 | <view class='item_body'> | 91 | <view class='item_body'> |
92 | <text class='red_star_right_10'>*</text> | 92 | <text class='red_star_right_10'>*</text> |
93 | <text class='text_777_30 float_left' style='line-height: 90rpx'>手机号码</text> | 93 | <text class='text_777_30 float_left' style='line-height: 90rpx'>手机号码</text> |
94 | - <input class='input_wrap float_right' placeholder="请输入手机号" value='{{mobile}}' name='mobile' type='number' maxlength='11' bindblur='bindinputmobile'></input> | 94 | + <input class='input_wrap float_right' placeholder="请输入手机号" value='{{mobile}}' name='mobile' type='number' maxlength='11' bindblur='bindinputmobile' type='number'></input> |
95 | </view> | 95 | </view> |
96 | 96 | ||
97 | <!-- 非必填部分02 --> | 97 | <!-- 非必填部分02 --> |
@@ -148,14 +148,14 @@ | @@ -148,14 +148,14 @@ | ||
148 | <view class="divide_line_30"></view> | 148 | <view class="divide_line_30"></view> |
149 | <view class='item_body'> | 149 | <view class='item_body'> |
150 | <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>银行账号</text> | 150 | <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>银行账号</text> |
151 | - <input class='input_wrap float_right' name='bank_account' value='{{taxInfo.bank_account}}' placeholder-class='text_999_30' placeholder='请输入银行账号' maxlength='24'></input> | 151 | + <input class='input_wrap float_right' name='bank_account' value='{{taxInfo.bank_account}}' placeholder-class='text_999_30' placeholder='请输入银行账号' maxlength='24' type='number'></input> |
152 | </view> | 152 | </view> |
153 | <view class="divide_line_30"></view> | 153 | <view class="divide_line_30"></view> |
154 | <template is="picker_cell_normal" data="{{...disabilityInfo}}" /> | 154 | <template is="picker_cell_normal" data="{{...disabilityInfo}}" /> |
155 | <view class="divide_line_30" hidden="{{disabilityInfo.selected!='是'}}"></view> | 155 | <view class="divide_line_30" hidden="{{disabilityInfo.selected!='是'}}"></view> |
156 | <view class='item_body' hidden="{{disabilityInfo.selected!='是'}}"> | 156 | <view class='item_body' hidden="{{disabilityInfo.selected!='是'}}"> |
157 | <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>残疾证号</text> | 157 | <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>残疾证号</text> |
158 | - <input class='input_wrap float_right' name='disability_no' type='number' value='{{taxInfo.disability_no}}' placeholder-class='text_999_30' placeholder='请输入残疾证号' maxlength='24'></input> | 158 | + <input class='input_wrap float_right' name='disability_no' value='{{taxInfo.disability_no}}' placeholder-class='text_999_30' placeholder='请输入残疾证号' maxlength='24'></input> |
159 | </view> | 159 | </view> |
160 | <view class="divide_line_30"></view> | 160 | <view class="divide_line_30"></view> |
161 | 161 | ||
@@ -163,7 +163,7 @@ | @@ -163,7 +163,7 @@ | ||
163 | <view class="divide_line_30" hidden="{{lieshuInfo.selected!='是'}}"></view> | 163 | <view class="divide_line_30" hidden="{{lieshuInfo.selected!='是'}}"></view> |
164 | <view class='item_body' hidden="{{lieshuInfo.selected!='是'}}"> | 164 | <view class='item_body' hidden="{{lieshuInfo.selected!='是'}}"> |
165 | <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>烈属证号</text> | 165 | <text class='text_666_30 float_left head_in' style='line-height: 90rpx'>烈属证号</text> |
166 | - <input class='input_wrap float_right' name='martyr_family_no' type='number' value='{{taxInfo.martyr_family_no}}' placeholder-class='text_999_30' placeholder='请输入烈属证号' maxlength='24'></input> | 166 | + <input class='input_wrap float_right' name='martyr_family_no' value='{{taxInfo.martyr_family_no}}' placeholder-class='text_999_30' placeholder='请输入烈属证号' maxlength='24'></input> |
167 | </view> | 167 | </view> |
168 | <view class="divide_line_30"></view> | 168 | <view class="divide_line_30"></view> |
169 | 169 |
请
注册
或
登录
后发表评论