chatInterface.css 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. page {
  2. height: 100%;
  3. }
  4. .chatInterface {
  5. height: 100%;
  6. background-color: #F1F1F1;
  7. }
  8. .chatInterface .scroll-view {
  9. padding-left: 20rpx;
  10. padding-right: 20rpx;
  11. -webkit-overflow-scrolling: touch;
  12. padding-bottom: 150rpx;
  13. background-color: #F1F1F1;
  14. }
  15. .chatInterface .scroll-view .history-loaded {
  16. font-size: 34rpx;
  17. height: 60rpx;
  18. line-height: 60rpx;
  19. width: 100%;
  20. text-align: center;
  21. color: #cccccc;
  22. }
  23. .chatInterface .scroll-view .load {
  24. font-size: 34rpx;
  25. height: 60rpx;
  26. line-height: 60rpx;
  27. width: 100%;
  28. text-align: center;
  29. color: #d02129;
  30. }
  31. .chatInterface .scroll-view .message-item {
  32. display: flex;
  33. margin: 20rpx 0;
  34. }
  35. .chatInterface .scroll-view .message-item .message-item-checkbox {
  36. height: 80rpx;
  37. display: flex;
  38. align-items: center;
  39. }
  40. .chatInterface .scroll-view .message-item .message-item-content {
  41. flex: 1;
  42. overflow: hidden;
  43. display: flex;
  44. }
  45. .chatInterface .scroll-view .message-item .message-item-content.self {
  46. overflow: hidden;
  47. display: flex;
  48. justify-content: flex-start;
  49. flex-direction: row-reverse;
  50. }
  51. .chatInterface .scroll-view .message-item .avatar {
  52. width: 80rpx;
  53. height: 80rpx;
  54. flex-shrink: 0;
  55. flex-grow: 0;
  56. }
  57. .chatInterface .scroll-view .message-item .avatar image {
  58. width: 100%;
  59. height: 100%;
  60. }
  61. .chatInterface .scroll-view .content {
  62. font-size: 34rpx;
  63. line-height: 44rpx;
  64. margin: 0 20rpx;
  65. max-width: 520rpx;
  66. }
  67. .chatInterface .scroll-view .content .message-payload {
  68. display: flex;
  69. align-items: center;
  70. }
  71. .chatInterface .scroll-view .content .image-content {
  72. border-radius: 12rpx;
  73. max-height: 200px;
  74. }
  75. .chatInterface .scroll-view .content .text-content {
  76. padding: 16rpx;
  77. border-radius: 12rpx;
  78. color: #000000;
  79. background: #FFFFFF;
  80. word-break: break-all;
  81. text-align: left;
  82. vertical-align: center;
  83. display: block;
  84. }
  85. .chatInterface .scroll-view .content .text-content img {
  86. width: 50rpx;
  87. height: 50rpx;
  88. }
  89. .chatInterface .scroll-view .content .file-content {
  90. width: 560rpx;
  91. height: 152rpx;
  92. font-size: 34rpx;
  93. background: white;
  94. display: flex;
  95. align-items: center;
  96. border-radius: 10rpx;
  97. padding: 0 20rpx;
  98. }
  99. .chatInterface .scroll-view .content .file-content .file-info {
  100. width: 386rpx;
  101. height: 132rpx;
  102. }
  103. .chatInterface .scroll-view .content .file-content .file-info .file-name {
  104. width: 400rpx;
  105. margin-top: 15rpx;
  106. font-size: 34rpx;
  107. text-overflow: ellipsis;
  108. overflow: hidden;
  109. display: -webkit-box;
  110. word-break: break-all;
  111. -webkit-line-clamp: 2;
  112. -webkit-box-orient: vertical;
  113. }
  114. .chatInterface .scroll-view .content .file-content .file-info .file-size {
  115. width: 200rpx;
  116. font-size: 34rpx;
  117. color: #ccc;
  118. }
  119. .chatInterface .scroll-view .content .file-content .file-img {
  120. width: 100rpx;
  121. height: 100rpx;
  122. }
  123. .chatInterface .scroll-view .content .pending {
  124. background: url(".~@/static/images/pending.gif") no-repeat center;
  125. background-size: 30rpx;
  126. width: 30rpx;
  127. height: 30rpx;
  128. margin-right: 10rpx;
  129. }
  130. .chatInterface .scroll-view .content .send-fail {
  131. background: url(".~@/static/images/failed.png") no-repeat center;
  132. background-size: 30rpx;
  133. width: 30rpx;
  134. height: 30rpx;
  135. margin-right: 10rpx;
  136. }
  137. .action-box {
  138. display: flex;
  139. backdrop-filter: blur(0.27rpx);
  140. width: 100%;
  141. position: fixed;
  142. bottom: 0;
  143. left: 0;
  144. flex-direction: column;
  145. background-color: #F1F1F1;
  146. }
  147. .action-top {
  148. display: flex;
  149. align-items: center;
  150. box-sizing: border-box;
  151. background: #F6F6F6;
  152. backdrop-filter: blur(27.1828px);
  153. border-top: 1px solid #ECECEC;
  154. padding: 0 20rpx;
  155. margin-bottom: 20rpx;
  156. }
  157. .consult-input {
  158. flex: 1;
  159. height: 80rpx;
  160. padding-left: 20rpx;
  161. margin: 20rpx;
  162. margin-left: 0;
  163. border: none;
  164. outline: none;
  165. border-radius: 6px;
  166. background: #FFFFFF;
  167. font-size: 34rpx;
  168. }
  169. .more {
  170. width: 62rpx;
  171. height: 62rpx;
  172. margin-right: 10rpx;
  173. display: flex;
  174. }
  175. .send-btn-box {
  176. display: flex;
  177. align-items: center;
  178. justify-content: center;
  179. width: 110rpx;
  180. height: 60rpx;
  181. border-radius: 10rpx;
  182. background: #D02129;
  183. }
  184. .send-btn-box .btn {
  185. color: #FFFFFF;
  186. font-size: 34rpx;
  187. }
  188. .action-bottom {
  189. height: 300rpx;
  190. width: 100%;
  191. padding: 20rpx;
  192. display: flex;
  193. }
  194. .action-bottom-emoji {
  195. justify-content: space-around;
  196. }
  197. .action-bottom image {
  198. width: 100rpx;
  199. height: 100rpx;
  200. }
  201. .action-box .action-bottom .more-icon {
  202. display: flex;
  203. align-items: center;
  204. flex-direction: column;
  205. padding: 0 30rpx;
  206. }
  207. .action-box .action-bottom .operation-icon {
  208. width: 60rpx;
  209. height: 60rpx;
  210. padding: 30rpx;
  211. border-radius: 30rpx;
  212. background: #FFFFFF;
  213. }
  214. .action-box .action-bottom .operation-title {
  215. margin-top: 10rpx;
  216. font-size: 26rpx;
  217. line-height: 50rpx;
  218. color: #82868E;
  219. }
  220. .action-box .action-top .record-input {
  221. flex: 1;
  222. width: 480rpx;
  223. height: 80rpx;
  224. line-height: 80rpx;
  225. padding-left: 20rpx;
  226. margin: 20rpx;
  227. margin-left: 0;
  228. border: none;
  229. outline: none;
  230. border-radius: 6px;
  231. background: #cccccc;
  232. color: #FFFFFF;
  233. font-size: 34rpx;
  234. text-align: center;
  235. }
  236. .chatInterface .messageSelector-box {
  237. display: flex;
  238. justify-content: center;
  239. align-items: center;
  240. backdrop-filter: blur(0.27rpx);
  241. width: 100%;
  242. position: fixed;
  243. bottom: 0;
  244. left: 0;
  245. border-radius: 12rpx;
  246. background: #F6F6F6;
  247. height: 150rpx;
  248. padding: 20rpx 0;
  249. font-size: 34rpx;
  250. }
  251. .chatInterface .messageSelector-box .messageSelector-btn {
  252. width: 60rpx;
  253. height: 60rpx;
  254. }
  255. uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
  256. border-color: #d1d1d1 !important;
  257. }
  258. uni-checkbox .uni-checkbox-input {
  259. border-radius: 50% !important;
  260. }
  261. /* #ifdef MP-WEIXIN */
  262. checkbox .wx-checkbox-input {
  263. border-radius: 50% !important;
  264. }
  265. checkbox .wx-checkbox-input.wx-checkbox-input-checked {
  266. color: #007aff !important;
  267. }
  268. /* #endif */
  269. .chatInterface .action-popup {
  270. position: fixed;
  271. top: 0;
  272. left: 0;
  273. right: 0;
  274. bottom: 0;
  275. display: flex;
  276. justify-content: center;
  277. align-items: center;
  278. }
  279. .chatInterface .action-popup .layer {
  280. position: fixed;
  281. top: 0;
  282. left: 0;
  283. right: 0;
  284. bottom: 0;
  285. background: rgba(51, 51, 51, 0.5);
  286. z-index: 999;
  287. }
  288. .chatInterface .action-popup .action-list {
  289. width: 350rpx;
  290. background: #434343;
  291. position: relative;
  292. z-index: 1000;
  293. border-radius: 20rpx;
  294. overflow: hidden;
  295. }
  296. .chatInterface .action-popup .action-item {
  297. text-align: center;
  298. height: 100rpx;
  299. line-height: 100rpx;
  300. font-size: 34rpx;
  301. color: #ffffff;
  302. border-bottom: 1px solid #EFEFEF;
  303. }
  304. .chatInterface .action-popup .action-item:last-child {
  305. border: none;
  306. }
  307. .chatInterface .record-loading {
  308. position: fixed;
  309. top: 50%;
  310. left: 50%;
  311. width: 300rpx;
  312. height: 300rpx;
  313. margin: -150rpx -150rpx;
  314. background: #262628;
  315. background: url(".~@/static/images/recording-loading.gif") no-repeat center;
  316. background-size: 100%;
  317. border-radius: 40rpx;
  318. }
  319. .chatInterface .img-layer {
  320. position: absolute;
  321. top: 0;
  322. left: 0;
  323. right: 0;
  324. bottom: 0;
  325. background: #000000;
  326. z-index: 9999;
  327. padding: 6rpx;
  328. display: flex;
  329. justify-content: center;
  330. align-items: center;
  331. }
  332. .chatInterface .img-layer uni-image {
  333. height: 100% !important;
  334. }
  335. .chatInterface .img-layer {
  336. height: 100% !important;
  337. width: 100% !important;
  338. }
  339. .order-list {
  340. position: fixed;
  341. top: 0;
  342. bottom: 0;
  343. z-index: 10;
  344. width: 100vw;
  345. height: 100vh;
  346. background: rgba(0, 0, 0, 0.5);
  347. }
  348. .orders-content {
  349. position: absolute;
  350. width: 100%;
  351. bottom: 0;
  352. background: #F1F1F1;
  353. z-index: 200;
  354. }
  355. .title {
  356. font-weight: 600;
  357. font-size: 34rpx;
  358. color: #000000;
  359. margin-left: 20rpx;
  360. margin-right: 20rpx;
  361. display: flex;
  362. justify-content: space-between;
  363. align-items: center;
  364. }
  365. .close {
  366. font-size: 50rpx;
  367. }
  368. .order-item {
  369. padding: 20rpx;
  370. background: #FFFFFF;
  371. margin: 20rpx;
  372. border-radius: 20rpx;
  373. }
  374. .order-id {
  375. font-size: 34rpx;
  376. color: #666666;
  377. margin-bottom: 10rpx;
  378. }
  379. .order-body {
  380. display: flex;
  381. font-size: 34rpx;
  382. }
  383. .order-img {
  384. width: 120rpx;
  385. height: 120rpx;
  386. border-radius: 10rpx;
  387. }
  388. .order-name {
  389. margin-left: 20rpx;
  390. width: 270rpx;
  391. }
  392. .order-right {
  393. flex: 1;
  394. display: flex;
  395. flex-direction: column;
  396. align-items: center;
  397. }
  398. .order-price {
  399. font-weight: bold;
  400. }
  401. .order-count {
  402. font-size: 34rpx;
  403. color: #666666;
  404. }
  405. .chatInterface .video-snapshot {
  406. position: relative;
  407. }
  408. .chatInterface .video-snapshot video {
  409. max-height: 300rpx;
  410. max-width: 400rpx;
  411. }
  412. .chatInterface .video-snapshot .video-play-icon {
  413. position: absolute;
  414. width: 40rpx;
  415. height: 40rpx;
  416. border-radius: 20rpx;
  417. background: url(".~@/static/images/play.png") no-repeat center;
  418. background-size: 100%;
  419. top: 50%;
  420. left: 50%;
  421. margin: -20rpx;
  422. }
  423. .chatInterface .group-icon {
  424. right: 20rpx;
  425. width: 60rpx;
  426. height: 60rpx;
  427. top: 14rpx;
  428. position: fixed;
  429. right: 20rpx;
  430. top: 120rpx;
  431. background-color: #C4C4C4;
  432. z-index: 2;
  433. border-radius: 60rpx;
  434. }
  435. .uni-toast {
  436. background-color: #ffffff !important;
  437. }
  438. .time-lag {
  439. font-size: 34rpx;
  440. text-align: center;
  441. }
  442. .chatInterface .audio-content {
  443. height: 86rpx;
  444. -webkit-tap-highlight-color:rgba(0,0,0,0);
  445. }
  446. .chatInterface .audio-facade{
  447. min-width: 20rpx;
  448. padding: 6rpx 10rpx;
  449. line-height: 72rpx;
  450. background: #FFFFFF;
  451. font-size: 34rpx;
  452. border-radius: 14rpx;
  453. color: #000000;
  454. display: flex;
  455. }
  456. .chatInterface .audio-facade-bg{
  457. background: url("/static/images/voice.png") no-repeat center;
  458. background-size: 30rpx;
  459. width: 40rpx;
  460. }
  461. .chatInterface .audio-facade-bg.play-icon{
  462. background: url("/static/images/play.gif") no-repeat center;
  463. background-size: 30rpx;
  464. }
  465. .chatInterface .order-content {
  466. border-radius: 20rpx;
  467. background: #FFFFFF;
  468. padding: 16rpx;
  469. display: flex;
  470. flex-direction: column;
  471. }
  472. .scroll-view .content .order-id {
  473. color: #333333;
  474. }
  475. .scroll-view .content .order-body {
  476. padding: 10rpx;
  477. }
  478. .scroll-view .content .order-name {
  479. font-weight: normal;
  480. }
  481. .scroll-view .content .order-info {
  482. display: flex;
  483. justify-content: space-between;
  484. padding: 10rpx;
  485. }
  486. .scroll-view .content .order-info .order-price {
  487. font-weight: normal;
  488. }
  489. .message-read {
  490. color: grey;
  491. font-size: 32rpx;
  492. text-align: end;
  493. }
  494. .message-unread {
  495. color: #d02129;
  496. font-size: 32rpx;
  497. text-align: end;
  498. }
  499. .message-recalled {
  500. display: flex;
  501. align-items: center;
  502. justify-content: center;
  503. line-height: 56rpx;
  504. font-size: 34rpx;
  505. text-align: center;
  506. color: grey;
  507. }
  508. .message-recalled .message-recalled-self {
  509. display: flex;
  510. }
  511. .message-recalled .message-recalled-self span {
  512. margin-left: 10rpx;
  513. color: #d02129;
  514. }