小程序地址细节优化

feat/task1-c-wallet
devil_gong 2019-08-20 09:37:46 +08:00
parent d292ecde7e
commit 7ebc49d950
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ Page({
init() {
var user = app.get_user_cache_info(this, "init");
// 用户未绑定用户则转到登录页面
if (user == false || (user.mobile || null) == null) {
if (app.user_is_need_login(user)) {
swan.redirectTo({
url: "/pages/login/login?event_callback=init"
});

View File

@ -21,7 +21,7 @@ Page({
init() {
var user = app.get_user_cache_info(this, "init");
// 用户未绑定用户则转到登录页面
if (user == false || ((user.mobile || null) == null)) {
if (app.user_is_need_login(user)) {
wx.redirectTo({
url: "/pages/login/login?event_callback=init"
});