正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -422,7 +422,7 @@ Page({ | @@ -422,7 +422,7 @@ Page({ | ||
422 | this.data.birthDate.selected = '' | 422 | this.data.birthDate.selected = '' |
423 | } else { | 423 | } else { |
424 | // this.data.birthDate.selected = format.yearFormString(tax_info.birth_date) + '-' + format.monthFormString(tax_info.birth_date) + '-' + format.dayFormString(tax_info.birth_date) | 424 | // this.data.birthDate.selected = format.yearFormString(tax_info.birth_date) + '-' + format.monthFormString(tax_info.birth_date) + '-' + format.dayFormString(tax_info.birth_date) |
425 | - this.data.birthDate.selected = format.formatTime_date(tax_info.birth_date) | 425 | + this.data.birthDate.selected = tax_info.birth_date_str //format.formatTime_date(tax_info.birth_date) |
426 | } | 426 | } |
427 | //非必填 | 427 | //非必填 |
428 | console.log('this.data.birthDate', new Date(tax_info.birth_date).toLocaleDateString()) | 428 | console.log('this.data.birthDate', new Date(tax_info.birth_date).toLocaleDateString()) |
@@ -511,6 +511,9 @@ Page({ | @@ -511,6 +511,9 @@ Page({ | ||
511 | "Authorization": Authorization | 511 | "Authorization": Authorization |
512 | }, | 512 | }, |
513 | success: function(res) { | 513 | success: function(res) { |
514 | + if (res.data.items.length<1){ | ||
515 | + return | ||
516 | + } | ||
514 | proffession_info.values = that.handleProfession(res.data.items) | 517 | proffession_info.values = that.handleProfession(res.data.items) |
515 | console.log('proffession_info------', proffession_info) | 518 | console.log('proffession_info------', proffession_info) |
516 | that.setData({ | 519 | that.setData({ |
请
注册
或
登录
后发表评论