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
0d8e6a38
Commit
0d8e6a38
authored
Mar 31, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义页面显示底部导航
parent
38f0b348
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
src/components/tabbarPage.vue
+14
-7
No files found.
src/components/tabbarPage.vue
View file @
0d8e6a38
...
...
@@ -69,20 +69,27 @@ export default {
let
homeIndex
=
checkTabbarPage
(
"/"
);
homeIndex
!=
0
&&
homeIndex
==
tabIndex
&&
(
tabIndex
=
0
);
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
)
{
let
urlLink
=
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
tabIndex
].
link
;
console
.
log
(
urlLink
,
'---urlLink'
)
if
(
urlLink
)
{
this
.
page
=
getUrlofLink
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
tabIndex
].
l
ink
urlL
ink
);
let
query
=
serialize
(
options
)
console
.
log
(
query
,
'=================='
,
this
.
params
,
'-----------------'
)
let
urlPrams
=
urlLink
.
link
.
split
(
'?'
)[
1
]?
urlLink
.
link
.
split
(
'?'
)[
1
]:
""
;
console
.
log
(
query
,
'=================='
,
this
.
params
,
'-----------------'
,
urlPrams
)
// 只兼容底部导航进入活动页面添加参数,跳转完成删除
if
(
urlPrams
){
this
.
params
+=
urlPrams
?
'&'
+
urlPrams
:
''
}
this
.
params
+=
query
?
'&'
+
query
:
''
}
let
reg
=
/^
\/
pages
\/
/
;
console
.
log
(
this
.
pageUrl
,
'pageUrl======================'
,
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
tabIndex
].
l
ink
)
if
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
tabIndex
].
l
ink
)
{
if
(
reg
.
test
(
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
tabIndex
].
l
ink
.
link
)){
console
.
log
(
this
.
pageUrl
,
'pageUrl======================'
,
urlL
ink
)
if
(
urlL
ink
)
{
if
(
reg
.
test
(
urlL
ink
.
link
)){
wx
.
reLaunch
({
url
:
this
.
mpApp
.
globalData
.
footerVal
.
componentData
.
list
[
tabIndex
].
l
ink
.
link
,
url
:
urlL
ink
.
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