|
@@ -38,6 +38,28 @@
|
|
|
document.getElementById('loading').className = ''
|
|
|
}
|
|
|
})
|
|
|
+ function _postMessage(data, callback) {
|
|
|
+ const instance = window.ORCHESTRA || (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.ORCHESTRA)
|
|
|
+ if (instance) {
|
|
|
+ const uuid = '' + Date.now() + Math.floor(Math.random() * 1000000)
|
|
|
+ data.content = data.content ? { ...data.content, uuid } : { uuid }
|
|
|
+ console.log('h5发送:', JSON.stringify(data))
|
|
|
+ instance.postMessage(JSON.stringify(data))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 安卓的状态栏
|
|
|
+ _postMessage({
|
|
|
+ api: 'setStatusBarVisibility',
|
|
|
+ content: {
|
|
|
+ isVisibility: 0,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ _postMessage({
|
|
|
+ api: 'setTitleBarVisibility',
|
|
|
+ content: {
|
|
|
+ status: 0,
|
|
|
+ },
|
|
|
+ })
|
|
|
</script>
|
|
|
<style>
|
|
|
#lottieWebWrap{
|