| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>添加或编辑上班时段</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="../Script/Common/huayi.load.js"></script>
- <script src="../Script/Common/huayi.config.js"></script>
- <link href="../js/bootstrap-select/css/bootstrap-select.css" rel="stylesheet" />
- <link href="../css/Table/table1.css" rel="stylesheet" />
- </head>
- <style type="text/css">
- .container {
- padding-top: 20px;
- overflow: hidden !important;
- }
-
- .btn {
- margin-left: 218px !important;
- }
-
- .message_count {
- display: inline-block;
- position: absolute;
- right: 0;
- border-radius: 50%;
- background: red;
- color: #fff;
- }
-
- .disnone {
- display: none;
- }
-
- .main_message {
- height: calc(100% - 160px);
- padding: 0 10pxchatlist_con;
- }
-
- .chat_person {
- position: absolute;
- width: 100%;
- top: 0;
- left: 0;
- height: 2pc;
- line-height: 2pc;
- border-bottom: 1px solid #ddd;
- background: #fff;
- }
-
- .main_message li {
- margin-bottom: 15px;
- }
-
- .main_message .message_time {
- margin: 7px 0;
- text-align: center;
- }
-
- .main_message .ver_middle {
- float: left;
- margin: 0 10px 0 0;
- border-radius: 3px;
- }
-
- .main_message .message_text,
- .message_img {
- display: inline-block;
- position: relative;
- padding: 0 10px;
- max-width: calc(100% - 40px);
- min-height: 30px;
- line-height: 2.5;
- font-size: 9pt;
- text-align: left;
- word-break: break-all;
- background-color: #fafafa;
- border-radius: 4px;
- }
-
- .message_img {
- background-color: rgba(255, 255, 255, 0);
- }
-
- /*.main_message .message_text:before,
- .message_img:before {
- content: " ";
- position: absolute;
- top: 9px;
- right: 100%;
- border: 6px solid transparent;
- border-right-color: #fafafa;
- }*/
-
- .main_message .self {
- text-align: right;
- }
-
- .main_message .self .ver_middle {
- float: right;
- margin: 0 0 0 10px;
- }
-
- .main_message .self .message_text {
- margin: 10px 0;
- /* background-color: #b2e281; */
- }
-
- /*.main_message .self .message_text:before,
- .message_img:before {
- right: inherit;
- left: 100%;
- border-right-color: transparent;
- /* border-left-color: #b2e281; */
- }*/
-
- .main_sendMessage {
- position: absolute;
- width: 100%;
- bottom: 0;
- left: 0;
- height: 10pc;
- border-top: 1px solid #ddd;
- background: #fff;
- }
-
- .main_sendMessage textarea {
- padding: 10px;
- height: 80%;
- width: 100%;
- border: none;
- outline: 0;
- font-family: Micrsofot Yahei;
- resize: none;
- }
-
- .main_sendMessage .send_btn {
- height: 20%;
- text-align: right;
- color: #4d4d4d;
- padding-right: 20px;
- margin-top: -10px;
- }
-
- .main_sendMessage .send_btn button,
- .btns {
- border: 1px solid #ccc;
- background: #fff;
- outline: none;
- padding: 3px 15px;
- border-radius: 5px;
- }
-
- .main_sendMessage .send_btn button:hover {
- background: rgb(36, 159, 234);
- color: #fff;
- }
- .titleR,.titleL{
- display: inline-block;
- width: 45px;
- height: 35px;
- vertical-align: middle;
- line-height: 35px;
- text-align: center;
- color: #fff;
- /*border-radius: 50%;*/
- background-color: rgb(36,159,234);
- }
- .titleR{
- margin-left: 10px;
- }
- .titleL{
- margin-right: 10px;
- }
- .workTimeSetting{
- background-color: rgb(238,238,238);
- }
- </style>
- <body class="workTimeSetting">
- <div class="container greetings">
- <div class="chat_main">
- <div class="tabMain">
- <div class="name"></div>
- <div class="main_message">
- <ul class="chatlist_con">
- </ul>
- </div>
- </div>
- </div>
- </div>
- <script src="../js/autosize/autosize.min.js"></script>
- <script src="../js/bootstrap-select/js/bootstrap-select.js"></script>
- <script src="../js/bootstrap-select/js/i18n/defaults-zh_CN.js"></script>
- </body>
- <script>
- var touserid = helper.request.queryString("touserid");
- var userCode = helper.request.queryString("userCode");
- GetOnlineservicetinfo()
- function GetOnlineservicetinfo() {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "testusertypeapi/api/TestUserType/GetOnlineservicetinfo",
- async: true,
- dataType: 'json',
- data: {
- fromuserid: userCode,
- touserid: touserid
- },
- success: function(res) {
- let str1 = ''
- res.data.forEach(function(v, n) {
- if(v.fromuserid == userCode) {
- if(v.imgurlinfo != null && v.imgurlinfo != '') {
- str1 += '<li><p class="message_time "><span>' + v.createtime +
- '</span></p><div class="message_mincon self"><div class="message_img "><img onclick="imgEnlarge()" src="' + huayi.config.img_url +
- v.imgurlinfo + '"></div><span class="titleR">'+v.fromuserid+'</span></div></li>'
- } else {
- str1 += '<li><p class="message_time "><span>' + v.createtime +
- '</span></p><div class="message_mincon self"><div class="message_text ">' +
- v.Msgcontent + '</div><span class="titleR">'+v.fromuserid+'</span></div></li>'
- }
- } else {
- if(v.imgurlinfo != null && v.imgurlinfo != '') {
- str1 += '<li><p class="message_time "><span>' + v.createtime +
- '</span></p><div class="message_mincon"><span class="titleL">'+v.fromuserid+'</span><div class="message_img"><img onclick="imgEnlarge()" src="' + huayi.config.img_url +
- v.imgurlinfo + '"></div></div></li>'
- } else {
- str1 += '<li><p class="message_time "><span>' + v.createtime +
- '</span></p><div class="message_mincon"><span class="titleL">'+v.fromuserid+'</span><div class="message_text ">' +
- v.Msgcontent + '</div></div></li>'
- }
- }
- })
- $('.chatlist_con').html(str1);
- //图片放大
- if(flag == 0) {
- $('.chatlist_con').scrollTop($('.chatlist_con')[0].scrollHeight);
- flag = 1
- }
- }
- });
- }
- </script>
- </html>
|