search2_frameDetails3.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  7. <title></title>
  8. <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
  9. <link rel="stylesheet" type="text/css" href="../../css/aui.css"/>
  10. <link rel="stylesheet" href="../../css/projeck.css">
  11. <style>
  12. @media screen and (-webkit-min-device-pixel-ratio:1.5) {
  13. .aui-list{
  14. background-image:none!important;
  15. }
  16. }
  17. .aui-list.aui-list-in .aui-list-item{
  18. background-size:93% 1px;
  19. }
  20. .aui-list.aui-list-in .aui-list-item:last-child{
  21. background-position:0.75rem bottom;
  22. }
  23. .api_layout .aui-list .aui-list-item{
  24. height: auto;
  25. line-height: normal;
  26. }
  27. .api_layout .aui-list .aui-list-item-inner{
  28. height: auto;
  29. line-height: normal;
  30. padding-top: 10px;
  31. padding-bottom: 10px;
  32. display: block;
  33. }
  34. .aui-list-item-arrow:before{
  35. border: none;
  36. }
  37. .aui-list-item-inner.aui-list-item-arrow{
  38. padding-right: 0.75rem;
  39. }
  40. .col_ p{
  41. font-size: 15px;
  42. color: #121212;
  43. width: 100%;
  44. display: -webkit-flex;
  45. display: flex;
  46. justify-content: space-between;
  47. -webkit-justify-content: space-between;
  48. flex-wrap: nowrap;
  49. -webkit-flex-wrap: nowrap;
  50. align-items: center;
  51. -webkit-align-items: center;
  52. overflow: hidden;
  53. text-overflow: ellipsis;
  54. white-space: nowrap;
  55. margin-bottom: 10px;
  56. }
  57. .col_ p span:last-child{
  58. font-size: 14px;
  59. color: #6C6F74;
  60. }
  61. .col_ p span:first-child{
  62. width: 72%;
  63. overflow: hidden;
  64. text-overflow: ellipsis;
  65. white-space: nowrap;
  66. }
  67. .personal_centerInfo img{
  68. width: 50px;
  69. height: 50px;
  70. margin-right: 10px;
  71. border: 1px solid #f2f2f2;
  72. border-radius: 50%;
  73. }
  74. .personal_center span{
  75. display: block;
  76. }
  77. .personal_center span:first-child{
  78. font-size: 16px;
  79. }
  80. .personal_center span:last-child{
  81. font-size: 15px;
  82. color: #a7a5bb;
  83. }
  84. .personal_centerInfo{
  85. padding: 10px 0 10px 0.75rem ;
  86. background: #fff;
  87. }
  88. .spanInfo{
  89. display: block;
  90. font-size: 14px;
  91. color: #6C6F74;
  92. margin-bottom: 5px;
  93. }
  94. .spanInfo:last-child{
  95. margin-bottom: 0;
  96. }
  97. .title_{
  98. background: #fff;
  99. padding: 5px 0.75rem;
  100. display: -webkit-flex;
  101. display: flex;
  102. justify-content: flex-start;
  103. -webkit-justify-content: flex-start;
  104. flex-wrap: nowrap;
  105. -webkit-flex-wrap: nowrap;
  106. align-items: center;
  107. -webkit-align-items: center;
  108. background-size: 92% 1px;
  109. background-repeat: no-repeat;
  110. background-position: 0.75rem bottom;
  111. background-image: linear-gradient(0,#dddddd,#dddddd 50%,transparent 50%);
  112. background-image: -webkit-linear-gradient(90deg,#dddddd,#dddddd 50%,transparent 50%);
  113. }
  114. .title_ p{
  115. font-size: 17px;
  116. color: #000;
  117. }
  118. .title_ span{
  119. width: 4px;
  120. height: 40px;
  121. background: #009fe8;
  122. margin-right: 10px;
  123. }
  124. </style>
  125. </head>
  126. <body>
  127. <div class="api_layout" id="api_layout">
  128. <div>
  129. <div class="title_">
  130. <span></span>
  131. <p id="titles_"></p>
  132. </div>
  133. <ul class="aui-list aui-list-in" id="dataContent"></ul>
  134. </div>
  135. </div>
  136. <div class="noText hide">
  137. <img src="../../image/noText.png" alt="">
  138. </div>
  139. </body>
  140. </html>
  141. <script type="text/template" id="templateQrcode">
  142. {{~it:value}}
  143. <li class="aui-list-item col_" onclick="openDetails3('{{=value.eName}}','{{=value.oid}}','{{=value.oName}}','','{{=value.eSite}}','{{=value.did}}')">
  144. <div class="aui-list-item-inner aui-list-item-arrow">
  145. <p>
  146. <span>{{=value.eName}}</span>
  147. <span>数量:{{=value.eNum}}</span>
  148. </p>
  149. <span class="spanInfo">单位:{{=value.units}}</span>
  150. <span class="spanInfo">型号:{{=value.types}}</span>
  151. <span class="spanInfo">使用地点:{{=value.eSite}}</span>
  152. </div>
  153. </li>
  154. {{~}}
  155. </script>
  156. <script type="text/javascript" src="../../script/api.js"></script>
  157. <!-- <script src="../../script/aui-toast.js" charset="utf-8"></script> -->
  158. <!-- <script src="../../script/fastclick.min.js" charset="utf-8"></script> -->
  159. <script src="../../script/doT.min.js" charset="utf-8"></script>
  160. <script src="../../script/config.js" charset="utf-8"></script>
  161. <script type="text/javascript">
  162. var toast = new auiToast();
  163. apiready = function () {
  164. detaileFun($api.getStorage('monitorValue3'))
  165. };
  166. function detaileFun(monitorValue) {
  167. toast.loading({
  168. title: "加载中",
  169. duration: 2000
  170. });
  171. api.ajax({
  172. url: "http://nxjiewei.com/colliery-system/api/page/v1/caBySiteList.html?title="+JSON.parse(monitorValue).title+"&types="+JSON.parse(monitorValue).types+"&oid="+JSON.parse(monitorValue).oid+"&did="+JSON.parse(monitorValue).did+"&pageNumber=0&pageSize=20",
  173. method: 'get',
  174. },function(ret, err){
  175. toast.hide();
  176. if (ret && ret.code == 200) {
  177. document.getElementById('titles_').innerHTML = JSON.parse(monitorValue).title +">"+ JSON.parse(monitorValue).dep
  178. if (ret.content.data != "") {
  179. $apis.html(dataContent,'#templateQrcode',ret.content.data);
  180. $api.addCls($api.dom('.noText'), 'hide')
  181. }else {
  182. $apis.html(dataContent,'#templateQrcode',ret.content.data)
  183. $api.removeCls($api.dom('.noText'), 'hide')
  184. }
  185. }else {
  186. api.toast({
  187. msg: '加载超时,请检查网络',
  188. duration: 2000,
  189. location: 'bottom'
  190. });
  191. }
  192. });
  193. }
  194. function openDetails3(t,id,deps,type,Site,ids) {
  195. var objs = {title:t,oid:id,dep:deps,types:type,useSite:Site,did:ids};
  196. $api.setStorage('monitorValue4',JSON.stringify(objs));
  197. $event.openTabLayout('search2_frameDetails4','search2_frameDetails4','智慧矿山')
  198. }
  199. </script>