1.优化登录

main
董哲奇 1 month ago
parent 03dd8ce1df
commit 9e009016f9

@ -23,9 +23,6 @@
ticket=params.get('ticket'); ticket=params.get('ticket');
} }
if (!ticket){
this.closeWindow()
}
// alert(ticket) // alert(ticket)
if(ticket){ if(ticket){
uni.showLoading({ uni.showLoading({
@ -124,6 +121,7 @@
// 使iOS... // 使iOS...
} else { } else {
console.log('Not in App environment.'); // App console.log('Not in App environment.'); // App
console.log('123');
setTimeout(function() { setTimeout(function() {
uni.redirectTo({ uni.redirectTo({
url: '/pages/login/index' url: '/pages/login/index'

@ -209,7 +209,7 @@
uni.redirectTo({ uni.redirectTo({
url: '/pages/login/index' url: '/pages/login/index'
}); });
}, 2000); }, 1000);
} }
return false; return false;
} }

@ -176,10 +176,10 @@
// //#endif // //#endif
this.getdept(); this.getdept();
console.log('login success');
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '登录成功', title: '登录成功',
type: 'success', type: 'success',
isTab: true,
duration: 1000, duration: 1000,
url: '/pages/index/index' url: '/pages/index/index'
}); });

Loading…
Cancel
Save