Commit e73854b684b79c1429d9edaa4baf89243397ddde
1 parent
07d9c77f
地址不能显示null
Showing
1 changed file
with
5 additions
and
0 deletions
pages/user/userinfo/userinfo.js
@@ -639,6 +639,11 @@ Page({ | @@ -639,6 +639,11 @@ Page({ | ||
639 | 639 | ||
640 | a.reg_time = time; | 640 | a.reg_time = time; |
641 | a.birthday = birthday | 641 | a.birthday = birthday |
642 | + | ||
643 | + if(a.address=='null' || !a.address){ | ||
644 | + a.address=""; | ||
645 | + } | ||
646 | + | ||
642 | e.setData({ | 647 | e.setData({ |
643 | phone: a.mobile, | 648 | phone: a.mobile, |
644 | user: a, | 649 | user: a, |