正在显示
1 个修改的文件
包含
11 行增加
和
8 行删除
... | ... | @@ -270,9 +270,11 @@ Page({ |
270 | 270 | if (newdata[i].spouse_birthday) { |
271 | 271 | newdata[i].spouse_birthday = this.formatDate(newdata[i].spouse_birthday) |
272 | 272 | } |
273 | - if (newdata[i].birthday) { | |
274 | - newdata[i].birthday = this.formatDate(newdata[i].birthday) | |
275 | - } | |
273 | + console.log("newdata[i].birthday", newdata[i].birthday) | |
274 | + // if (newdata[i].birthday) { | |
275 | + // newdata[i].birthday = this.formatDate(newdata[i].birthday) | |
276 | + // } | |
277 | + newdata[i].birthday = this.formatDate(newdata[i].birthday) | |
276 | 278 | if (newdata[i].rent_start) { |
277 | 279 | newdata[i].rent_start = this.formatDate(newdata[i].rent_start) |
278 | 280 | } |
... | ... | @@ -736,13 +738,14 @@ Page({ |
736 | 738 | }, |
737 | 739 | |
738 | 740 | formatDate(date) { |
739 | - if (date == 0 || date == -62135596800) { | |
740 | - date = "" | |
741 | + var new_date= "" | |
742 | + if (date == -62135596800) { | |
743 | + new_date = "" | |
741 | 744 | } else { |
742 | - date = format.formatTime_date(date) | |
745 | + new_date = format.formatTime_date(date) | |
743 | 746 | } |
744 | - console.log("formatDate", date) | |
745 | - return date | |
747 | + console.log("formatDate", date+"---"+new_date) | |
748 | + return new_date | |
746 | 749 | }, |
747 | 750 | |
748 | 751 | formatIdNum: function(idnum) { | ... | ... |
请
注册
或
登录
后发表评论