深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 107|回复: 1
打印 上一主题 下一主题

关于Beacon框架WINPOP实现加载Android小界面

[复制链接]

228

主题

466

帖子

2184

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2184
跳转到指定楼层
楼主
发表于 2024-11-22 13:29:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
关于Beacon框架WINPOP实现加载Android小界面

对参数做了特别的设计,参数不加密在base64中,这样方便解析:
  1. var wo = $("#ed_wo").val();
  2. window.parent.location.href = "/a=ewogICAgImFjdGlvbiI6ICJQT1BXSU4iLAogICAgInVybCI6ICJMLnBocC9zZmN3by9rcHF1ZXJ5IiwKICAgICJkYXRhMSI6ICIwLjkiLAogICAgImRhdGEyIjogIjAuOSIKfQ==/" + wo;
  3.                                        
复制代码
对应的JSON:
  1. {
  2.     "action": "POPWIN",
  3.     "url": "L.php/sfcwo/kpquery",
  4.     "data1": "0.9",
  5.     "data2": "0.9"
  6. }
复制代码


回复

使用道具 举报

228

主题

466

帖子

2184

积分

版主

Rank: 7Rank: 7Rank: 7

积分
2184
沙发
 楼主| 发表于 2024-11-23 21:06:48 | 只看该作者
小界面显示webview的问题:
  1.   <meta name="viewport" content="width=device-width, initial-scale=1">
  2.   <script>
  3.   function a2(){
  4.      var iframe = document.getElementById('sy');
  5.             iframe.style.height = '20%';
  6.   }
  7.   function a3(){
  8.      var iframe = document.getElementById('sy');
  9.             iframe.style.height = '30%';
  10.   }
  11.   function a4(){
  12.      var iframe = document.getElementById('sy');
  13.             iframe.style.height = '40%';
  14.   }
  15.   function aa(){
  16.      var iframe = document.getElementById('sy');
  17.             iframe.style.height = '50%';
  18.   }
  19.   function bb(){
  20.      var iframe = document.getElementById('sy');
  21.             iframe.style.height = '60%';
  22.   }
  23.   function cc(){
  24.      var iframe = document.getElementById('sy');
  25.             iframe.style.height = '70%';
  26.   }
  27.   function ee(){
  28.      var iframe = document.getElementById('sy');
  29.             iframe.style.height = '80%';
  30.   }
  31.   </script>
  32.   <table style="cellspacing:10px;cellpadding:10px"><tr><td>
  33.   <input id="bt1" onclick="a2()" value="20%" type='button' /></td><td>
  34.   <input id="bt1" onclick="a3()" value="30%" type='button' /></td><td>
  35.   <input id="bt1" onclick="a4()" value="40%" type='button' /></td><td>
  36.   <input id="bt1" onclick="aa()" value="50%" type='button' /></td><td>  
  37.   <input id="bt2" onclick="bb()" value="60%" type='button' /></td><td>   
  38.   <input id="bt1" onclick="cc()" value="70%" type='button' /></td><td>   
  39.   <input id="bt1" onclick="ee()" value="80%" type='button' /></td></tr></table>
  40.   <style>
  41.         /* 设置 body 和 html 的高度为 100% */
  42.         html, body {
  43.             height: 100%;
  44.             margin: 0;
  45.             padding: 0;
  46.         }

  47.         /* 设置 iframe 的宽度和高度为 100%,并移除边框 */
  48.         iframe {
  49.             width: 98.5%;
  50.             height: 10%;
  51.              border: 2px solid #FF5733; /* 设置边框宽度和颜色 */
  52.         }
  53.     </style>
  54. <iframe id="sy" src='http://192.168.1.8/pdajp/A.php/scansfc/scanroute'>
  55. </iframe>
复制代码


回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-5-5 02:07 , Processed in 0.022197 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表