mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-06 21:45:47 +08:00
小程序地址细节优化
This commit is contained in:
@ -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"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user