Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
iedgeMini
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
aa64dd17
authored
Mar 19, 2025
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
add
parent
02d86a73
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
18 deletions
App.vue
unpackage/dist/dev/.sourcemap/mp-weixin/app.js.map
unpackage/dist/dev/mp-weixin/app.js
unpackage/dist/dev/mp-weixin/app.wxss
App.vue
View file @
aa64dd17
...
@@ -12,19 +12,20 @@
...
@@ -12,19 +12,20 @@
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
}
}
...
@@ -64,15 +65,18 @@
...
@@ -64,15 +65,18 @@
<
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
{
background
:
red
!important
;
#mobile
.mobile-header
{
background
:
red
!important
;
}
}
page
{
page
{
padding-top
:
175
rpx
;
padding-top
:
175
rpx
;
}
}
...
@@ -83,5 +87,4 @@
...
@@ -83,5 +87,4 @@
}
}
/* #endif */
/* #endif */
</
style
>
</
style
>
\ No newline at end of file
unpackage/dist/dev/.sourcemap/mp-weixin/app.js.map
View file @
aa64dd17
{"version":3,"file":"app.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
{"version":3,"file":"app.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
\ No newline at end of file
\ No newline at end of file
unpackage/dist/dev/mp-weixin/app.js
View file @
aa64dd17
...
@@ -54,6 +54,7 @@ const _sfc_main = {
...
@@ -54,6 +54,7 @@ const _sfc_main = {
},
},
methods
:
{
methods
:
{
loginCheck
()
{
loginCheck
()
{
debugger
;
try
{
try
{
common_vendor
.
index
.
onAppRoute
((
res
)
=>
{
common_vendor
.
index
.
onAppRoute
((
res
)
=>
{
const
token
=
common_vendor
.
index
.
getStorageSync
(
"token"
);
const
token
=
common_vendor
.
index
.
getStorageSync
(
"token"
);
...
@@ -82,8 +83,8 @@ const _sfc_main = {
...
@@ -82,8 +83,8 @@ const _sfc_main = {
invoke
(
e2
)
{
invoke
(
e2
)
{
const
token
=
common_vendor
.
index
.
getStorageSync
(
"token"
);
const
token
=
common_vendor
.
index
.
getStorageSync
(
"token"
);
const
url
=
e2
.
url
.
split
(
"?"
)[
0
];
const
url
=
e2
.
url
.
split
(
"?"
)[
0
];
common_vendor
.
index
.
__f__
(
"log"
,
"at App.vue:4
6
"
,
666
);
common_vendor
.
index
.
__f__
(
"log"
,
"at App.vue:4
7
"
,
666
);
common_vendor
.
index
.
__f__
(
"log"
,
"at App.vue:4
7
"
,
url
.
indexOf
(
"/user/"
)
!=
-
1
||
url
.
indexOf
(
"/car/confirm"
)
!=
-
1
);
common_vendor
.
index
.
__f__
(
"log"
,
"at App.vue:4
8
"
,
url
.
indexOf
(
"/user/"
)
!=
-
1
||
url
.
indexOf
(
"/car/confirm"
)
!=
-
1
);
if
((
url
.
indexOf
(
"/user/"
)
!=
-
1
||
url
.
indexOf
(
"/car/confirm"
)
!=
-
1
)
&&
!
token
)
{
if
((
url
.
indexOf
(
"/user/"
)
!=
-
1
||
url
.
indexOf
(
"/car/confirm"
)
!=
-
1
)
&&
!
token
)
{
common_vendor
.
index
.
reLaunch
({
common_vendor
.
index
.
reLaunch
({
url
:
`/pages/auth/login?referer=
${
encodeURIComponent
(
e2
.
url
)}
`
url
:
`/pages/auth/login?referer=
${
encodeURIComponent
(
e2
.
url
)}
`
...
...
unpackage/dist/dev/mp-weixin/app.wxss
View file @
aa64dd17
...
@@ -143,10 +143,10 @@
...
@@ -143,10 +143,10 @@
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;
...
@@ -158,5 +158,4 @@ page {
...
@@ -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;}
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment