提交 885726a2fde3a5ad6d257798dad0333449b077fe

作者 pangy
1 个父辈 db5696af

赡养、租房 ->身份证照片识别

... ... @@ -32,7 +32,7 @@ App({
32 32 }
33 33 },
34 34
35   - getTokenByCode: function (code) {
  35 + getTokenByCode: function (code, relaunch) {
36 36 var that = this;
37 37 var baseUrl = that.globalData.baseUrl;
38 38 wx.request({
... ... @@ -63,6 +63,11 @@ App({
63 63 })
64 64 } else if (user && user.type == "1") {//注册用户
65 65 that.configOssUrl()
  66 + if (relaunch) {
  67 + wx.reLaunch({
  68 + url: '../guide/guide'
  69 + })
  70 + }
66 71 }
67 72 },
68 73 fail: function (res) {
... ...
... ... @@ -858,6 +858,18 @@ Page({
858 858 spouse_name: id_info.name,
859 859 loverbirthDate: this.data.loverbirthDate
860 860 }
  861 + } else if (this.idcard_belong == 'older_id_card_no') {
  862 + this.data.olderbirthDate.selected = birth_day
  863 + data = {
  864 + id_card_no: id_info.id_card_number,
  865 + supported_name: id_info.name,
  866 + olderbirthDate: this.data.olderbirthDate
  867 + }
  868 + } else if (this.idcard_belong == 'owner_id_cartd_no') {
  869 + this.data.olderbirthDate.selected = birth_day
  870 + data = {
  871 + owner_id_cartd_no: id_info.id_card_number,
  872 + }
861 873 }
862 874 this.setData(data)
863 875 console.log('-cardtypeData--', that.data.cardtypeData)
... ...
... ... @@ -129,7 +129,10 @@
129 129 <view style='height:90rpx'>
130 130 <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
131 131 <text class='text_black_30 float_left'>被赡养人证照号码</text>
132   - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;width:420rpx;' placeholder='请输入证件号码' type='idcard' name='id_card_no' value='{{id_card_no}}'></input>
  132 + <view wx:if="{{isIdCard}}">
  133 + <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="older_id_card_no"></image>
  134 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;width:420rpx;' placeholder='请输入证件号码' maxlength='18' type='idcard' name='id_card_no' value='{{id_card_no}}'></input>
  135 + </view>
133 136 </view>
134 137 <view class='divide_line_f5f5f5'></view>
135 138 <template is="picker_cell_normal" data="{{...olderbirthDate}}" />
... ... @@ -264,7 +267,10 @@
264 267 <view style='height:90rpx'>
265 268 <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
266 269 <text class='text_black_30 float_left'>证件号码</text>
267   - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入证件号码' name='owner_id_cartd_no'></input>
  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:420rpx;' placeholder='请输入证件号码' maxlength='18' type='idcard' name='owner_id_cartd_no' value='{{owner_id_cartd_no}}'></input>
  273 + </view>
268 274 </view>
269 275 </view>
270 276 <view style='height:20rpx;width:100%;background:#F8F8F8;'></view>
... ...
注册登录 后发表评论