personalInfo.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
  6. <title>title</title>
  7. <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
  8. <link rel="stylesheet" href="../../css/projeck.css">
  9. <style>
  10. html,body{
  11. background: transparent;
  12. -webkit-touch-callout: none;
  13. font-family: Tahoma, Geneva, sans-serif;
  14. font-style: normal;
  15. margin: 0;
  16. }
  17. #dialog{
  18. background-color: #fff;
  19. position: absolute; margin: auto;
  20. left: 0; right: 0; top: -150px; bottom: 0;
  21. width: 301px; height: 245px;
  22. opacity: 0;
  23. box-sizing: border-box;
  24. -webkit-border-radius: 5px;
  25. border-radius: 5px;
  26. }
  27. #dialog.in{
  28. opacity: 1;
  29. }
  30. .close{
  31. position: absolute;
  32. top: 4px;
  33. right: 9px;
  34. width: 30px;
  35. height: 30px;
  36. background: url("../../image/close.png") no-repeat;
  37. background-size: cover;
  38. background-position: center;
  39. border-radius: 50%;
  40. z-index: 100;
  41. }
  42. .title_personnal{
  43. height: 39px;
  44. line-height: 39px;
  45. font-size: 14px;
  46. color: #232627;
  47. position: relative;
  48. }
  49. .title_personnal:after{
  50. content: "";
  51. position: absolute;
  52. bottom: 0;
  53. left: 0;
  54. width: 100%;
  55. height: 1px;
  56. background: #f3f3f3;
  57. }
  58. .title_personnal:last-child:after{
  59. height: 0;
  60. }
  61. .itmes li{
  62. padding: 0 13px;
  63. }
  64. </style>
  65. </head>
  66. <body>
  67. <div id="dialog">
  68. <p class="title_personnal" style="padding: 0 13px">定位信息</p>
  69. <ul class="itmes">
  70. <li class="flex-space title_personnal">
  71. <p>姓名:</p>
  72. <p class="name"></p>
  73. </li>
  74. <li class="flex-space title_personnal">
  75. <p>所属区队:</p>
  76. <p class="dep"></p>
  77. </li>
  78. <li class="flex-space title_personnal">
  79. <p>下井时间:</p>
  80. <p class="time"></p>
  81. </li>
  82. <li class="flex-space title_personnal">
  83. <p>当前位置:</p>
  84. <p class="position"></p>
  85. </li>
  86. <li class="flex-space title_personnal">
  87. <p>班次:</p>
  88. <p class="Shifts"></p>
  89. </li>
  90. </ul>
  91. <span class="close" onclick="api.closeFrame()"></span>
  92. </div>
  93. </body>
  94. <script type="text/javascript" src="../../script/api.js"></script>
  95. <script type="text/javascript" src="../../script/config.js"></script>
  96. <script type="text/javascript">
  97. $api.addCls(dialog,'in');
  98. apiready = function(){
  99. $http.fnReuestDataNologing(UrlRouter.peopleInfo,'','post',{people_id:api.pageParam.id},function (ret,err) {
  100. if (ret && ret.code === 0) {
  101. $api.html($api.dom('.name'), ret.data.name);
  102. $api.html($api.dom('.dep'), ret.data.depart_name);
  103. $api.html($api.dom('.time'), ret.data.down_time);
  104. $api.html($api.dom('.position'), ret.data.station_name);
  105. $api.html($api.dom('.Shifts'), ret.data.classes);
  106. }
  107. });
  108. };
  109. </script>
  110. </html>