Commit aa64dd17 by LJM

add

parent 02d86a73
......@@ -12,19 +12,20 @@
console.log('App Hide')
},
methods: {
loginCheck(){
loginCheck() {
debugger
try {
uni.onAppRoute((res) => {
const token = uni.getStorageSync("token");
const url ="/"+res.path
const url = "/" + res.path
var pages = getCurrentPages(); // 获取栈实例
let currentPage = pages[pages.length - 1]; // 获取当前页面实例
let currentPath = currentPage.route; // 获取当前页面路由
let currentPageFullPath = currentPage['$page']['fullPath']; // 当前页面路径
if(pages.length>=8){
if (pages.length >= 8) {
uni.reLaunch({
url:currentPageFullPath
url: currentPageFullPath
});
return
}
......@@ -64,15 +65,18 @@
<style>
/*每个页面公共css */
@import './assets/css/font/iconfont.css';
.img-style {
max-width: 100%;
height: auto;
display: block;
margin:0 auto;
margin: 0 auto;
}
#mobile .mobile-header{
background: red!important;
#mobile .mobile-header {
background: red !important;
}
page {
padding-top: 175rpx;
}
......@@ -83,5 +87,4 @@
}
/* #endif */
</style>
\ No newline at end of file
{"version":3,"file":"app.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
\ No newline at end of file
{"version":3,"file":"app.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
\ No newline at end of file
......@@ -54,6 +54,7 @@ const _sfc_main = {
},
methods: {
loginCheck() {
debugger;
try {
common_vendor.index.onAppRoute((res) => {
const token = common_vendor.index.getStorageSync("token");
......@@ -82,8 +83,8 @@ const _sfc_main = {
invoke(e2) {
const token = common_vendor.index.getStorageSync("token");
const url = e2.url.split("?")[0];
common_vendor.index.__f__("log", "at App.vue:46", 666);
common_vendor.index.__f__("log", "at App.vue:47", url.indexOf("/user/") != -1 || url.indexOf("/car/confirm") != -1);
common_vendor.index.__f__("log", "at App.vue:47", 666);
common_vendor.index.__f__("log", "at App.vue:48", url.indexOf("/user/") != -1 || url.indexOf("/car/confirm") != -1);
if ((url.indexOf("/user/") != -1 || url.indexOf("/car/confirm") != -1) && !token) {
common_vendor.index.reLaunch({
url: `/pages/auth/login?referer=${encodeURIComponent(e2.url)}`
......
......@@ -143,10 +143,10 @@
max-width: 100%;
height: auto;
display: block;
margin:0 auto;
margin: 0 auto;
}
#mobile .mobile-header{
background: red!important;
#mobile .mobile-header {
background: red !important;
}
page {
padding-top: 175rpx;
......@@ -158,5 +158,4 @@ page {
page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}
\ 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