提交 44e19db79c3a3302b2820df16e493ed616aceb99

作者 pangy
2 个父辈 a3fb19a2 1b471067

Merge branch 'dev_py' into dev2.0

... ... @@ -552,6 +552,7 @@ Page({
552 552 var setData = {}
553 553 if (data.id_card_no && data.id_card_no.length) {
554 554 setData.children_id_card_no = data.id_card_no
  555 + this.dealIdInfo(data.id_card_no, 'children_id_card_no_input')
555 556 }
556 557 if (data.name && data.name.length) {
557 558 setData.children_name = data.name
... ... @@ -601,6 +602,7 @@ Page({
601 602 }
602 603 if (data.spouse_id_card_no && data.spouse_id_card_no.length) {
603 604 setData.spouse_id_card_no = data.spouse_id_card_no
  605 + this.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input')
604 606 }
605 607 if (this.data.loverbirthDate.selected.length) {
606 608 var loverbirthDate = this.data.loverbirthDate
... ... @@ -660,24 +662,17 @@ Page({
660 662 break;
661 663 case 'support_duty':
662 664 var setData = {}
663   - if (data.supported_name && data.supported_name.length) {
664   - setData.supported_name = data.supported_name
665   - }
666   - if (data.percentage && data.percentage.length) {
667   - setData.percentage = data.percentage
  665 + if (data.name && data.name.length) {
  666 + setData.supported_name = data.name
668 667 }
669 668 if (data.id_card_no && data.id_card_no.length) {
670 669 setData.id_card_no = data.id_card_no
  670 + this.dealIdInfo(data.id_card_no, 'older_id_card_no_input')
671 671 }
672   - if (data.support_type && data.support_type.length) {
673   - var supporttypeData = this.data.supporttypeData
674   - supporttypeData.selected = data.support_type
675   - setData.supporttypeData = supporttypeData
676   - }
677   - if (data.birthday && data.birthday.length) {
  672 + if (data.birth_date && data.birth_date.length) {
678 673 var olderbirthDate = this.data.olderbirthDate
679   - olderbirthDate.selected = format.formatTime_date(data.birthday)
680   - olderbirthDate.datelong = data.birthday
  674 + olderbirthDate.selected = format.formatTime_date(data.birth_date)
  675 + olderbirthDate.datelong = data.birth_date
681 676 setData.olderbirthDate = olderbirthDate
682 677 }
683 678 if (data.relationship && data.relationship.length) {
... ... @@ -685,9 +680,6 @@ Page({
685 680 older_relativeData.selected = data.relationship
686 681 setData.older_relativeData = older_relativeData
687 682 }
688   - if (data.percentage && data.percentage.length) {
689   - setData.percentage = data.percentage
690   - }
691 683 this.setData(setData)
692 684 break;
693 685 case 'medical_fund':
... ... @@ -697,6 +689,7 @@ Page({
697 689 }
698 690 if (data.id_card_no && data.id_card_no.length) {
699 691 setData.id_card_no = data.id_card_no
  692 + this.dealIdInfo(data.id_card_no, 'medical_id_card_no_input')
700 693 }
701 694 if (data.family_ties && data.family_ties.length) {
702 695 var taxperson_relativeData = this.data.taxperson_relativeData
... ... @@ -718,6 +711,7 @@ Page({
718 711 }
719 712 if (data.spouse_id_card_no && data.spouse_id_card_no.length) {
720 713 setData.spouse_id_card_no = data.spouse_id_card_no
  714 + this.dealIdInfo(data.id_card_no, 'spouse_id_card_no_input')
721 715 }
722 716 if (this.data.loverbirthDate.selected.length) {
723 717 var loverbirthDate = this.data.loverbirthDate
... ... @@ -875,6 +869,7 @@ Page({
875 869
876 870 if (this.idcard_belong == 'children_id_card_no') {
877 871 this.data.commonbirthDate.selected = birth_day
  872 + this.data.commonbirthDate.datelong = (Date.parse(new Date(birth_day)) / 1000)
878 873 data = {
879 874 children_id_card_no: id_info.id_card_number,
880 875 children_name: id_info.name,
... ... @@ -882,6 +877,7 @@ Page({
882 877 }
883 878 } else if (this.idcard_belong == 'spouse_id_card_no') {
884 879 this.data.loverbirthDate.selected = birth_day
  880 + this.data.loverbirthDate.datelong = (Date.parse(new Date(birth_day)) / 1000)
885 881 data = {
886 882 spouse_id_card_no: id_info.id_card_number,
887 883 spouse_name: id_info.name,
... ... @@ -889,15 +885,18 @@ Page({
889 885 }
890 886 } else if (this.idcard_belong == 'older_id_card_no') {
891 887 this.data.olderbirthDate.selected = birth_day
  888 + this.data.olderbirthDate.datelong = (Date.parse(new Date(birth_day)) / 1000)
892 889 data = {
893 890 id_card_no: id_info.id_card_number,
894 891 supported_name: id_info.name,
895 892 olderbirthDate: this.data.olderbirthDate
896 893 }
897   - } else if (this.idcard_belong == 'owner_id_card_no') {
898   - this.data.olderbirthDate.selected = birth_day
  894 + } else if (this.idcard_belong == 'medical_id_card_no') {
  895 + this.data.commonbirthDate.selected = birth_day
  896 + this.data.commonbirthDate.datelong = (Date.parse(new Date(birth_day)) / 1000)
899 897 data = {
900   - owner_id_card_no: id_info.id_card_number,
  898 + id_card_no: id_info.id_card_number,
  899 + commonbirthDate: this.data.commonbirthDate
901 900 }
902 901 }
903 902 this.setData(data)
... ...
... ... @@ -169,7 +169,10 @@
169 169 <view style='height:90rpx'>
170 170 <text style='color:red;font-size: 30rpx;line-height: 90rpx;float:left'>*</text>
171 171 <text class='text_black_30 float_left'>病人证照号码</text>
172   - <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right' placeholder='请输入证照号码' name='id_card_no' type='idcard' value='{{id_card_no}}' bindinput="idChange" id="medical_id_card_no_input"></input>
  172 + <view wx:if="{{isIdCard}}">
  173 + <image class='image_camera float_right' src='/images/camera.png' bindtap='getIdInfo' id="medical_id_card_no"></image>
  174 + <input class='input_wrap float_right' placeholder-class='text_999_30 float_right' style='line-height: 90rpx;text-align: right;width:380rpx;' placeholder='请输入证照号码' name='id_card_no' type='idcard' value='{{id_card_no}}' bindinput="idChange" id="medical_id_card_no_input"></input>
  175 + </view>
173 176 </view>
174 177 <view class='divide_line_f5f5f5'></view>
175 178 <template is="picker_cell_normal" data="{{...commonbirthDate}}" />
... ...
注册登录 后发表评论