xuanfc.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" type="text/css" href="./css/index.css" />
  8. <title>悬浮</title>
  9. <style>
  10. html, body {
  11. height: 100%;
  12. }
  13. body {
  14. margin: 0;
  15. }
  16. video {
  17. width: 100%;
  18. height: 100%;
  19. position: absolute;
  20. left: 0;
  21. top: 0;
  22. z-index: -1;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <audio id="my_audio" autoplay></audio>
  28. <div class="bottomView" style="width: 100%;">
  29. <div class="contentColumnC">
  30. <img class="guadanImg" style="margin-top: 5px;" src="./img/guaduandd.png" alt="" onclick="changeImg()"/>
  31. <div class="contentInRowC" style="width: 100%;margin-top: 10px;">
  32. <div id="markNote">打电话</div>
  33. <img class="calling" src="./img/loading2.gif" alt="" />
  34. </div>
  35. </div>
  36. </div>
  37. </body>
  38. <script type="text/javascript" src="./js/lib/uniwebviewsdk.js"></script>
  39. <script>
  40. let localStream = null;
  41. const markNote = document.getElementById('markNote');
  42. function guaduan(){
  43. var dic = {
  44. "key": 1
  45. }
  46. var jsonStr = JSON.stringify(dic)
  47. try {
  48. window.webkit.messageHandlers.sendData.postMessage(jsonStr); //ios
  49. } catch (e) {}
  50. }
  51. //====================================================
  52. function appAct (obj) {
  53. }
  54. function initRtc(){
  55. uni.postMessage({
  56. data: {
  57. data:'初始化', // 回传
  58. type:88
  59. },
  60. });
  61. }
  62. window.onload=initRtc;
  63. window.onunload=releaseTack;
  64. </script>
  65. </html>