提交 6fe79e69ca26e9ce2f0b475cf14ad684be6eee05

作者 pangy
1 个父辈 1fe88c0b

获取配偶信息后 配偶信息不支持编辑

... ... @@ -639,6 +639,7 @@ Page({
639 639 if (res.data.items && res.data.items[0]) {
640 640 var hasLoverData = that.data.hasLoverData
641 641 hasLoverData.selected = '是'
  642 + hasLoverData.disabled = true
642 643 var data = res.data.items[0], setData = { hasLover: true, hasLoverData: hasLoverData}
643 644 if (data.name && data.name.length) {
644 645 setData.spouse_name = data.name
... ... @@ -722,6 +723,7 @@ Page({
722 723
723 724 var hasLoverData = this.data.hasLoverData
724 725 hasLoverData.selected = data.has_spouse == 'y' ? '是' : '否'
  726 + hasLoverData.disabled = data.has_spouse == 'y' ? true : false
725 727 setData.hasLover = data.has_spouse == 'y' ? true : false
726 728 setData.hasLoverData = hasLoverData
727 729 if (data.spouse_name && data.spouse_name.length) {
... ...
... ... @@ -340,7 +340,7 @@
340 340 <view class='divide_line_30'></view>
341 341 <view style='height:90rpx'>
342 342 <text class='text_777_30 float_left head_in'>配偶姓名</text>
343   - <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入配偶姓名' name='spouse_name' value='{{spouse_name}}'></input>
  343 + <input class='input_wrap' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;color:#000;' placeholder='请输入配偶姓名' name='spouse_name' value='{{spouse_name}}' disabled='{{hasLover}}'></input>
344 344 </view>
345 345 <view class='divide_line_30'></view>
346 346 <template is="picker_cell_normal" data="{{...lovercardtypeData}}" />
... ... @@ -349,7 +349,7 @@
349 349 <text class='text_777_30 float_left head_in'>配偶证照号码</text>
350 350 <view wx:if="{{isIdCard}}">
351 351 <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="spouse_id_card_no"></image>
352   - <input class='input_wrap' style='color:#000;' placeholder='请输入或拍摄身份证' placeholder-class='text_999_30' name='spouse_id_card_no' maxlength='18' type='idcard' value='{{spouse_id_card_no}}' bindinput="idChange" id='spouse_id_card_no_input'></input>
  352 + <input class='input_wrap' style='color:#000;' placeholder='请输入或拍摄身份证' placeholder-class='text_999_30' name='spouse_id_card_no' maxlength='18' type='idcard' value='{{spouse_id_card_no}}' bindinput="idChange" id='spouse_id_card_no_input' disabled='{{hasLover}}'></input>
353 353 </view>
354 354 </view>
355 355 <view class='divide_line_30'></view>
... ...
注册登录 后发表评论