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
819982f6
Commit
819982f6
authored
Oct 19, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6214543b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
1 deletion
+26
-1
index.html
public/index.html
+10
-0
App.vue
src/App.vue
+7
-1
jsBridge2.js
src/utils/jsBridge2.js
+9
-0
No files found.
public/index.html
View file @
819982f6
...
...
@@ -20,6 +20,15 @@
<!-- built files will be auto injected -->
<!-- <script src="//at.alicdn.com/t/font_2711356_k19r0hh1f4.js"></script> -->
<script
src=
"//at.alicdn.com/t/font_2711356_53bl5jmwu2e.js"
></script>
<script>
(
function
()
{
var
script
=
document
.
createElement
(
'script'
);
script
.
src
=
"//cdn.jsdelivr.net/npm/eruda"
;
document
.
body
.
appendChild
(
script
);
script
.
onload
=
function
()
{
eruda
.
init
()
}
})();
</script>
</body>
</html>
\ No newline at end of file
src/App.vue
View file @
819982f6
...
...
@@ -11,7 +11,7 @@ import { ref } from "@vue/reactivity";
import
{
connectionState
}
from
"./store/connectionStore"
;
import
FzmMessageProtocol
from
"@/utils/fzm-message-protocol"
;
import
{
generateToken
}
from
"./utils/generateToken/generate-token"
;
import
{
defineComponent
,
onBeforeUnmount
,
onMounted
,
watch
}
from
"vue"
;
import
{
defineComponent
,
onBefore
Mount
,
onBefore
Unmount
,
onMounted
,
watch
}
from
"vue"
;
import
decodeChatMessage
from
"./utils/fzm-message-protocol-chat/decodeChatMessage"
;
import
ChatDBService
from
"@/db/ChatDBService"
import
{
getMasterIdFromDisplayMsg
,
getTargetIdFromDisplayMsg
}
from
"./utils/chatutils"
;
...
...
@@ -30,6 +30,12 @@ import { chatAuthCheck } from "./utils/authCheck";
export
default
defineComponent
({
setup
()
{
onBeforeMount
(()
=>
{
new
Bridge
().
getNotchHeight
(
null
,
(
height
:
any
)
=>
{
console
.
log
(
height
,
' show notch height'
)
})
})
const
route
=
useRoute
();
const
initError
=
ref
(
false
);
...
...
src/utils/jsBridge2.js
View file @
819982f6
...
...
@@ -541,5 +541,14 @@ jsBridge.prototype.bridge_live = function (params, success) {
}
}
/* 获取刘海高度 */
jsBridge
.
prototype
.
getNotchHeight
=
function
(
params
,
success
)
{
if
(
this
.
curApp
==
ANDROID
)
{
dsBridge
.
call
(
'getNotchHeight'
,
params
,
success
)
}
else
if
(
this
.
curApp
==
IOS
)
{
this
.
callHandler
(
'getNotchHeight'
,
params
,
success
)
}
}
export
default
jsBridge
;
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