登录提示优化
parent
c791bd9e18
commit
d2ec66fc17
11
App.vue
11
App.vue
|
|
@ -488,10 +488,15 @@
|
|||
|
||||
// 未登录确认处理
|
||||
login_confirm_tips_modal(self, object, method, params) {
|
||||
// 非init初始化调用 或者 非tabbar页面则直接跳转到登录页面
|
||||
if(method != 'init' || !self.is_tabbar_pages('/'+self.current_page(false))) {
|
||||
// 非初始化 并且 非tabbar页面则关闭当前页面并跳转登录页面
|
||||
if(method == 'init' && !self.is_tabbar_pages('/'+self.current_page(false))) {
|
||||
uni.redirectTo({
|
||||
url: '/pages/login/login'
|
||||
});
|
||||
// 非初始化则直接跳转登录页面
|
||||
} else if(method != 'init') {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login',
|
||||
url: '/pages/login/login'
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -324,7 +324,6 @@
|
|||
// 用户未绑定手机则转到登录页面
|
||||
if (app.globalData.user_is_need_login(user)) {
|
||||
uni.stopPullDownRefresh();
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login?event_callback=init',
|
||||
});
|
||||
|
|
@ -339,7 +338,7 @@
|
|||
if (!app.globalData.is_single_page_check()) {
|
||||
return false;
|
||||
}
|
||||
if (this.is_already_coming != 1 && this.init()) {
|
||||
if (this.is_already_coming != 1 && app.globalData.get_user_info(this, 'coming_event', e)) {
|
||||
uni.showLoading({
|
||||
title: this.$t('common.processing_in_text'),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue