message.blade.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. <link type="text/css" rel="stylesheet" href="/css/font/iconfont.css">
  2. <style>
  3. .content-wrapper{
  4. display: flex;
  5. flex: 1;
  6. }
  7. #app{
  8. display: flex;
  9. flex-direction: column;
  10. flex: 1;
  11. }
  12. .content{
  13. display: flex;
  14. flex: 1;
  15. margin: 0;
  16. padding: 15px;
  17. }
  18. .chat_iframe{
  19. display: flex;
  20. flex-direction: column;
  21. flex: 1;
  22. background-color: #FFFFFF;
  23. border-radius:5px;
  24. box-shadow:0 1px 3px rgba(33,33,33,.2);
  25. }
  26. .chat_iframe .top{
  27. display: flex;
  28. flex-direction: row;
  29. justify-content: space-between;
  30. align-items: center;
  31. background: #f96332;
  32. background:-webkit-linear-gradient(45deg,#ff8c44,#f96332);
  33. color:#fff;
  34. height:50px;
  35. border-radius:5px 5px 0 0;
  36. padding:0 15px;
  37. }
  38. .top .image{background:url(/images/people-ico19.png) no-repeat; width:28px; height: 28px; margin-right:5px; display: inline-block; vertical-align: -7px;}
  39. .top_left em{
  40. font-size: 16px;
  41. font-weight: bold;
  42. }
  43. .top_left span{
  44. font-size: 14px;
  45. }
  46. .chat_iframe .down{
  47. display: flex;
  48. flex-direction: row;
  49. flex: 1;
  50. }
  51. .down .nav{
  52. display: flex;
  53. flex-direction: column;
  54. width:80px;
  55. background:#292928;
  56. border-radius:0 0 0 5px;
  57. color: #999;
  58. }
  59. .nav .li{
  60. display: flex;
  61. flex-direction: column;
  62. justify-content: center;
  63. align-items: center;
  64. padding: 15px 0;
  65. font-size: 12px;
  66. position: relative;
  67. }
  68. .nav .li i{
  69. left: 50%;
  70. top: 8px;
  71. font-size: 12px;
  72. display: block;
  73. font-style: normal;
  74. line-height: 19px;
  75. min-width: 20px;
  76. height: 20px;
  77. border-radius: 20px;
  78. background: #ff3b30;
  79. position: absolute;
  80. color: #fff;
  81. padding: 0 5px;
  82. box-sizing: border-box;
  83. text-align: center;
  84. }
  85. .down .nav .icon1{
  86. width: 25px;
  87. height: 25px;
  88. background: url(/images/people-ico1.png) 0 0 no-repeat;
  89. background-size: 100%;
  90. }
  91. .down .nav .hover{
  92. color: #ff8c44;
  93. }
  94. .down .nav .hover .icon1{
  95. background: url(/images/people-ico4.png) 0 0 no-repeat;
  96. background-size: 100%;
  97. }
  98. .down .nav .icon2{
  99. width: 25px;
  100. height: 25px;
  101. background: url(/images/people-ico2.png) 0 0 no-repeat;
  102. background-size: 100%;
  103. }
  104. .down .nav .hover .icon2{
  105. background: url(/images/people-ico5.png) 0 0 no-repeat;
  106. background-size: 100%;
  107. }
  108. .down .nav .icon3{
  109. width: 25px;
  110. height: 25px;
  111. background: url(/images/people-ico3.png) 0 0 no-repeat;
  112. background-size: 100%;
  113. }
  114. .down .nav .hover .icon3{
  115. background: url(/images/people-ico6.png) 0 0 no-repeat;
  116. background-size: 100%;
  117. }
  118. .down .nav .icon4{
  119. width: 25px;
  120. height: 25px;
  121. background: url(/images/people-ico24.png) 0 0 no-repeat;
  122. background-size: 100%;
  123. }
  124. .down .nav .hover .icon4{
  125. background: url(/images/people-ico25.png) 0 0 no-repeat;
  126. background-size: 100%;
  127. }
  128. .down .nav .icon5{
  129. width: 25px;
  130. height: 25px;
  131. background: url(/images/people-ico22.png) 0 0 no-repeat;
  132. background-size: 100%;
  133. }
  134. .down .nav_content{
  135. display: flex;
  136. flex-direction: row;
  137. flex: 1;
  138. }
  139. .nav_content .my{
  140. display: flex;
  141. flex-direction: row;
  142. flex: 1;
  143. overflow: hidden;
  144. }
  145. .my .users{
  146. display: flex;
  147. flex-direction: column;
  148. width: 240px;
  149. max-height: 484px;
  150. overflow: hidden;
  151. }
  152. .my .users ul{
  153. overflow-y: auto;
  154. }
  155. .users li{
  156. display: flex;
  157. border-bottom: #eee solid 1px;
  158. overflow: hidden;
  159. padding: 10px 15px;
  160. cursor: default;
  161. position: relative;
  162. -webkit-transition: all .3s;
  163. }
  164. .users li.hover{
  165. background-color: #fffdf2;
  166. }
  167. .users li .news-number{
  168. left: 45px;
  169. top: 10px;
  170. font-size: 12px;
  171. display: block;
  172. font-style: normal;
  173. line-height: 19px;
  174. min-width: 20px;
  175. height: 20px;
  176. border-radius: 20px;
  177. background: #ff3b30;
  178. position: absolute;
  179. color: #fff;
  180. padding: 0 5px;
  181. box-sizing: border-box;
  182. text-align: center;
  183. }
  184. .users li .li_left{
  185. display: flex;
  186. align-items: center;
  187. width: 50px;
  188. }
  189. .users li .li_left img{
  190. width: 50px;
  191. height: 50px;
  192. border-radius:100%;
  193. }
  194. .users li .li_right{
  195. display: flex;
  196. flex-direction: column;
  197. flex: 1;
  198. margin-left: 12px;
  199. }
  200. .users li .li_right i{
  201. font-size: 12px;
  202. padding: 3px 0;
  203. }
  204. .users li .li_right .li_right_name{
  205. display: flex;
  206. flex-direction: row;
  207. justify-content: space-between;
  208. }
  209. .users li .li_right .li_right_name em{
  210. padding-left: 17px;
  211. background: url(/images/people-ico11.png) left 3px no-repeat;
  212. color: #cccccc;
  213. }
  214. .users li .li_right .li_right_name i{
  215. font-size: 14px;
  216. display: flex;
  217. flex-direction: row;
  218. justify-content: space-between;
  219. align-items: center;
  220. }
  221. .my .info{
  222. display: flex;
  223. flex-direction: column;
  224. flex: 1;
  225. border-left: #eef1f5 solid 1px;
  226. }
  227. .my .info .info_top{
  228. display: flex;
  229. border-bottom: #eee solid 1px;
  230. line-height: 49px;
  231. padding: 0 15px;
  232. flex-direction: row;
  233. justify-content: space-between;
  234. }
  235. .my .info .info_down{
  236. display: flex;
  237. flex: 1;
  238. }
  239. .my .info .info_down_left{
  240. font-size: 18px;
  241. }
  242. .my .info .info_down_left em{
  243. color: #eef1f5;
  244. margin-left: 10px;
  245. }
  246. .my .info .info_down_right{
  247. }
  248. .my .info .info_down .message{
  249. display: flex;
  250. flex-direction: column;
  251. width: 60%;
  252. }
  253. .dialog {
  254. box-shadow: #eef1f5 0 0 10px inset;
  255. padding: 0 20px 10px 20px;
  256. background: #f5fffa;
  257. height: 60%;
  258. max-height: 242px;
  259. display: flex;
  260. flex-direction: column;
  261. overflow-y: auto;
  262. }
  263. .dialog .time{
  264. padding: 15px 0;
  265. text-align: center;
  266. }
  267. .chat_l {
  268. display: -webkit-flex;
  269. display: flex;
  270. margin-bottom: 15px;
  271. }
  272. .chat_l .img img, .chat_r .img img {
  273. width: 50px;
  274. height: 50px;
  275. border-radius: 50px;
  276. display: block;
  277. }
  278. .chat_l .txt {
  279. margin-left: 20px;
  280. padding-right: 160px;
  281. padding-top: 5px;
  282. display: flex;
  283. flex-direction: column;
  284. }
  285. .chat_l .nr {
  286. background: #f3f3f3;
  287. }
  288. .dialog .nr {
  289. display: flex;
  290. flex-direction: row;
  291. padding: 10px 15px;
  292. position: relative;
  293. border-radius: 5px;
  294. }
  295. .chat_l .nr:before {
  296. content: '';
  297. position: absolute;
  298. width: 10px;
  299. height: 10px;
  300. background: #f3f3f3;
  301. left: -4px;
  302. top: 16px;
  303. -webkit-transform: rotate(45deg);
  304. transform: rotate(45deg);
  305. }
  306. .chat_r {
  307. display: -webkit-flex;
  308. display: flex;
  309. -webkit-flex-direction: row-reverse;
  310. flex-direction: row-reverse;
  311. margin-bottom: 15px;
  312. }
  313. .chat_r .txt {
  314. margin-right: 20px;
  315. -webkit-box-pack: end;
  316. box-pack: end;
  317. padding-left: 70px;
  318. }
  319. .chat_r .nr {
  320. background: #ffebc6;
  321. }
  322. .dialog .nr {
  323. padding: 10px 15px;
  324. position: relative;
  325. border-radius: 5px;
  326. display: inline-block;
  327. word-wrap: break-word;
  328. white-space: normal;
  329. word-break: break-all;
  330. }
  331. .chat_r .nr:before {
  332. content: '';
  333. position: absolute;
  334. width: 10px;
  335. height: 10px;
  336. background: #ffebc6;
  337. right: -4px;
  338. top: 16px;
  339. -webkit-transform: rotate(45deg);
  340. transform: rotate(45deg);
  341. }
  342. .dialog-text {
  343. border-top: #eef1f5 solid 1px;
  344. padding: 20px;
  345. height: 40%;
  346. display: flex;
  347. flex-direction: column;
  348. }
  349. .dialog-text_top {
  350. margin-bottom: 5px;
  351. display: flex;
  352. flex-direction: row;
  353. }
  354. .dialog-text_top li {
  355. height: 25px;
  356. font-size: 18px;
  357. line-height: 25px;
  358. cursor: pointer;
  359. text-align: center;
  360. margin-right: 10px;
  361. }
  362. .dialog-text textarea {
  363. resize: none;
  364. height: 80px;
  365. outline: none;
  366. border: 0;
  367. margin: 0;
  368. margin-bottom: 5px;
  369. display: block;
  370. width: 100%;
  371. font-size: 14px;
  372. padding: 0;
  373. }
  374. .dialog-text .bottom {
  375. display: flex;
  376. flex-direction: row;
  377. flex: 1;
  378. height: 37px;
  379. justify-content: flex-end;
  380. }
  381. .am-btn-success {
  382. color: #fff;
  383. background-color: #f96332;
  384. border-color: #f96332;
  385. }
  386. .am-btn {
  387. display: inline-block;
  388. margin-bottom: 0;
  389. padding: 0.5em 1em;
  390. vertical-align: middle;
  391. font-size: 1.6rem;
  392. font-weight: normal;
  393. line-height: 1.2;
  394. text-align: center;
  395. outline: none;
  396. white-space: nowrap;
  397. background-image: none;
  398. border: 1px solid transparent;
  399. border-radius: 3px;
  400. cursor: pointer;
  401. outline: none;
  402. -webkit-appearance: none;
  403. -webkit-user-select: none;
  404. -moz-user-select: none;
  405. -ms-user-select: none;
  406. user-select: none;
  407. -webkit-transition: background-color 300ms ease-out, border-color 300ms ease-out;
  408. transition: background-color 300ms ease-out, border-color 300ms ease-out;
  409. }
  410. .my .info .info_down .detail{
  411. display: flex;
  412. width: 40%;
  413. border-left: #eef1f5 solid 1px;
  414. }
  415. </style>
  416. <div class="chat_iframe">
  417. <div class="top">
  418. <div class="top_left"><div class="image"></div><em>在线客服 / </em><span>Online customer service<span></div>
  419. <div class="top_right">122112</div>
  420. </div>
  421. <div class="down">
  422. <div class="nav">
  423. <div class="li hover">
  424. <div class="icon1"></div>
  425. <span>等待中</span>
  426. </div>
  427. <div class="li hover">
  428. <div class="icon2"></div>
  429. <span>我的</span>
  430. </div>
  431. <div class="li hover">
  432. <div class="icon3"></div>
  433. <span>历史</span>
  434. </div>
  435. <div class="li">
  436. <div class="icon4"></div>
  437. <span>未完善</span>
  438. </div>
  439. <div class="li">
  440. <i>99</i>
  441. <div class="icon5"></div>
  442. <span>知识库</span>
  443. </div>
  444. </div>
  445. <div class="nav_content">
  446. <div class="my">
  447. <div class="users">
  448. <ul>
  449. <li class="hover">
  450. <div class="li_left"><img src="/images/user.jpg"></div>
  451. <div class="li_right">
  452. <div class="li_right_name"><i>菲菲飞哪儿</i><em>微信</em></div>
  453. <i class="li_right_tip">您好请问方便问一下您...</i>
  454. <i class="time">下午13:39</i>
  455. </div>
  456. <div class="news-number">99</div>
  457. </li>
  458. </ul>
  459. </div>
  460. <div class="info">
  461. <div class="info_top">
  462. <div class="info_down_left">昵称(小丑鱼) <em>|</em> <em>微信</em></div>
  463. <div class="info_down_right">2222</div>
  464. </div>
  465. <div class="info_down">
  466. <div class="message">
  467. <div class="dialog" id="chatContent">
  468. <div class="time color-999 text-c" data-msg="0">17:01</div>
  469. <div class="chat_l">
  470. <div class="img">
  471. <img src="http://jgworkstation.qingerai.com:8080/group1/M00/04/1A/rBiMVl7wUSuAFpOpAAAQewIs-yk635.jpg" class="wet_1">
  472. </div>
  473. <div class="txt">
  474. <div class="nr">
  475. <div id="content_div_5870">们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你</div>
  476. </div>
  477. </div>
  478. </div>
  479. <div class="time color-999 text-c" data-msg="0">17:01</div>
  480. <div class="chat_r">
  481. <div class="img">
  482. <img src="http://jgworkstation.qingerai.com:8080/group1/M00/04/1A/rBiMVl7wUSuAFpOpAAAQewIs-yk635.jpg" class="wet_1">
  483. </div>
  484. <div class="txt">
  485. <div class="nr">
  486. <div id="content_div_5870">们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你你们都你们都你们都你们都你</div>
  487. </div>
  488. </div>
  489. </div>
  490. </div>
  491. <div class="dialog-text">
  492. <ul class="dialog-text_top">
  493. <li title="发送图片" class="iconfont" id="file_img_btn">&#xe65a;</li>
  494. <li title="发送视频" class="iconfont" id="file_video_btn">&#xe631;</li>
  495. <li title="推送量表" class="iconfont" id="push_module_btn">&#xe60d;</li>
  496. <li title="发起视频" class="iconfont" id="initiate_video">&#xe7a4;</li>
  497. </ul>
  498. <textarea placeholder="回复内容" id="myContent"></textarea>
  499. <div class="bottom">
  500. <button type="submit" onclick="sub_btn()" id="fs" class="am-btn am-btn-success float-r">发送</button>
  501. </div>
  502. </div>
  503. </div>
  504. <div class="detail">detail</div>
  505. </div>
  506. </div>
  507. </div>
  508. </div>
  509. </div>
  510. </div>
  511. <script>
  512. $(document).ready(function () {
  513. var navHeight = $('.down').outerHeight(true);
  514. $('.my>.users').height(navHeight);
  515. var dialogHeight = $('.dialog').height();
  516. $('.dialog').css('max-height', dialogHeight);
  517. })
  518. </script>