diff --git a/App.vue b/App.vue index ed15f6f..522b7a7 100644 --- a/App.vue +++ b/App.vue @@ -23,9 +23,6 @@ ticket=params.get('ticket'); } - if (!ticket){ - this.closeWindow() - } // alert(ticket) if(ticket){ uni.showLoading({ @@ -124,6 +121,7 @@ // 或者使用iOS方式的调用方式... } else { console.log('Not in App environment.'); // 非App环境提示信息 + console.log('123'); setTimeout(function() { uni.redirectTo({ url: '/pages/login/index' diff --git a/pages/index/index.vue b/pages/index/index.vue index 3ee546f..cf77d56 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -209,7 +209,7 @@ uni.redirectTo({ url: '/pages/login/index' }); - }, 2000); + }, 1000); } return false; } diff --git a/pages/login/index.vue b/pages/login/index.vue index b342f95..2202ddc 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -176,10 +176,10 @@ // //#endif this.getdept(); + console.log('login success'); this.$refs.uToast.show({ title: '登录成功', type: 'success', - isTab: true, duration: 1000, url: '/pages/index/index' });