提交 068f12f33295534ad533c491bcb36277da5b877a

作者 pangy
1 个父辈 2dd2db1c

生日 字符串

@@ -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({
注册登录 后发表评论