rubberTyredCar.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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. body,
  13. html {
  14. /*background: #F3F3F3;*/
  15. background: rgba(243, 243, 243, 1);
  16. position: relative;
  17. }
  18. .api_layout {
  19. /*border-top: 1px solid #37b0e9;*/
  20. padding: 13px 10px;
  21. -webkit-box-sizing: border-box;
  22. -moz-box-sizing: border-box;
  23. box-sizing: border-box;
  24. }
  25. /*车辆总数 和地下车辆总数*/
  26. .header_car_number {
  27. color: #fff;
  28. font-size: 16px;
  29. font-weight: 700;
  30. }
  31. .header_car_number ul {
  32. display: flex;
  33. justify-content: space-between;
  34. }
  35. .header_car_number ul li {
  36. border-radius: 10px;
  37. text-align: center;
  38. width: 48%;
  39. padding: 12px 8px;
  40. }
  41. .header_car_number ul li:first-child {
  42. background: rgba(230, 126, 34, 1);
  43. }
  44. .header_car_number ul li:last-child {
  45. background: rgba(39, 174, 96, 1);
  46. }
  47. /*车辆数据列表*/
  48. .car_list {
  49. background: rgba(255, 255, 255, 1);
  50. border-radius: 10px;
  51. margin: 10px 0 10px 0
  52. }
  53. /*头部车辆图片 车牌号 速度等信息*/
  54. .header_container {
  55. display: flex;
  56. justify-content: space-between;
  57. border-bottom: solid 1px #ECF0F1;
  58. }
  59. .header_container_item {
  60. display: flex;
  61. align-items: center;
  62. justify-content: space-between;
  63. padding: 7px 5px 5px 11px;
  64. /*padding: 7px 12px;*/
  65. }
  66. .car_image {
  67. width: 38px;
  68. height: 38px;
  69. }
  70. .registration_number {
  71. padding-left: 9px;
  72. font-size: 16px;
  73. font-weight: 700;
  74. color: rgba(35, 38, 39, 1);
  75. }
  76. .speed_image {
  77. width: 22px;
  78. height: 22px;
  79. }
  80. .speed {
  81. font-weight: bold;
  82. color: rgba(46, 204, 113, 1);
  83. padding-left: 5px;
  84. }
  85. .right_arrow {
  86. width: 12px;
  87. height: 22px;
  88. margin-left: 10px;
  89. display: flex;
  90. align-items: center;
  91. }
  92. /*巷口信息*/
  93. .center_container {
  94. display: flex;
  95. background: rgba(0, 159, 232, 1);
  96. align-items: center;
  97. border-radius: 37px;
  98. margin: 12px;
  99. color: #fff;
  100. }
  101. .center_container ul {
  102. padding: 7px 0 7px 12px;
  103. display: flex;
  104. }
  105. .position_img {
  106. display: flex;
  107. align-items: center;
  108. width: 22px;
  109. height: 22px;
  110. }
  111. /*车辆具体信息*/
  112. .footer_container {
  113. margin: 12px;
  114. }
  115. .footer_container ul {
  116. display: flex;
  117. justify-content: space-between;
  118. }
  119. .footer_container ul:last-child {
  120. padding: 12px 0;
  121. }
  122. .footer_container ul li {
  123. display: flex;
  124. font-size: 14px;
  125. color: rgba(108, 111, 116, 1);
  126. }
  127. /*一键叫车*/
  128. .One_click_call {
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. position: fixed;
  133. bottom: -85%;
  134. left: 0;
  135. right: 0;
  136. top: 0;
  137. margin: auto;
  138. height: 37px;
  139. width: 120px;
  140. padding: 0 12px;
  141. background: rgba(46, 204, 113, 1);
  142. border-radius: 47px;
  143. color: #ffffff;
  144. z-index: 100;
  145. }
  146. .One_click_call_container {
  147. width: 17px;
  148. height: 21px;
  149. }
  150. </style>
  151. </head>
  152. <body>
  153. <div class="api_layout">
  154. <div id="rubberTyredcarContainer">
  155. </div>
  156. </div>
  157. <div class="One_click_call" onclick="Oneclickcall()">
  158. <div class="One_click_call_container"><img src="../../image/Oneclickcall.png" alt=""></div>
  159. <div>一键叫车</div>
  160. </div>
  161. </body>
  162. </html>
  163. <!-- 仓库页面 -->
  164. <script id="rubberTyredcarView" type="text/template">
  165. <div class="header_car_number">
  166. <ul>
  167. <li>
  168. <div>地面总车辆数</div>
  169. <div>{{=it.groundCarCount}}辆</div>
  170. </li>
  171. <li>
  172. <div>井下总车辆数</div>
  173. <div>{{=it.pitCarCount}}辆</div>
  174. </li>
  175. </ul>
  176. </div>
  177. {{ for (var i=0; i
  178. <it.carList.length; i++) { }} <div class="car_list" onclick="openDetails('{{=it.carList[i].CarUserNo}}','{{=it.carList[i].InterzoneNo}}','{{=it.carList[i].Pageid}}')">
  179. <div class="header_container">
  180. <div class="header_container_item">
  181. {{? it.carList[i].CarType == '人车'}}
  182. <div class="car_image"><img src="../../image/ManCar.png" alt=""></div>
  183. {{?? it.carList[i].CarType == '特种车'}}
  184. <div class="car_image"><img src="../../image/SpecialCar.png" alt=""></div>
  185. {{?? it.carList[i].CarType == '防爆指挥车'}}
  186. <div class="car_image"><img src="../../image/ExplosionproofCar.png" alt=""></div>
  187. {{?? it.carList[i].CarType == '货车'}}
  188. <div class="car_image"><img src="../../image/TruckCar.png" alt=""></div>
  189. {{?? it.carList[i].CarType == '低污染皮卡车'}}
  190. <div class="car_image"><img src="../../image/LowpollutionCar.png" alt=""></div>
  191. {{?}}
  192. <div class="registration_number">{{=it.carList[i].CarUserNo}}</div>
  193. </div>
  194. <div class="header_container_item">
  195. <div class="speed_image"><img src="../../image/speed.png" alt=""></div>
  196. <div class="speed">{{=it.carList[i].AvgSpeed}}km/h</div>
  197. <div class="right_arrow"><img src="../../image/more.png" alt=""></div>
  198. </div>
  199. </div>
  200. <div class="center_container">
  201. <ul>
  202. <li class="position_img"><img src="../../image/position.png" alt=""></li>
  203. <li class="alley_name">{{=it.carList[i].InterzoneName}}</li>
  204. </ul>
  205. </div>
  206. <div class="footer_container">
  207. <ul>
  208. <li>
  209. <div>车辆型号:</div>
  210. <div> {{=it.carList[i].CarModel}} </div>
  211. </li>
  212. <li>
  213. <div>设备类型:</div>
  214. <div>{{=it.carList[i].DeviceType}}</div>
  215. </li>
  216. </ul>
  217. <ul>
  218. <li>
  219. <div>车辆类型:</div>
  220. <div>{{=it.carList[i].CarType}}</div>
  221. </li>
  222. <li>
  223. <div>平均速度:</div>
  224. <div>{{=it.carList[i].AvgSpeed}}</div>
  225. </li>
  226. </ul>
  227. </div>
  228. </div>
  229. {{ } }}
  230. </script>
  231. <script type="text/javascript" src="../../script/api.js"></script>
  232. <script src="../../script/doT.min.js" charset="utf-8"></script>
  233. <script src="../../script/config.js" charset="utf-8"></script>
  234. <script type="text/javascript">
  235. </script>
  236. <script>
  237. var toast = new auiToast();
  238. apiready = function() {
  239. getrubberTyredCarList()
  240. }
  241. function getrubberTyredCarList() {
  242. $http.fnReuestDataNologing(UrlRouter.rubberTyredCarList, '', 'get', '', function(ret, err) {
  243. // console.log(JSON.stringify());
  244. if (ret.code == 0) {
  245. $apis.html(rubberTyredcarContainer, '#rubberTyredcarView', ret.data);
  246. }
  247. })
  248. }
  249. function openDetails(CarUserNo, InterzoneNo,Pageid) {
  250. const pageParams = {
  251. CarUserNo: CarUserNo,
  252. InterzoneNo: InterzoneNo,
  253. Pageid: Pageid
  254. }
  255. $event.openTabLayout('rubberTypedCarDetails', '../productionData/rubberTypedCarDetails', CarUserNo, pageParams);
  256. }
  257. function Oneclickcall() {
  258. api.call({
  259. type: 'tel_prompt',
  260. number: '8811'
  261. });
  262. }
  263. </script>