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
1eb58b49
Commit
1eb58b49
authored
Oct 17, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
ccaaa247
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
18 deletions
+25
-18
App.vue
App.vue
+25
-18
No files found.
App.vue
View file @
1eb58b49
...
@@ -9,6 +9,13 @@ export default {
...
@@ -9,6 +9,13 @@ export default {
onLaunch
:
function
()
{
onLaunch
:
function
()
{
this
.
init
();
this
.
init
();
this
.
formatPlat
();
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
)
{
onShow
:
function
(
options
)
{
if
(
options
.
referrerInfo
.
extraData
){
if
(
options
.
referrerInfo
.
extraData
){
...
@@ -46,24 +53,24 @@ export default {
...
@@ -46,24 +53,24 @@ export default {
}
}
},
},
formatPlat
()
{
formatPlat
()
{
let
modelmes
=
uni
.
getSystemInfoSync
().
model
;
//
let modelmes = uni.getSystemInfoSync().model;
let
tempMoble
=
Boolean
;
//
let tempMoble = Boolean;
if
(
//
if (
modelmes
.
indexOf
(
"iPhone X"
)
>=
0
||
//
modelmes.indexOf("iPhone X") >= 0 ||
modelmes
.
indexOf
(
"iPhone XR"
)
>=
0
||
//
modelmes.indexOf("iPhone XR") >= 0 ||
modelmes
.
indexOf
(
"iPhone XS"
)
>=
0
||
//
modelmes.indexOf("iPhone XS") >= 0 ||
modelmes
.
indexOf
(
"iPhone 12"
)
>=
0
||
//
modelmes.indexOf("iPhone 12") >= 0 ||
modelmes
.
indexOf
(
"iPhone 11"
)
>=
0
||
//
modelmes.indexOf("iPhone 11") >= 0 ||
modelmes
.
indexOf
(
"iPhone11"
)
>=
0
||
//
modelmes.indexOf("iPhone11") >= 0 ||
modelmes
.
indexOf
(
"iPhone12"
)
>=
0
||
//
modelmes.indexOf("iPhone12") >= 0 ||
modelmes
.
indexOf
(
"iPhoneXR"
)
>=
0
||
//
modelmes.indexOf("iPhoneXR") >= 0 ||
modelmes
.
indexOf
(
"iPhoneX"
)
>=
0
//
modelmes.indexOf("iPhoneX") >= 0
)
{
//
) {
tempMoble
=
true
;
//
tempMoble = true;
}
else
{
//
} else {
tempMoble
=
false
;
//
tempMoble = false;
}
//
}
this
.
$uiConfig
.
is_bang
=
tempMoble
;
//
this.$uiConfig.is_bang = tempMoble;
},
},
formatNavigation
()
{
formatNavigation
()
{
uni
.
setNavigationBarColor
({
uni
.
setNavigationBarColor
({
...
...
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