正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| ... | ... | @@ -13,7 +13,7 @@ Page({ |
| 13 | 13 | nation: "", |
| 14 | 14 | id_card_no: "", |
| 15 | 15 | birthday:"", |
| 16 | - birthday_datelong: 0, | |
| 16 | + birthday_datelong: -1, | |
| 17 | 17 | }, |
| 18 | 18 | |
| 19 | 19 | /** |
| ... | ... | @@ -96,6 +96,10 @@ Page({ |
| 96 | 96 | this.showToast("证件号码有误") |
| 97 | 97 | return; |
| 98 | 98 | } |
| 99 | + if (!this.data.birthday || this.data.birthday.length<1){ | |
| 100 | + this.showToast("请选择出生日期") | |
| 101 | + return; | |
| 102 | + } | |
| 99 | 103 | this.goAdd(formdata) |
| 100 | 104 | }, |
| 101 | 105 | ... | ... |
请
注册
或
登录
后发表评论