提交 6a9940b326f50e37b9217dcf8b9693410cb78209

作者 wangyu
1 个父辈 2bef9e50

yh时间戳为0的情况

@@ -270,9 +270,11 @@ Page({ @@ -270,9 +270,11 @@ Page({
270 if (newdata[i].spouse_birthday) { 270 if (newdata[i].spouse_birthday) {
271 newdata[i].spouse_birthday = this.formatDate(newdata[i].spouse_birthday) 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 if (newdata[i].rent_start) { 278 if (newdata[i].rent_start) {
277 newdata[i].rent_start = this.formatDate(newdata[i].rent_start) 279 newdata[i].rent_start = this.formatDate(newdata[i].rent_start)
278 } 280 }
@@ -736,13 +738,14 @@ Page({ @@ -736,13 +738,14 @@ Page({
736 }, 738 },
737 739
738 formatDate(date) { 740 formatDate(date) {
739 - if (date == 0 || date == -62135596800) {  
740 - date = "" 741 + var new_date= ""
  742 + if (date == -62135596800) {
  743 + new_date = ""
741 } else { 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 formatIdNum: function(idnum) { 751 formatIdNum: function(idnum) {
注册登录 后发表评论