Commit 3613d455 by LJM

恢复

parent 8518f187
Showing with 9 additions and 11 deletions
...@@ -12,20 +12,19 @@ ...@@ -12,20 +12,19 @@
console.log('App Hide') console.log('App Hide')
}, },
methods: { methods: {
loginCheck() { loginCheck(){
debugger
try { try {
uni.onAppRoute((res) => { uni.onAppRoute((res) => {
const token = uni.getStorageSync("token"); const token = uni.getStorageSync("token");
const url = "/" + res.path const url ="/"+res.path
var pages = getCurrentPages(); // 获取栈实例 var pages = getCurrentPages(); // 获取栈实例
let currentPage = pages[pages.length - 1]; // 获取当前页面实例 let currentPage = pages[pages.length - 1]; // 获取当前页面实例
let currentPath = currentPage.route; // 获取当前页面路由 let currentPath = currentPage.route; // 获取当前页面路由
let currentPageFullPath = currentPage['$page']['fullPath']; // 当前页面路径 let currentPageFullPath = currentPage['$page']['fullPath']; // 当前页面路径
if (pages.length >= 8) { if(pages.length>=8){
uni.reLaunch({ uni.reLaunch({
url: currentPageFullPath url:currentPageFullPath
}); });
return return
} }
...@@ -65,18 +64,15 @@ ...@@ -65,18 +64,15 @@
<style> <style>
/*每个页面公共css */ /*每个页面公共css */
@import './assets/css/font/iconfont.css'; @import './assets/css/font/iconfont.css';
.img-style { .img-style {
max-width: 100%; max-width: 100%;
height: auto; height: auto;
display: block; display: block;
margin: 0 auto; margin:0 auto;
} }
#mobile .mobile-header{
#mobile .mobile-header { background: red!important;
background: red !important;
} }
page { page {
padding-top: 175rpx; padding-top: 175rpx;
} }
...@@ -87,4 +83,5 @@ ...@@ -87,4 +83,5 @@
} }
/* #endif */ /* #endif */
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment