| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="stylesheet" type="text/css" href="./css/index.css" />
- <title>悬浮</title>
- <style>
- html, body {
- height: 100%;
- }
- body {
- margin: 0;
- }
- video {
- width: 100%;
- height: 100%;
- position: absolute;
- left: 0;
- top: 0;
- z-index: -1;
- }
-
- </style>
- </head>
- <body>
- <audio id="my_audio" autoplay></audio>
- <div class="bottomView" style="width: 100%;">
- <div class="contentColumnC">
- <img class="guadanImg" style="margin-top: 5px;" src="./img/guaduandd.png" alt="" onclick="changeImg()"/>
- <div class="contentInRowC" style="width: 100%;margin-top: 10px;">
- <div id="markNote">打电话</div>
- <img class="calling" src="./img/loading2.gif" alt="" />
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript" src="./js/lib/uniwebviewsdk.js"></script>
- <script>
- let localStream = null;
- const markNote = document.getElementById('markNote');
-
- function guaduan(){
- var dic = {
- "key": 1
- }
- var jsonStr = JSON.stringify(dic)
- try {
- window.webkit.messageHandlers.sendData.postMessage(jsonStr); //ios
- } catch (e) {}
- }
-
-
- //====================================================
- function appAct (obj) {
-
- }
- function initRtc(){
- uni.postMessage({
- data: {
- data:'初始化', // 回传
- type:88
- },
- });
- }
- window.onload=initRtc;
- window.onunload=releaseTack;
- </script>
-
- </html>
|