settings.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>SIMC 终端控制系统</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <!--标准mui.css-->
  10. <link rel="stylesheet" href="css/mui.min.css">
  11. <!--App自定义的css-->
  12. <link rel="stylesheet" type="text/css" href="css/app.css" />
  13. <link rel="stylesheet" type="text/css" href="css/iconfont.css" />
  14. <style>
  15. .mui-content-padded{
  16. padding: 10px 0 10px 0;
  17. }
  18. .mui-col{
  19. padding-right: 4px;
  20. display: inline-block;
  21. padding: 2px 5px;
  22. }
  23. .item{
  24. margin: 5px 0;
  25. }
  26. .mui-row{
  27. padding: 4px 0;
  28. }
  29. .mui-col-xs-3{
  30. padding: 2px 2px;
  31. }
  32. .mui-col-xs-3 >input{
  33. height: 20px;
  34. margin-bottom: 0px;
  35. border: 1px solid #298890;
  36. background-color: rgba(255,255,255,0);
  37. }
  38. .mui-col-xs-2{
  39. text-align: right;
  40. }
  41. .mui-icon-undo{
  42. font-size: 40px;
  43. }
  44. </style>
  45. <style>
  46. .mui-btn-block{
  47. margin-bottom: 0;
  48. }
  49. .mui-content-padded{
  50. margin: 2px;
  51. }
  52. .mui-col{
  53. display: inline-block;
  54. padding: 2px;
  55. }
  56. /*滚动条样式*/
  57. ::-webkit-scrollbar {
  58. width: 0;
  59. background-color: #F5F5F5;
  60. }
  61. /*定义滚动条轨道 内阴影+圆角*/
  62. ::-webkit-scrollbar-track {
  63. background-color: #2e3342;
  64. }
  65. /*定义滑块 内阴影+圆角*/
  66. ::-webkit-scrollbar-thumb {
  67. background-color: #2e3342;
  68. }
  69. .mui-btn-royal{
  70. background-color: rgba(141, 157, 199, 0.5);
  71. border:1px solid rgba(141, 157, 199, 0.5)
  72. }
  73. .active {
  74. background-color: #d4d4d4;
  75. color:white;
  76. }
  77. .up{
  78. background: #0087c5 url(img/top.svg) no-repeat 50% 10%;
  79. }
  80. .down{
  81. background: #0087c5 url(img/bottom.svg) no-repeat 50% 10%;
  82. }
  83. .mui-plus .plus{
  84. display: inline;
  85. }
  86. .plus{
  87. display: none;
  88. }
  89. #topPopover {
  90. position: fixed;
  91. top: 16px;
  92. right: 6px;
  93. }
  94. #topPopover .mui-popover-arrow {
  95. left: auto;
  96. right: 6px;
  97. }
  98. p {
  99. text-indent: 22px;
  100. }
  101. span.mui-icon {
  102. font-size: 14px;
  103. color: #007aff;
  104. margin-left: -15px;
  105. padding-right: 10px;
  106. }
  107. .mui-popover {
  108. color:#fff;
  109. height: 260px;
  110. width: 130px;
  111. background-color: rgba(141, 157, 199, 0.9);
  112. }
  113. .mui-content {
  114. padding: 10px;
  115. }
  116. .mui-scroll-wrapper{
  117. background-color:transparent;
  118. }
  119. .mui-popover .mui-table-view{
  120. background-color: transparent;
  121. }
  122. .history tr{
  123. background-color: #ffffff;
  124. border-radius:5px 0 0 5px;
  125. }
  126. .history td:first-child{
  127. border-radius:5px 0 0 5px;
  128. }
  129. .history td:last-child{
  130. border-radius: 0 5px 5px 0;
  131. }
  132. .grid-task >div{
  133. display: grid;
  134. grid-template-columns: 60px 1fr 1fr 100px;
  135. grid-gap: 1px;
  136. }
  137. .grid-task >div>span{
  138. color: #fff;
  139. font-size: 15px;
  140. background-color: rgba(141, 157, 199, 0.5);
  141. padding:5px 5px 2px 10px;
  142. }
  143. .mui-bar{
  144. height:35px
  145. }
  146. .mui-bar-nav{
  147. top: 0;
  148. box-shadow: 0 1px 6px #2e3342;
  149. }
  150. .mui-title {
  151. line-height:35px
  152. }
  153. .mui-bar .mui-icon {
  154. padding-top:5px
  155. }
  156. .mui-bar-nav~.mui-content{
  157. padding-top: 30px;
  158. }
  159. .text-success{
  160. color:#27c24c
  161. }
  162. .mui-bar .mui-btn-link {
  163. line-height: 36px;
  164. }
  165. .mui-col-xs-3{
  166. width: 22%;
  167. }
  168. .mui-input-group{
  169. background-color: rgba(255, 255, 255, 0);
  170. color: #FFFFFF;
  171. }
  172. .mui-content{
  173. background-color: rgba(255, 255, 255, 0);
  174. }
  175. * { touch-action: none; }
  176. </style>
  177. </head>
  178. <body style="background-image: url(img/bg.png);">
  179. <div id="title" style="height: 4%;text-align: center;padding-top: 10px;padding-bottom: 5px;background: url(img/title_bg.png) no-repeat 0 17px;background-size:100%;">
  180. <a style="color: #FFFFFF;font-size: 20px;">华力西曼克</a>
  181. </div>
  182. <div class="mui-content" style="height:auto;min-height: 525px;">
  183. <div class="mui-content-padded" style="margin: 5px;">
  184. <form class="mui-input-group">
  185. <div class="mui-input-row">
  186. <label>IP地址</label>
  187. <input type="text" id="ip" placeholder="请填写IP地址" value="">
  188. </div>
  189. <div class="mui-input-row">
  190. <label>agvID</label>
  191. <input type="text" id="agvid" placeholder="请填写agvID" value="">
  192. </div>
  193. <div class="mui-input-row">
  194. <label>mapID</label>
  195. <input type="text" id="mapid" placeholder="请填写mapID" value="">
  196. </div>
  197. <div class="mui-button-row">
  198. <button id="default" type="button" class="mui-btn mui-btn-default">默认</button>&nbsp;&nbsp;
  199. <button id="confirm" type="button" class="mui-btn mui-btn-primary">确认</button>&nbsp;&nbsp;
  200. <button id="cancel" type="button" class="mui-btn mui-btn-danger">取消</button>
  201. </div>
  202. </form>
  203. </div>
  204. </div>
  205. <div id="stop" style="margin-top: 13px;height: 15px;background: url(img/bottom_bg.png) no-repeat -25px 0;"></div>
  206. </body>
  207. <script src="js/jquery.min.js"></script>
  208. <script src="js/mui.min.js"></script>
  209. <script>
  210. $(function() {
  211. if (localStorage.getItem("ip") != "" || localStorage.getItem("ip") != null) {
  212. $("#ip").val(localStorage.getItem("ip"))
  213. }
  214. if (localStorage.getItem("agvid") != "" || localStorage.getItem("agvid") != null) {
  215. $("#agvid").val(localStorage.getItem("agvid"));
  216. }
  217. if (localStorage.getItem("mapid") != "" || localStorage.getItem("mapid") != null) {
  218. $("#mapid").val(localStorage.getItem("mapid"));
  219. }
  220. })
  221. $("#default").click(function() {
  222. $("#ip").val("192.168.0.200");
  223. $("#agvid").val("1");
  224. $("#mapid").val("2020032608412704");
  225. })
  226. $("#cancel").click(function() {
  227. window.location.href = "index.html";
  228. })
  229. $("#confirm").click(function() {
  230. var ip = $("#ip").val();
  231. var agvid = $("#agvid").val();
  232. var mapid = $("#mapid").val();
  233. if(ip !="" && ip != null){
  234. localStorage.setItem("ip", ip);
  235. }
  236. if(agvid !="" && agvid != null){
  237. localStorage.setItem("agvid", agvid);
  238. }
  239. if(mapid !="" && mapid != null){
  240. localStorage.setItem("mapid", mapid);
  241. }
  242. window.location.href = "index.html";
  243. })
  244. </script>
  245. </html>