personalInfo.html 3.3 KB

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