fix[litemall-wx]:上次提交存在问题,这里得到修正。

This commit is contained in:
Junling Bu
2018-03-31 22:46:33 +08:00
parent 67b386deeb
commit da447795b8
2 changed files with 5 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ Page({
delta: 1
})
}).catch((err) => {
app.globalData.hasLogin = false;
util.showErrorToast('微信登录失败');
});
@@ -82,6 +83,10 @@ Page({
}
});
}
else{
app.globalData.hasLogin = false;
util.showErrorToast('账户登录失败');
}
}
});
},

View File

@@ -44,8 +44,6 @@ function request(url, data = {}, method = "GET") {
} catch (e) {
// Do something when catch error
}
// 重置app的未登录状态
app.globalData.hasLogin = false;
// 切换到登录页面
wx.navigateTo({
url: '/pages/auth/login/login'