Commit 52fd7620 by 胡悦

提交昵称授权

1 parent b214ef7d
...@@ -91,12 +91,9 @@ Page({ ...@@ -91,12 +91,9 @@ Page({
.login() .login()
.then(({ data }) => { .then(({ data }) => {
wx.hideLoading() wx.hideLoading()
console.log(data); this.setData({
if (!data) { hasUserInfo: !!data,
this.setData({ });
hasUserInfo: false,
});
}
if (data.phone) { if (data.phone) {
this.setData({ this.setData({
hasPhoneNumber: true, hasPhoneNumber: true,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!