|
@@ -16,20 +16,19 @@
|
|
|
onShow: function() {
|
|
|
|
|
|
// #ifdef APP-PLUS
|
|
|
-
|
|
|
- if (cacheManager.get('auth')) {
|
|
|
- uni.redirectTo({
|
|
|
- url: `/pages/study/index`
|
|
|
- })
|
|
|
- }else if(!(cacheManager.get('wxLogin').bind)){
|
|
|
- console.log('asdfadsfadsfasd')
|
|
|
- // 微信登录且未绑定
|
|
|
- } else {
|
|
|
- cacheManager.clearAll()
|
|
|
- uni.redirectTo({
|
|
|
- url: '/pages/login/index'
|
|
|
- });
|
|
|
- }
|
|
|
+ // if (cacheManager.get('auth')) {
|
|
|
+ // uni.reLaunch({
|
|
|
+ // url: `/pages/study/index`
|
|
|
+ // })
|
|
|
+ // }else if(!(cacheManager.get('wxLogin').bind)){
|
|
|
+ // console.log('asdfadsfadsfasd')
|
|
|
+ // // 微信登录且未绑定
|
|
|
+ // } else {
|
|
|
+ // cacheManager.clearAll()
|
|
|
+ // uni.redirectTo({
|
|
|
+ // url: '/pages/login/index'
|
|
|
+ // });
|
|
|
+ // }
|
|
|
const webview = plus.webview.currentWebview();
|
|
|
plus.key.addEventListener('backbutton', () => {
|
|
|
event.preventDefault();
|
|
@@ -38,7 +37,23 @@
|
|
|
// #endif
|
|
|
},
|
|
|
onHide: function() {
|
|
|
- // console.log('App Hide')
|
|
|
+ // // console.log('App Hide')
|
|
|
+ // // #ifdef APP-PLUS
|
|
|
+ // if (cacheManager.get('auth')) {
|
|
|
+ // uni.reLaunch({
|
|
|
+ // url: `/pages/study/index`
|
|
|
+ // })
|
|
|
+ // }else if(!(cacheManager.get('wxLogin').bind)){
|
|
|
+ // console.log('asdfadsfadsfasd')
|
|
|
+ // // 微信登录且未绑定
|
|
|
+ // } else {
|
|
|
+ // cacheManager.clearAll()
|
|
|
+ // uni.redirectTo({
|
|
|
+ // url: '/pages/login/index'
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+
|
|
|
+ // // #endif
|
|
|
|
|
|
}
|
|
|
}
|