From e73854b684b79c1429d9edaa4baf89243397ddde Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Fri, 3 Jul 2020 11:11:24 +0800 Subject: [PATCH] 地址不能显示null --- pages/user/userinfo/userinfo.js | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/pages/user/userinfo/userinfo.js b/pages/user/userinfo/userinfo.js index 3be9c02..f6b0e5a 100644 --- a/pages/user/userinfo/userinfo.js +++ b/pages/user/userinfo/userinfo.js @@ -639,6 +639,11 @@ Page({ a.reg_time = time; a.birthday = birthday + + if(a.address=='null' || !a.address){ + a.address=""; + } + e.setData({ phone: a.mobile, user: a, -- libgit2 0.21.4