暂无描述

workOrdeListr.html 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  8. <link rel="stylesheet" href="../layui/css/layui.mobile.css" />
  9. <link href="../css/mui.min.css" rel="stylesheet" />
  10. <link href="../css/mui.picker.css" rel="stylesheet" />
  11. <link href="../css/mui.poppicker.css" rel="stylesheet" />
  12. <!-- <link href="../css/feedback-page.css" rel="stylesheet" /> -->
  13. <link rel="stylesheet" href="../css/iconfont.css" />
  14. <link rel="stylesheet" href="../css/inits.css" />
  15. <title>工单列表</title>
  16. <style>
  17. .mui-card-content{
  18. font-size: 14px;
  19. position: relative;
  20. padding: 5px 14px;
  21. }
  22. .detail{
  23. float: right;
  24. color: #1ba3c9;
  25. }
  26. .tittle{
  27. padding-bottom: 5px;
  28. border-bottom: 1px solid #ececec;
  29. }
  30. .content{
  31. display: -webkit-box;
  32. -webkit-box-orient: vertical;
  33. -webkit-line-clamp: 2;
  34. overflow: hidden;
  35. /* width: 200px;
  36. white-space: nowrap;
  37. text-overflow: ellipsis;
  38. overflow: hidden; */
  39. margin-top: 5px;
  40. line-height: 25px;
  41. color: #7f7f7f;
  42. }
  43. .sq{
  44. width: 60px;
  45. height: 60px;
  46. padding: 7px;
  47. line-height: 42px;
  48. text-align: center;
  49. background-color: #1ba3c9;
  50. background-clip: content-box;
  51. border-radius: 50%;
  52. color: #fff;
  53. }
  54. .btnBack{
  55. background-color: #fff;
  56. border-radius: 50%;
  57. width: 60px;
  58. height: 60px;
  59. position: fixed;
  60. bottom: 20px;
  61. right: 20px;
  62. box-shadow: 0px 0px 8px 4px #dfdfdf;
  63. }
  64. </style>
  65. </head>
  66. <body>
  67. <!-- <header class="mui-bar mui-bar-nav">
  68. <h1 class="mui-title">工单列表</h1>
  69. </header> -->
  70. <div class="mui-content">
  71. </div>
  72. <div class="btnBack">
  73. <div class="sq">退出</div>
  74. </div>
  75. <script src="../js/jquery.min.js"></script>
  76. <script src="../js/mui.min.js"></script>
  77. <script src="../js/mui.picker.js"></script>
  78. <script src="../js/mui.poppicker.js"></script>
  79. <script src="../layui/layui.js"></script>
  80. <script src="../js/zepto.js"></script>
  81. <!-- <script src="../js/feedback-page.js"></script> -->
  82. <script src="../Script/Common/huayi.config.js"></script>
  83. <script src="../Script/Common/huayi.http.js"></script>
  84. <script>
  85. // var openid = 'obwtK6JT-bTCeSbtqu4lkw4lIz0o'
  86. var openid = helper.cookies.get("openid");
  87. // if (!openid) {
  88. // window.location.replace("../html/error.html");
  89. // }
  90. var tell = localStorage.getItem('tell');
  91. workOrderList()
  92. function workOrderList(){
  93. if (!tell || tell.length !== 11) {
  94. return;
  95. }
  96. $.ajax({
  97. type: "get",
  98. url: huayi.config.callcenter_url + '/APP/GetList',
  99. dataType: 'json',
  100. async: false,
  101. data: {
  102. tel:tell,
  103. page:1,
  104. pagesize:10000,
  105. source: 5
  106. },
  107. success: function(res) {
  108. let str = ''
  109. res.rows.forEach(function(v,n){
  110. let num=01;
  111. if(n<10 && n>=0){
  112. num = '0'+(n+1)
  113. }else{
  114. num = n
  115. }
  116. str += '<div class="mui-card"><div class="mui-card-content"><div class="tittle"><span class="orderTittle"><span>'+num+'</span> '+v.F_ComTitle+'</span>'+
  117. '<span class="detail" onclick="btn_detail(\'' + v.F_WorkOrderId +'\')">详情</span></div><div class="content">'+v.F_ComContent+'</div></div></div>'
  118. })
  119. $('.mui-content').html(str)
  120. }
  121. });
  122. }
  123. $('.sq').click(function(){
  124. window.location.replace("../html/login.html");
  125. })
  126. function btn_detail(id){
  127. console.log(decodeURI(id))
  128. window.location.replace("../html/workOrderDetail.html?id="+id+'&tel='+tell);
  129. }
  130. </script>
  131. </body>
  132. </html>