Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
e5434229
Commit
e5434229
authored
Jan 10, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reload
parent
be90f6af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/components/tabbarPage.vue
+9
-2
No files found.
src/components/tabbarPage.vue
View file @
e5434229
...
@@ -104,9 +104,17 @@ export default {
...
@@ -104,9 +104,17 @@ export default {
},
},
onShow
(){
onShow
(){
console
.
log
(
'--onShow--'
)
console
.
log
(
'--onShow--'
)
this
.
loadPage
();
},
methods
:
{
loadPage
()
{
// 需要重新加载页面
let
pageList
=
[
'/shopCart/shoppingCart'
];
let
includesPage
=
pageList
.
filter
(
item
=>
this
.
pageUrl
.
indexOf
(
item
)
>
-
1
);
console
.
log
(
includesPage
,
'-----includesPage'
)
// 重载页面
// 重载页面
let
reloadTabbarPage
=
wx
.
getStorageSync
(
"reloadTabbarPage"
)
||
0
;
let
reloadTabbarPage
=
wx
.
getStorageSync
(
"reloadTabbarPage"
)
||
0
;
if
(
reloadTabbarPage
==
1
){
if
(
reloadTabbarPage
==
1
||
includesPage
.
length
>
0
){
this
.
showPage
=
false
;
this
.
showPage
=
false
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
showPage
=
true
;
this
.
showPage
=
true
;
...
@@ -114,7 +122,6 @@ export default {
...
@@ -114,7 +122,6 @@ export default {
wx
.
removeStorageSync
(
"reloadTabbarPage"
);
wx
.
removeStorageSync
(
"reloadTabbarPage"
);
}
}
},
},
methods
:
{
handleError
(
data
)
{
handleError
(
data
)
{
wx
.
showLoading
({
wx
.
showLoading
({
title
:
"网页加载失败 请右上角刷新"
,
title
:
"网页加载失败 请右上角刷新"
,
...
...
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