Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
037486e4
Commit
037486e4
authored
Oct 21, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c60acfd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
branch.vue
src/components/Mine/Branch/branch.vue
+1
-0
index.vue
src/components/NavBar/index.vue
+12
-3
No files found.
src/components/Mine/Branch/branch.vue
View file @
037486e4
...
@@ -217,6 +217,7 @@ const hidden = (v: boolean) => {
...
@@ -217,6 +217,7 @@ const hidden = (v: boolean) => {
const
handleClickNagigate
=
()
=>
{
const
handleClickNagigate
=
()
=>
{
console
.
log
(
`
${
props
.
longitude
}
,
${
props
.
latitude
}
`
,
'show lola'
);
new
jsBridge
().
bridge_navigate
(
`
${
props
.
longitude
}
,
${
props
.
latitude
}
`
,
()
=>
{
new
jsBridge
().
bridge_navigate
(
`
${
props
.
longitude
}
,
${
props
.
latitude
}
`
,
()
=>
{
show
.
value
=
false
;
show
.
value
=
false
;
})
})
...
...
src/components/NavBar/index.vue
View file @
037486e4
...
@@ -40,7 +40,16 @@
...
@@ -40,7 +40,16 @@
v-if="occupyPosition"
v-if="occupyPosition"
>
</div>
>
</div>
</div>
</div>
<div
v-else
>
<div
v-else
class=
"navbar w-full"
>
<div
class=
"h-full theBar flex items-end px-5 justify-center relative"
style=
"background:rgb(237,237,237); "
v-bind=
"$attrs"
:style=
"
{
'height': heightOfNotch + 'px',
}"
v-if="isBangs"
>
</div>
<div
:style=
"
{
<div
:style=
"
{
'height': heightOfNotch + 'px'
'height': heightOfNotch + 'px'
}" v-if="isBangs">
</div>
}" v-if="isBangs">
</div>
...
@@ -89,7 +98,7 @@ export default defineComponent({
...
@@ -89,7 +98,7 @@ export default defineComponent({
default
:
false
default
:
false
}
}
},
},
mounted
(){
mounted
()
{
console
.
log
(
document
.
documentElement
.
clientWidth
,
window
.
screen
.
width
,
'show width'
);
console
.
log
(
document
.
documentElement
.
clientWidth
,
window
.
screen
.
width
,
'show width'
);
console
.
log
(
window
.
devicePixelRatio
,
'show window.devicePixelRatio'
);
console
.
log
(
window
.
devicePixelRatio
,
'show window.devicePixelRatio'
);
},
},
...
@@ -99,7 +108,7 @@ export default defineComponent({
...
@@ -99,7 +108,7 @@ export default defineComponent({
},
},
heightOfNotch
()
{
// 刘海屏的刘海高度 单位px
heightOfNotch
()
{
// 刘海屏的刘海高度 单位px
return
notchHeight
.
value
/
window
.
devicePixelRatio
;
return
notchHeight
.
value
/
window
.
devicePixelRatio
;
//
return 103;
return
103
;
}
}
}
}
});
});
...
...
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