chat.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <html>
  2. <head>
  3. <title>whisper客服客户端</title>
  4. <meta charset="utf-8"/>
  5. <link href="/static/customer/css/whisper.css" rel="stylesheet" type="text/css" />
  6. <link href="/static/service/js/layui/css/layui.css" rel="stylesheet" type="text/css"/>
  7. </head>
  8. <body>
  9. <div class="small-chat-box fadeInRight animated">
  10. <div class="heading" draggable="true">
  11. <small class="chat-date pull-right">
  12. <a href="http://whisper.baiyf.com" target="_blank">whisper客服</a>
  13. </small>
  14. <span id="title">与 客服 交流中</span>
  15. </div>
  16. <div class="slimScrollDiv" style="position: relative; width: auto; height: 60%;" id="chat-content-box">
  17. <div class="content" style="width: auto; height: 92%;overflow: auto" id="chat-list">
  18. </div>
  19. </div>
  20. <div class="bar">
  21. <div style="padding-left:15px;cursor:pointer;width:100px">
  22. <i class="layui-icon" style="font-size: 30px;" id="up-face">&#xe60c;</i> &nbsp;
  23. <i class="layui-icon" style="font-size: 30px;" id="up-image">&#xe60d;</i>
  24. </div>
  25. </div>
  26. <div class="form-chat">
  27. <textarea class="form-control chat-area" id="msg" style="width: 100%;height: 100px;resize: none"></textarea>
  28. <div class="input-group" style="margin-top: 5px;width: 100%">
  29. <span class="input-group-btn" style="float: right;">
  30. <button class="btn btn-primary" type="button" id="send">发送</button>
  31. <button class="btn btn-primary" type="button" onclick="aa()">机器人</button>
  32. </span>
  33. </div>
  34. <button class="btn btn-primary" type="button" onclick="bb()">凭据</button>
  35. </div>
  36. <div class="face-box" style="display:none" id="face-box">
  37. </div>
  38. </div>
  39. <script>
  40. var config = {
  41. uid: '{$id}',
  42. name: '{$name}',
  43. avatar: '{$avatar}',
  44. group: '{$group}',
  45. socket: '{$socket}'
  46. };
  47. </script>
  48. <script src="/static/service/js/layui/layui.js"></script>
  49. <script src="/static/service/js/functions.js"></script>
  50. <script src="/static/customer/js/whisper-cli.js"></script>
  51. </body>
  52. </html>