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
8a9aef8c
Commit
8a9aef8c
authored
Oct 14, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e2f5e895
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
20 deletions
+28
-20
index.vue
components/tabbar/index.vue
+28
-20
No files found.
components/tabbar/index.vue
View file @
8a9aef8c
...
...
@@ -24,8 +24,8 @@
bottom
:
0
;
flex-direction
:
row
;
/* #ifndef */
padding-bottom
:
constant
(
safe-area-inset-top
);
padding-bottom
:
env
(
safe-area-inset-top
);
/*
padding-bottom: constant(safe-area-inset-top);
padding-bottom: env(safe-area-inset-top);
*/
/* #endif */
display
:
flex
;
left
:
0
;
...
...
@@ -245,24 +245,32 @@ export default {
},
3000
);
}
this
.
activeHandler
();
let
port
=
uni
.
getSystemInfoSync
().
platform
switch
(
port
)
{
case
'android'
:
this
.
height
=
'140'
this
.
paddingBottom
=
'20'
console
.
log
(
'运行Android上'
,
port
);
//android
break
;
case
'ios'
:
this
.
height
=
'160'
this
.
paddingBottom
=
'58'
console
.
log
(
'运行iOS上'
,
port
);
//ios
break
;
default
:
this
.
height
=
'160'
this
.
paddingBottom
=
'58'
console
.
log
(
'运行在开发者工具上'
);
//devtools
break
;
}
let
that
=
this
wx
.
getSystemInfo
({
success
(
res
)
{
let
lift
=
res
.
screenHeight
-
res
.
safeArea
.
bottom
that
.
paddingBottom
=
Number
(
lift
)
+
10
console
.
log
(
lift
)
}
})
// let port = uni.getSystemInfoSync().platform
// switch (port) {
// case 'android':
// this.height = '140'
// this.paddingBottom = '20'
// console.log('运行Android上',port);//android
// break;
// case 'ios':
// this.height = '160'
// this.paddingBottom = '58'
// console.log('运行iOS上',port);//ios
// break;
// default:
// this.height = '160'
// this.paddingBottom = '58'
// console.log('运行在开发者工具上');//devtools
// break;
// }
},
// activated(){
// if(uni.getStorageSync("navs")){
...
...
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