提交 c354100fe55c55ac938b583a7f187ee37b1cc24b

作者 pangy
1 个父辈 cc751a84

调整时间戳

... ... @@ -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 })
... ...
注册登录 后发表评论