submit.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <html>
  2. <head>
  3. <title>领取话卡</title></title>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover">
  7. <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/c/font_2056629_vzvl0jvb2q.css">
  8. <link rel="stylesheet" type="text/css" href="static/css/style.css">
  9. <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>
  10. <style>
  11. .s-img{
  12. width: 95%;
  13. margin: auto;
  14. }
  15. .s-img img{
  16. width: 100%;
  17. }
  18. .r-li {
  19. width: 90%;
  20. margin: 2rem auto;
  21. }
  22. .r-input {
  23. width: 100%;
  24. display: flex;
  25. justify-content: space-between;
  26. line-height: 2rem;
  27. color: #7e7e7e;
  28. margin: 1rem auto;
  29. }
  30. .r-input input {
  31. border: none;
  32. height: 2rem;
  33. width: 70%;
  34. }
  35. .code {
  36. border: 1px solid #3ab7e7;
  37. font-size: 14px;
  38. padding: 1px 5px;
  39. box-shadow: 1px 1px 2px 1px #a9aaab;
  40. color: #3ab7e7;
  41. }
  42. .r-but {
  43. line-height: 20px;
  44. font-size: 14px;
  45. color: #fff;
  46. background: linear-gradient(135deg, #69e2b3, #19be6b);
  47. display: flex;
  48. justify-content: center;
  49. align-items: center;
  50. height: 3rem;
  51. width: 60%;
  52. border-radius: 10px;
  53. margin: auto;
  54. }
  55. .detail{
  56. position: absolute;
  57. z-index: 99;
  58. background-color: #cccccc87;
  59. height: 100%;
  60. width: 100%;
  61. /* border-radius: 5%; */
  62. top: 0;
  63. left: 0;
  64. display: none;
  65. }
  66. .tis{
  67. text-align: center;
  68. margin: 1rem auto;
  69. font-size: 14px;
  70. color: #f33155;
  71. }
  72. </style>
  73. </head>
  74. <body>
  75. <div class="s-main">
  76. <div class="s-img"><img src="static/images/img.jpg"/></div>
  77. <div class="tis"><i class="iconfont iconxiaoxi"></i>以下信息已加密保护,仅用于运营商使用!</div>
  78. <form action="">
  79. <div class="r-li">
  80. <div class="r-input"><span>真实姓名:</span><input type="text" name="name" value="" placeholder="请输入真实姓名" />
  81. </div>
  82. <div class="r-input"><span>身份证号:</span><input type="text" name="name" value="" placeholder="请输入身份证号" />
  83. </div>
  84. <div class="r-input"><span>联系电话:</span><input type="tel" name="name" value="" placeholder="请输入电话" /></div>
  85. <div class="r-input"><span>收货地址:</span><input type="" name="name" value="" placeholder="请选择地址" id="addr" /></div>
  86. <div class="r-input"><span>详细地址:</span><input type="" name="name" value="" placeholder="请输入详细地址" id="addrss" /></div>
  87. <div class="r-input" style="justify-content: unset;"><span>入网协议:</span><span><input type="radio" value="" color="" style="height: 1rem;width: 1rem;">
  88. 我已阅读并同意</span></div>
  89. <div style="color:#3463e7;font-size:14px;line-height:1.5rem">
  90. ⟪实名制信息安全责任告知书⟫,⟪关于客户个人信息收集、使用规则的公告⟫,⟪电信和互联网用户个人信息保护规定⟫
  91. </div>
  92. </div>
  93. <div class="r-but">立即领取</div>
  94. </form>
  95. </div>
  96. <div class="detail" id="myDiv">
  97. <iframe id="mapPage" width="100%" height="100%" frameborder=0
  98. src="https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=JW6BZ-6Z5K3-WQE3R-3LCTW-Q2QM6-BZB2D&referer=myapp">
  99. </iframe>
  100. </div>
  101. </body>
  102. </html>
  103. <script>
  104. $('#addr').click(function(){
  105. $('#myDiv').show();
  106. });
  107. window.addEventListener('message', function(event) {
  108. // 接收位置信息,用户选择确认位置点后选点组件会触发该事件,回传用户的位置信息
  109. var loc = event.data;
  110. if (loc && loc.module == 'locationPicker') {//防止其他应用也会向该页面post信息,需判断module是否为'locationPicker'
  111. console.log('location', loc);
  112. var addr=loc.poiaddress
  113. $('#addr').val(addr);
  114. $('#addrss').val(addr);
  115. $('#myDiv').hide();
  116. }
  117. }, false);
  118. </script>