Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
8857e049
You need to sign in or sign up before continuing.
Commit
8857e049
authored
Mar 06, 2025
by
youjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'B2C' of
http://gitlab.oytour.com/zk123/jz_travel
into B2C
parents
6bf1a066
146209a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
22 deletions
+26
-22
index.vue
components/tabbar/index.vue
+22
-21
index.vue
pages/index/index.vue
+4
-1
No files found.
components/tabbar/index.vue
View file @
8857e049
<
template
>
<view
class=
"tabbarMain"
:style=
"
{paddingBottom: `${bottomSafeHeight}px`}" v-if="navs.length
">
<view
class=
"tabbarMain"
:style=
"
{paddingBottom: `${bottomSafeHeight}px`}" v-if="navs.length
&&
isExsits
">
<view
class=
"tabBtnMina"
>
<view
class=
"itmMain"
...
...
@@ -27,7 +27,8 @@ export default {
active
:
0
,
navs
:
[],
bottomSafeHeight
:
0
,
currentPath
:
''
currentPath
:
''
,
isExsits
:
true
};
},
mounted
()
{
...
...
@@ -48,12 +49,12 @@ export default {
.
map
(
key
=>
`
${
key
}
=
${
query
[
key
]}
`
)
.
join
(
'&'
)
this
.
currentPath
=
`/
${
currentPage
.
route
}${
queryString
?
'?'
+
queryString
:
''
}
`
this
.
navs
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
currentPath
===
item
.
url
)
{
this
.
active
=
index
}
})
this
.
isExsits
=
this
.
navs
.
findIndex
(
x
=>
x
.
url
==
this
.
currentPath
)
!=-
1
},
goUrl
(
url
)
{
if
(
this
.
currentPath
!==
url
)
{
...
...
pages/index/index.vue
View file @
8857e049
...
...
@@ -295,6 +295,9 @@
},
(
res
)
=>
{
this
.
myPageData
=
res
.
data
;
if
(
this
.
pageId
==
0
){
uni
.
setStorageSync
(
'navs'
,
this
.
myPageData
.
navbar
.
navs
)
}
uni
.
setStorageSync
(
"basedata"
,
res
.
data
);
if
(
res
.
data
&&
res
.
data
.
mall
&&
res
.
data
.
mall
.
setting
)
{
this
.
setting
=
res
.
data
.
mall
.
setting
;
...
...
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