小程序地址细节优化
parent
d292ecde7e
commit
7ebc49d950
|
|
@ -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"
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue