Nenhuma Descrição

watchCo.html 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>添加或编辑上班时段</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <script src="../Script/Common/huayi.load.js"></script>
  8. <script src="../Script/Common/huayi.config.js"></script>
  9. <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
  10. <link href="../css/Table/table1.css" rel="stylesheet" />
  11. </head>
  12. <style type="text/css">
  13. .container {
  14. padding-top: 20px;
  15. overflow: hidden !important;
  16. }
  17. .btn {
  18. margin-left: 218px !important;
  19. }
  20. .message_count {
  21. display: inline-block;
  22. position: absolute;
  23. right: 0;
  24. border-radius: 50%;
  25. background: red;
  26. color: #fff;
  27. }
  28. .disnone {
  29. display: none;
  30. }
  31. .main_message {
  32. height: calc(100% - 160px);
  33. padding: 0 10pxchatlist_con;
  34. }
  35. .chat_person {
  36. position: absolute;
  37. width: 100%;
  38. top: 0;
  39. left: 0;
  40. height: 2pc;
  41. line-height: 2pc;
  42. border-bottom: 1px solid #ddd;
  43. background: #fff;
  44. }
  45. .main_message li {
  46. margin-bottom: 15px;
  47. }
  48. .main_message .message_time {
  49. margin: 7px 0;
  50. text-align: center;
  51. }
  52. .main_message .ver_middle {
  53. float: left;
  54. margin: 0 10px 0 0;
  55. border-radius: 3px;
  56. }
  57. .main_message .message_text,
  58. .message_img {
  59. display: inline-block;
  60. position: relative;
  61. padding: 0 10px;
  62. max-width: calc(100% - 40px);
  63. min-height: 30px;
  64. line-height: 2.5;
  65. font-size: 9pt;
  66. text-align: left;
  67. word-break: break-all;
  68. background-color: #fafafa;
  69. border-radius: 4px;
  70. }
  71. .message_img {
  72. background-color: rgba(255, 255, 255, 0);
  73. }
  74. /*.main_message .message_text:before,
  75. .message_img:before {
  76. content: " ";
  77. position: absolute;
  78. top: 9px;
  79. right: 100%;
  80. border: 6px solid transparent;
  81. border-right-color: #fafafa;
  82. }*/
  83. .main_message .self {
  84. text-align: right;
  85. }
  86. .main_message .self .ver_middle {
  87. float: right;
  88. margin: 0 0 0 10px;
  89. }
  90. .main_message .self .message_text {
  91. margin: 10px 0;
  92. /* background-color: #b2e281; */
  93. }
  94. /*.main_message .self .message_text:before,
  95. .message_img:before {
  96. right: inherit;
  97. left: 100%;
  98. border-right-color: transparent;
  99. /* border-left-color: #b2e281; */
  100. }*/
  101. .main_sendMessage {
  102. position: absolute;
  103. width: 100%;
  104. bottom: 0;
  105. left: 0;
  106. height: 10pc;
  107. border-top: 1px solid #ddd;
  108. background: #fff;
  109. }
  110. .main_sendMessage textarea {
  111. padding: 10px;
  112. height: 80%;
  113. width: 100%;
  114. border: none;
  115. outline: 0;
  116. font-family: Micrsofot Yahei;
  117. resize: none;
  118. }
  119. .main_sendMessage .send_btn {
  120. height: 20%;
  121. text-align: right;
  122. color: #4d4d4d;
  123. padding-right: 20px;
  124. margin-top: -10px;
  125. }
  126. .main_sendMessage .send_btn button,
  127. .btns {
  128. border: 1px solid #ccc;
  129. background: #fff;
  130. outline: none;
  131. padding: 3px 15px;
  132. border-radius: 5px;
  133. }
  134. .main_sendMessage .send_btn button:hover {
  135. background: rgb(36, 159, 234);
  136. color: #fff;
  137. }
  138. .titleR,.titleL{
  139. display: inline-block;
  140. width: 45px;
  141. height: 35px;
  142. vertical-align: middle;
  143. line-height: 35px;
  144. text-align: center;
  145. color: #fff;
  146. /*border-radius: 50%;*/
  147. background-color: rgb(36,159,234);
  148. }
  149. .titleR{
  150. margin-left: 10px;
  151. }
  152. .titleL{
  153. margin-right: 10px;
  154. }
  155. .workTimeSetting{
  156. background-color: rgb(238,238,238);
  157. }
  158. </style>
  159. <body class="workTimeSetting">
  160. <div class="container greetings">
  161. <div class="chat_main">
  162. <div class="tabMain">
  163. <div class="name"></div>
  164. <div class="main_message">
  165. <ul class="chatlist_con">
  166. </ul>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <script src="../js/autosize/autosize.min.js"></script>
  172. <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
  173. <script src="../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script>
  174. </body>
  175. <script>
  176. var touserid = helper.request.queryString("touserid");
  177. var userCode = helper.request.queryString("userCode");
  178. GetOnlineservicetinfo()
  179. function GetOnlineservicetinfo() {
  180. $.ajax({
  181. type: "get",
  182. url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/GetOnlineservicetinfo",
  183. async: true,
  184. dataType: 'json',
  185. data: {
  186. fromuserid: userCode,
  187. touserid: touserid
  188. },
  189. success: function(res) {
  190. let str1 = ''
  191. res.data.forEach(function(v, n) {
  192. if(v.fromuserid == userCode) {
  193. if(v.imgurlinfo != null && v.imgurlinfo != '') {
  194. str1 += '<li><p class="message_time "><span>' + v.createtime +
  195. '</span></p><div class="message_mincon self"><div class="message_img "><img onclick="imgEnlarge()" src="' + huayi.config.img_url +
  196. v.imgurlinfo + '"></div><span class="titleR">'+v.fromuserid+'</span></div></li>'
  197. } else {
  198. str1 += '<li><p class="message_time "><span>' + v.createtime +
  199. '</span></p><div class="message_mincon self"><div class="message_text ">' +
  200. v.Msgcontent + '</div><span class="titleR">'+v.fromuserid+'</span></div></li>'
  201. }
  202. } else {
  203. if(v.imgurlinfo != null && v.imgurlinfo != '') {
  204. str1 += '<li><p class="message_time "><span>' + v.createtime +
  205. '</span></p><div class="message_mincon"><span class="titleL">'+v.fromuserid+'</span><div class="message_img"><img onclick="imgEnlarge()" src="' + huayi.config.img_url +
  206. v.imgurlinfo + '"></div></div></li>'
  207. } else {
  208. str1 += '<li><p class="message_time "><span>' + v.createtime +
  209. '</span></p><div class="message_mincon"><span class="titleL">'+v.fromuserid+'</span><div class="message_text ">' +
  210. v.Msgcontent + '</div></div></li>'
  211. }
  212. }
  213. })
  214. $('.chatlist_con').html(str1);
  215. //图片放大
  216. if(flag == 0) {
  217. $('.chatlist_con').scrollTop($('.chatlist_con')[0].scrollHeight);
  218. flag = 1
  219. }
  220. }
  221. });
  222. }
  223. </script>
  224. </html>