登录提示优化

master
gongfuxiang 2024-03-13 19:51:42 +08:00
parent c791bd9e18
commit d2ec66fc17
2 changed files with 9 additions and 5 deletions

11
App.vue
View File

@ -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'
});
}
},

View File

@ -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'),
});