chatInterface.css 11 KB

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