adddl.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. .r-li {
  16. width: 90%;
  17. margin: 2rem auto;
  18. }
  19. .r-input {
  20. width: 100%;
  21. display: flex;
  22. justify-content: space-between;
  23. line-height: 2rem;
  24. color: #7e7e7e;
  25. margin: 3rem auto;
  26. }
  27. .r-input input {
  28. border: none;
  29. height: 2rem;
  30. width: 70%;
  31. }
  32. .code {
  33. border: 1px solid #3ab7e7;
  34. font-size: 14px;
  35. padding: 1px 5px;
  36. box-shadow: 1px 1px 2px 1px #a9aaab;
  37. color: #3ab7e7;
  38. }
  39. .r-but {
  40. line-height: 20px;
  41. font-size: 14px;
  42. color: #fff;
  43. background: linear-gradient(135deg, #69e2b3, #19be6b);
  44. display: flex;
  45. justify-content: center;
  46. align-items: center;
  47. height: 3rem;
  48. width: 60%;
  49. border-radius: 10px;
  50. margin: auto;
  51. }
  52. </style>
  53. </head>
  54. <body>
  55. <div class="s-main">
  56. <div class="g-head">
  57. <p style="transform: rotate(180deg);" onclick="window.history.go(-1);"><i class="iconfont iconxiangyou1"></i></p>
  58. <p style="margin-left: 35%;">添加代理</p>
  59. </div>
  60. <form action="">
  61. <div class="r-li">
  62. <div class="r-input"><span>登录账号</span>:</span><input type="text" name="name" value="" placeholder="请输入登录账号" />
  63. </div>
  64. <div class="r-input"><span>登录密码:</span><input type="text" name="name" value="" placeholder="请输入密码" />
  65. </div>
  66. <div class="r-input"><span>联系电话:</span><input type="tel" name="name" value="" placeholder="请输入电话" /></div>
  67. <div class="r-input"><span>真实姓名:</span><input type="" name="name" value="" placeholder="请输入姓名" /></div>
  68. <div class="r-but">添加</div>
  69. </form>
  70. </div>
  71. </body>
  72. </html>
  73. <script>
  74. $('#addr').click(function(){
  75. $('#myDiv').show();
  76. });
  77. window.addEventListener('message', function(event) {
  78. // 接收位置信息,用户选择确认位置点后选点组件会触发该事件,回传用户的位置信息
  79. var loc = event.data;
  80. if (loc && loc.module == 'locationPicker') {//防止其他应用也会向该页面post信息,需判断module是否为'locationPicker'
  81. console.log('location', loc);
  82. var addr=loc.poiaddress
  83. $('#addr').val(addr);
  84. $('#addrss').val(addr);
  85. $('#myDiv').hide();
  86. }
  87. }, false);
  88. </script>