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
361116d7
Commit
361116d7
authored
Dec 13, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
底部导航问题
parent
6d8481f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
src/components/tabbarPage.vue
+9
-7
No files found.
src/components/tabbarPage.vue
View file @
361116d7
...
@@ -51,6 +51,7 @@ export default {
...
@@ -51,6 +51,7 @@ export default {
},
},
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
let
tabIndex
=
this
.
index
>=
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
.
length
?
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
.
length
-
1
:
this
.
index
;
this
.
params
=
this
.
$options
.
data
.
call
(
this
).
params
this
.
params
=
this
.
$options
.
data
.
call
(
this
).
params
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
let
ss
=
wx
.
getStorageSync
(
"sessionid"
);
this
.
ss
=
ss
?
`&sessionid=
${
ss
}
`
:
""
;
this
.
ss
=
ss
?
`&sessionid=
${
ss
}
`
:
""
;
...
@@ -64,21 +65,22 @@ export default {
...
@@ -64,21 +65,22 @@ export default {
}
}
// tabbar 跳转
// tabbar 跳转
let
homeIndex
=
checkTabbarPage
(
"/"
);
let
homeIndex
=
checkTabbarPage
(
"/"
);
homeIndex
!=
0
&&
homeIndex
==
this
.
index
&&
(
this
.
index
=
0
);
homeIndex
!=
0
&&
homeIndex
==
tabIndex
&&
(
tabIndex
=
0
);
if
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
this
.
index
].
link
)
{
console
.
log
(
this
.
mpApp
.
globalData
.
footerVal
,
tabIndex
,
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
.
length
,
'--this.mpApp.globalData.footerVal'
)
if
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
tabIndex
].
link
)
{
this
.
page
=
getUrlofLink
(
this
.
page
=
getUrlofLink
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
his
.
i
ndex
].
link
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
abI
ndex
].
link
);
);
let
query
=
serialize
(
options
)
let
query
=
serialize
(
options
)
console
.
log
(
query
,
'=================='
,
this
.
params
,
'-----------------'
)
console
.
log
(
query
,
'=================='
,
this
.
params
,
'-----------------'
)
this
.
params
+=
query
?
'&'
+
query
:
''
this
.
params
+=
query
?
'&'
+
query
:
''
}
}
let
reg
=
/^
\/
pages
\/
/
;
let
reg
=
/^
\/
pages
\/
/
;
console
.
log
(
this
.
pageUrl
,
'pageUrl======================'
,
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
his
.
i
ndex
].
link
)
console
.
log
(
this
.
pageUrl
,
'pageUrl======================'
,
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
abI
ndex
].
link
)
if
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
his
.
i
ndex
].
link
)
{
if
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
abI
ndex
].
link
)
{
if
(
reg
.
test
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
his
.
i
ndex
].
link
.
link
)){
if
(
reg
.
test
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
abI
ndex
].
link
.
link
)){
wx
.
reLaunch
({
wx
.
reLaunch
({
url
:
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
his
.
i
ndex
].
link
.
link
,
url
:
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
t
abI
ndex
].
link
.
link
,
});
});
}
}
}
}
...
...
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