Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
f0be7037
Commit
f0be7037
authored
Aug 13, 2020
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了部分样式
parent
51c316fb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
369 additions
and
281 deletions
+369
-281
index.vue
components/tabbar/index.vue
+13
-4
index.vue
pages/index/index.vue
+356
-277
No files found.
components/tabbar/index.vue
View file @
f0be7037
...
...
@@ -166,8 +166,9 @@ export default {
setTimeout
(()
=>
{
this
.
navs
=
uni
.
getStorageSync
(
"basedata"
)
?
uni
.
getStorageSync
(
"basedata"
).
navbar
.
navs
:
[];
},
2000
)
:
[];
this
.
activeHandler
();
},
3000
)
}
this
.
activeHandler
();
...
...
@@ -175,9 +176,17 @@ export default {
methods
:
{
activeHandler
()
{
let
t
=
getCurrentPages
();
this
.
crtPath
=
"/"
+
t
[
t
.
length
-
1
].
route
;
let
query
=
t
[
t
.
length
-
1
].
__displayReporter
.
query
let
queryString
=
''
for
(
var
k
in
query
){
queryString
+=
`&
${
k
}
=
${
query
[
k
]}
`
}
if
(
queryString
!=
''
){
queryString
=
"?"
+
queryString
.
substring
(
1
,
queryString
.
length
)
}
this
.
crtPath
=
"/"
+
t
[
t
.
length
-
1
].
route
+
queryString
;
this
.
navs
.
forEach
((
x
,
i
)
=>
{
if
(
x
.
url
.
split
(
"?"
)[
0
]
==
this
.
crtPath
)
{
if
(
x
.
url
==
this
.
crtPath
)
{
this
.
active
=
i
;
}
});
...
...
pages/index/index.vue
View file @
f0be7037
This diff is collapsed.
Click to expand it.
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