Brak opisu

chat_assess.html 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title></title>
  7. <link href="../css/mui.min.css" rel="stylesheet" />
  8. <link rel="stylesheet" type="text/css" href="../css/app.css" />
  9. <link href="../css/mui.imageviewer.css" rel="stylesheet" />
  10. <style>
  11. html,
  12. body {
  13. height: 100%;
  14. margin: 0px;
  15. padding: 0px;
  16. overflow: hidden;
  17. -webkit-touch-callout: none;
  18. -webkit-user-select: none;
  19. }
  20. footer {
  21. position: fixed;
  22. width: 100%;
  23. height: 50px;
  24. min-height: 50px;
  25. border-top: solid 1px #bbb;
  26. left: 0px;
  27. bottom: 0px;
  28. overflow: hidden;
  29. padding: 0px 50px;
  30. background-color: #fafafa;
  31. }
  32. .footer-left {
  33. position: absolute;
  34. width: 50px;
  35. height: 50px;
  36. left: 0px;
  37. bottom: 0px;
  38. text-align: center;
  39. vertical-align: middle;
  40. line-height: 100%;
  41. padding: 12px 4px;
  42. }
  43. .footer-right {
  44. position: absolute;
  45. width: 50px;
  46. height: 50px;
  47. right: 0px;
  48. bottom: 0px;
  49. text-align: center;
  50. vertical-align: middle;
  51. line-height: 100%;
  52. padding: 12px 5px;
  53. display: inline-block;
  54. }
  55. .footer-center {
  56. height: 100%;
  57. padding: 5px 0px;
  58. }
  59. .footer-center [class*=input] {
  60. width: 100%;
  61. height: 100%;
  62. border-radius: 5px;
  63. }
  64. .footer-center .input-text {
  65. background: #fff;
  66. border: solid 1px #ddd;
  67. padding: 10px !important;
  68. font-size: 16px !important;
  69. line-height: 18px !important;
  70. font-family: verdana !important;
  71. overflow: hidden;
  72. }
  73. .footer-center .input-sound {
  74. background-color: #eee;
  75. }
  76. .mui-content {
  77. height: 100%;
  78. padding: 44px 0px 50px 0px;
  79. overflow: auto;
  80. background-color: #eaeaea;
  81. }
  82. #msg-list {
  83. height: 100%;
  84. overflow: auto;
  85. -webkit-overflow-scrolling: touch;
  86. }
  87. .msg-item {
  88. padding: 8px;
  89. clear: both;
  90. }
  91. .msg-item .mui-item-clear {
  92. clear: both;
  93. }
  94. .msg-item .msg-user {
  95. width: 38px;
  96. height: 38px;
  97. border: solid 1px #d3d3d3;
  98. display: inline-block;
  99. background: #fff;
  100. border-radius: 3px;
  101. vertical-align: top;
  102. text-align: center;
  103. float: left;
  104. padding: 3px;
  105. color: #ddd;
  106. }
  107. .msg-item .msg-user-img{
  108. width: 38px;
  109. height: 38px;
  110. display: inline-block;
  111. border-radius: 3px;
  112. vertical-align: top;
  113. text-align: center;
  114. float: left;
  115. color: #ddd;
  116. }
  117. .msg-item .msg-content {
  118. display: inline-block;
  119. border-radius: 5px;
  120. border: solid 1px #d3d3d3;
  121. background-color: #FFFFFF;
  122. color: #333;
  123. padding: 8px;
  124. vertical-align: top;
  125. font-size: 15px;
  126. position: relative;
  127. margin: 0px 8px;
  128. max-width: 75%;
  129. min-width: 35px;
  130. float: left;
  131. }
  132. .msg-item .msg-content .msg-content-inner {
  133. overflow-x: hidden;
  134. }
  135. .msg-item .msg-content .msg-content-arrow {
  136. position: absolute;
  137. border: solid 1px #d3d3d3;
  138. border-right: none;
  139. border-top: none;
  140. background-color: #FFFFFF;
  141. width: 10px;
  142. height: 10px;
  143. left: -5px;
  144. top: 12px;
  145. -webkit-transform: rotateZ(45deg);
  146. transform: rotateZ(45deg);
  147. }
  148. .msg-item-self .msg-user,
  149. .msg-item-self .msg-content {
  150. float: right;
  151. }
  152. .msg-item-self .msg-content .msg-content-arrow {
  153. left: auto;
  154. right: -5px;
  155. -webkit-transform: rotateZ(225deg);
  156. transform: rotateZ(225deg);
  157. }
  158. .msg-item-self .msg-content,
  159. .msg-item-self .msg-content .msg-content-arrow {
  160. background-color: #4CD964;
  161. color: #fff;
  162. border-color: #2AC845;
  163. }
  164. footer .mui-icon {
  165. color: #999999;
  166. }
  167. footer .mui-icon:active {
  168. color: #FF9900 !important;
  169. }/*#007AFF*/
  170. footer .mui-icon-paperplane:before {
  171. content: "发送";
  172. }
  173. footer .mui-icon-paperplane {
  174. /*-webkit-transform: rotateZ(45deg);
  175. transform: rotateZ(45deg);*/
  176. font-size: 16px;
  177. word-break: keep-all;
  178. line-height: 100%;
  179. padding-top: 6px;
  180. color: rgba(0, 135, 250, 1);
  181. }
  182. #msg-sound {
  183. -webkit-user-select: none !important;
  184. user-select: none !important;
  185. }
  186. .rprogress {
  187. position: absolute;
  188. left: 50%;
  189. top: 50%;
  190. width: 140px;
  191. height: 140px;
  192. margin-left: -70px;
  193. margin-top: -70px;
  194. background-image: url(../images/arecord.png);
  195. background-repeat: no-repeat;
  196. background-position: center center;
  197. background-size: 30px 30px;
  198. background-color: rgba(0, 0, 0, 0.7);
  199. border-radius: 5px;
  200. display: none;
  201. -webkit-transition: .15s;
  202. }
  203. .rschedule {
  204. background-color: rgba(0, 0, 0, 0);
  205. border: 5px solid rgba(0, 183, 229, 0.9);
  206. opacity: .9;
  207. border-left: 5px solid rgba(0, 0, 0, 0);
  208. border-right: 5px solid rgba(0, 0, 0, 0);
  209. border-radius: 50px;
  210. box-shadow: 0 0 15px #2187e7;
  211. width: 46px;
  212. height: 46px;
  213. position: absolute;
  214. left: 50%;
  215. top: 50%;
  216. margin-left: -23px;
  217. margin-top: -23px;
  218. -webkit-animation: spin 1s infinite linear;
  219. animation: spin 1s infinite linear;
  220. }
  221. .r-sigh{
  222. display: none;
  223. border-radius: 50px;
  224. box-shadow: 0 0 15px #2187e7;
  225. width: 46px;
  226. height: 46px;
  227. position: absolute;
  228. left: 50%;
  229. top: 50%;
  230. margin-left: -23px;
  231. margin-top: -23px;
  232. text-align: center;
  233. line-height: 46px;
  234. font-size: 40px;
  235. font-weight: bold;
  236. color: #2187e7;
  237. }
  238. .rprogress-sigh{
  239. background-image: none !important;
  240. }
  241. .rprogress-sigh .rschedule{
  242. display: none !important;
  243. }
  244. .rprogress-sigh .r-sigh{
  245. display: block !important;
  246. }
  247. .rsalert {
  248. font-size: 12px;
  249. color: #bbb;
  250. text-align: center;
  251. position: absolute;
  252. border-radius: 5px;
  253. width: 130px;
  254. margin: 5px 5px;
  255. padding: 5px;
  256. left: 0px;
  257. bottom: 0px;
  258. }
  259. @-webkit-keyframes spin {
  260. 0% {
  261. -webkit-transform: rotate(0deg);
  262. }
  263. 100% {
  264. -webkit-transform: rotate(360deg);
  265. }
  266. }
  267. @keyframes spin {
  268. 0% {
  269. transform: rotate(0deg);
  270. }
  271. 100% {
  272. transform: rotate(360deg);
  273. }
  274. }
  275. #h {
  276. background: #fff;
  277. border: solid 1px #ddd;
  278. padding: 10px !important;
  279. font-size: 16px !important;
  280. font-family: verdana !important;
  281. line-height: 18px !important;
  282. overflow: visible;
  283. position: absolute;
  284. left: -1000px;
  285. right: 0px;
  286. word-break: break-all;
  287. word-wrap: break-word;
  288. }
  289. .cancel {
  290. background-color: darkred;
  291. }
  292. </style>
  293. </head>
  294. <body contextmenu="return false;">
  295. <header class="mui-bar mui-bar-nav toptitbox">
  296. <span class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback"></span>
  297. <h1 class="mui-title toptit">对方姓名</h1>
  298. <span class="mui-icon mui-icon-contact mui-pull-right personhead"></span>
  299. </header>
  300. <pre id='h'></pre>
  301. <script id='msg-template' type="text/template">
  302. <% for(var i in record){ var item=record[i]; %>
  303. <div class="msg-item <%= (item.sender=='self'?' msg-item-self':'') %>" msg-type='<%=(item.type)%>' msg-content='<%=(item.content)%>'>
  304. <% if(item.sender=='self' ) { %>
  305. <i class="msg-user mui-icon mui-icon-person"></i>
  306. <% } else { %>
  307. <img class="msg-user-img" src="../images/logo.png" alt="" />
  308. <% } %>
  309. <div class="msg-content">
  310. <div class="msg-content-inner">
  311. <% if(item.type=='text' ) { %>
  312. <%=( item.content|| '&nbsp;&nbsp;') %>
  313. <% } else if(item.type=='image' ) { %>
  314. <img class="msg-content-image" src="<%=(item.content)%>" style="max-width: 100px;" />
  315. <% } else if(item.type=='sound' ) { %>
  316. <span class="mui-icon mui-icon-mic" style="font-size: 18px;font-weight: bold;"></span>
  317. <span class="play-state">点击播放</span>
  318. <% } %>
  319. </div>
  320. <div class="msg-content-arrow"></div>
  321. </div>
  322. <div class="mui-item-clear"></div>
  323. </div>
  324. <% } %>
  325. </script>
  326. <div class="mui-content">
  327. <div class="operatebox">
  328. <div class="themespan mui-pull-left" style="width:70%;">
  329. <span class="">关于XXXXXX的咨询</span>
  330. </div>
  331. <div class="operatebtnbox mui-pull-right">
  332. <!--未评价-->
  333. <button id='promptBtn' type="button" class="mui-btn mui-btn-block mui-btn-outlined frmbtn operatebtn" style="width:80px;">去评价</button>
  334. <div id="info">
  335. </div>
  336. <!--已评价-->
  337. <div class="">
  338. <span></span>
  339. <div>
  340. </div>
  341. </div>
  342. </div>
  343. </div>
  344. <div id='msg-list'>
  345. </div>
  346. </div>
  347. <div class="">
  348. </div>
  349. <script src="../js/public/mui.min.js"></script>
  350. <script src="../js/public/mui.imageViewer.js"></script>
  351. <script src="../js/public/arttmpl.js"></script>
  352. <script type="text/javascript" charset="utf-8">
  353. //mui初始化
  354. // mui.init({
  355. // swipeBack: true //启用右滑关闭功能
  356. // });
  357. // var info = document.getElementById("info");
  358. // document.getElementById("promptBtn").addEventListener('tap', function(e) {
  359. // e.detail.gesture.preventDefault(); //修复iOS 8.x平台存在的bug,使用plus.nativeUI.prompt会造成输入法闪一下又没了
  360. // var btnArray = ['暂不评价', '发送'];
  361. // mui.prompt('请您对此次咨询进行评价:', '性能好', 'Hello MUI', btnArray, function(e) {
  362. // if (e.index == 1) {
  363. // info.innerText = '谢谢你的评语:' + e.value;
  364. // } else {
  365. // info.innerText = '你点了取消按钮';
  366. // }
  367. // })
  368. // });
  369. // document.getElementById("toastBtn").addEventListener('tap', function() {
  370. // mui.toast('欢迎体验Hello MUI');
  371. // });
  372. </script>
  373. </body>
  374. </html>