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
84d1071f
Commit
84d1071f
authored
Oct 17, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/mallapp
parents
5e385440
63b32dae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
28 deletions
+35
-28
App.vue
App.vue
+25
-18
index.vue
components/tabbar/index.vue
+10
-10
No files found.
App.vue
View file @
84d1071f
...
...
@@ -9,6 +9,13 @@ export default {
onLaunch
:
function
()
{
this
.
init
();
this
.
formatPlat
();
let
that
=
this
wx
.
getSystemInfo
({
success
(
res
)
{
let
lift
=
res
.
screenHeight
-
res
.
safeArea
.
bottom
that
.
$uiConfig
.
is_bang
=
Number
(
lift
)
>
0
?
true
:
false
}
})
},
onShow
:
function
(
options
)
{
if
(
options
.
referrerInfo
.
extraData
){
...
...
@@ -46,24 +53,24 @@ export default {
}
},
formatPlat
()
{
let
modelmes
=
uni
.
getSystemInfoSync
().
model
;
let
tempMoble
=
Boolean
;
if
(
modelmes
.
indexOf
(
"iPhone X"
)
>=
0
||
modelmes
.
indexOf
(
"iPhone XR"
)
>=
0
||
modelmes
.
indexOf
(
"iPhone XS"
)
>=
0
||
modelmes
.
indexOf
(
"iPhone 12"
)
>=
0
||
modelmes
.
indexOf
(
"iPhone 11"
)
>=
0
||
modelmes
.
indexOf
(
"iPhone11"
)
>=
0
||
modelmes
.
indexOf
(
"iPhone12"
)
>=
0
||
modelmes
.
indexOf
(
"iPhoneXR"
)
>=
0
||
modelmes
.
indexOf
(
"iPhoneX"
)
>=
0
)
{
tempMoble
=
true
;
}
else
{
tempMoble
=
false
;
}
this
.
$uiConfig
.
is_bang
=
tempMoble
;
//
let modelmes = uni.getSystemInfoSync().model;
//
let tempMoble = Boolean;
//
if (
//
modelmes.indexOf("iPhone X") >= 0 ||
//
modelmes.indexOf("iPhone XR") >= 0 ||
//
modelmes.indexOf("iPhone XS") >= 0 ||
//
modelmes.indexOf("iPhone 12") >= 0 ||
//
modelmes.indexOf("iPhone 11") >= 0 ||
//
modelmes.indexOf("iPhone11") >= 0 ||
//
modelmes.indexOf("iPhone12") >= 0 ||
//
modelmes.indexOf("iPhoneXR") >= 0 ||
//
modelmes.indexOf("iPhoneX") >= 0
//
) {
//
tempMoble = true;
//
} else {
//
tempMoble = false;
//
}
//
this.$uiConfig.is_bang = tempMoble;
},
formatNavigation
()
{
uni
.
setNavigationBarColor
({
...
...
components/tabbar/index.vue
View file @
84d1071f
...
...
@@ -9,19 +9,19 @@
right
:
0
;
z-index
:
99999999
;
border-top
:
1
upx
solid
#ddd
;
padding-top
:
96
rpx
;
padding-top
:
20
rpx
;
background
:
#fff
;
}
.tabbarMainIphone
{
height
:
156
upx
;
/* height: 156upx; */
/* padding-bottom: 64upx; */
}
.tabBtnMina
{
width
:
750
upx
;
/* height: 88upx; */
position
:
absolute
;
/*
position: absolute;
z-index: 2;
bottom
:
0
;
bottom: 0;
*/
flex-direction
:
row
;
/* #ifndef */
/* padding-bottom: constant(safe-area-inset-top);
...
...
@@ -33,7 +33,7 @@
z-index
:
99999
;
}
.tabBtnMinaIphone
{
height
:
156
upx
;
/* height: 156upx; */
/* padding-bottom: 64upx; */
}
.imgse
{
...
...
@@ -114,15 +114,15 @@
<view
class=
"tabbarMain"
:class=
"[flagTypeInfo ? 'tabbarMainIphone' : '']"
:style=
"
{'
height':height+'rpx','position':'fixed','left':'0','right':'0
'}"
:style=
"
{'
position':'fixed','left':'0','right':'0','padding-bottom':paddingBottom + 'rpx
'}"
v-if="navs
&&
navs.length > 0"
>
<!-- 'height':height+'rpx', -->
<view
class=
"tabBtnMina"
:class=
"[flagTypeInfo ? 'tabBtnMinaIphone' : '']"
:style=
"
{'height':height+'upx','padding-bottom':paddingBottom + 'rpx'}"
mode=
""
>
<!-- 'height':height+'upx', -->
<view
class=
"itmMain"
v-for=
"(x, i) in navs"
...
...
@@ -249,8 +249,8 @@ export default {
wx
.
getSystemInfo
({
success
(
res
)
{
let
lift
=
res
.
screenHeight
-
res
.
safeArea
.
bottom
that
.
paddingBottom
=
Number
(
lift
)
+
1
0
console
.
log
(
lift
)
that
.
paddingBottom
=
Number
(
lift
)
+
2
0
}
})
// let port = uni.getSystemInfoSync().platform
...
...
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