正在显示
1 个修改的文件
包含
10 行增加
和
12 行删除
... | ... | @@ -673,19 +673,16 @@ Page({ |
673 | 673 | this.showToast('请填写赡养人证件号') |
674 | 674 | return |
675 | 675 | } |
676 | - if (this.data.oldersupport_lable == 'single') { | |
677 | - if (this.data.olderbirthDate.selected.length < 1) { | |
678 | - this.showToast('请选择赡养人出生日期') | |
679 | - return | |
680 | - } | |
681 | - if (this.data.older_relativeData.selected.length < 1) { | |
682 | - this.showToast('请选择与纳税人关系') | |
683 | - return | |
684 | - } | |
685 | - newdata.older_birthday = this.data.olderbirthDate.selected | |
686 | - newdata.older_relative = this.data.older_relativeData.selected | |
676 | + if (this.data.olderbirthDate.selected.length < 1) { | |
677 | + this.showToast('请选择赡养人出生日期') | |
678 | + return | |
687 | 679 | } |
688 | - | |
680 | + if (this.data.older_relativeData.selected.length < 1) { | |
681 | + this.showToast('请选择与纳税人关系') | |
682 | + return | |
683 | + } | |
684 | + newdata.older_birthday = this.data.olderbirthDate.datelong | |
685 | + newdata.older_relative = this.data.older_relativeData.selected | |
689 | 686 | newdata.support_type = this.data.supporttypeData.selected |
690 | 687 | newdata.older_cardtype = this.data.oldercardtypeData.selected |
691 | 688 | break; |
... | ... | @@ -953,6 +950,7 @@ Page({ |
953 | 950 | case 'olderbirthday': |
954 | 951 | var older_birthDate = this.data.olderbirthDate |
955 | 952 | older_birthDate.selected = e.detail.value |
953 | + older_birthDate.datelong = Date.parse(new Date(e.detail.value)) / 1000, | |
956 | 954 | this.setData({ |
957 | 955 | olderbirthDate: older_birthDate |
958 | 956 | }) | ... | ... |
请
注册
或
登录
后发表评论