chat.css 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454
  1. .chat_item {
  2. align-items: center;
  3. margin-left: 30upx;
  4. margin-top: 16upx;
  5. display: flex;
  6. height: 60upx;
  7. }
  8. .chat_item view{
  9. font-size: 24upx;
  10. }
  11. page {
  12. background-color: #ededed;
  13. }
  14. .chatInterface {}
  15. .chatInterface .scroll-view {
  16. padding-left: 20rpx;
  17. padding-right: 20rpx;
  18. box-sizing: border-box;
  19. -webkit-overflow-scrolling: touch;
  20. padding-bottom: 120rpx;
  21. }
  22. .chatInterface .scroll-view .all-history-loaded {
  23. font-size: 24rpx;
  24. height: 90rpx;
  25. line-height: 90rpx;
  26. width: 100%;
  27. text-align: center;
  28. color: grey;
  29. }
  30. .chatInterface .scroll-view .message-item {
  31. /* max-height: 400rpx; */
  32. margin-top: 30rpx;
  33. margin-bottom: 30rpx;
  34. overflow: hidden;
  35. display: flex;
  36. }
  37. .chatInterface .scroll-view .message-item.self {
  38. overflow: hidden;
  39. display: flex;
  40. justify-content: flex-start;
  41. flex-direction: row-reverse;
  42. }
  43. .chatInterface .scroll-view .message-item .avatar {
  44. width: 80rpx;
  45. height: 80rpx;
  46. margin-right: 20rpx;
  47. flex-shrink: 0;
  48. flex-grow: 0;
  49. }
  50. .chatInterface .scroll-view .message-item .avatar image {
  51. width: 100%;
  52. height: 100%;
  53. }
  54. .chatInterface .scroll-view .message-item.self .avatar {
  55. margin-left: 20rpx;
  56. margin-right: 0;
  57. }
  58. .chatInterface .scroll-view .content {
  59. font-size: 34rpx;
  60. line-height: 44rpx;
  61. /* max-height: 400rpx; */
  62. display: flex;
  63. align-items: center;
  64. justify-content: right;
  65. text-align: right;
  66. background-color: #ffffff;
  67. color: #ffffff;
  68. padding: 8px;
  69. border-radius: 6px;
  70. color: #0c1905;
  71. word-break: break-all;
  72. text-align: left;
  73. vertical-align: center;
  74. display: block;
  75. }
  76. .content2 {
  77. background-color: #ffffff!important;
  78. }
  79. .chatInterface .scroll-view .message-item.self .content {
  80. background-color: #95ec69;
  81. }
  82. .chatInterface .scroll-view .content .image-content {
  83. padding: 16rpx;
  84. border-radius: 12rpx;
  85. width: 300rpx;
  86. height: 300rpx;
  87. }
  88. .chatInterface .scroll-view .content .text-content {
  89. padding: 16rpx;
  90. border-radius: 12rpx;
  91. word-break: break-all;
  92. text-align: left;
  93. vertical-align: center;
  94. display: block;
  95. }
  96. .chatInterface .scroll-view .content .text-content img {
  97. width: 50rpx;
  98. height: 50rpx;
  99. }
  100. .chatInterface .scroll-view .content .red-packet {
  101. background-color: orange;
  102. color: #FFFFFF;
  103. font-size: 30rpx;
  104. width: 400rpx;
  105. height: 150rpx;
  106. border-radius: 10rpx;
  107. line-height: 80rpx;
  108. padding: 20rpx;
  109. box-sizing: border-box;
  110. display: flex;
  111. justify-content: space-between;
  112. }
  113. .chatInterface .scroll-view .content .red-packet image {
  114. width: 70rpx;
  115. height: 80rpx;
  116. }
  117. .chatInterface .scroll-view .content .pending {
  118. background: url("../../static/images_go/pending.gif") no-repeat center;
  119. background-size: 30rpx;
  120. width: 30rpx;
  121. height: 30rpx;
  122. margin-right: 10rpx;
  123. flex-grow: 0;
  124. flex-shrink: 0;
  125. }
  126. .chatInterface .scroll-view .content .send-fail {
  127. background: url("../../static/images_go/failed.png") no-repeat center;
  128. background-size: 30rpx;
  129. width: 30rpx;
  130. height: 30rpx;
  131. margin-right: 10rpx;
  132. flex-grow: 0;
  133. flex-shrink: 0;
  134. }
  135. .chatInterface .action-box {
  136. display: flex;
  137. backdrop-filter: blur(0.27rpx);
  138. width: 100%;
  139. position: fixed;
  140. bottom: 0;
  141. left: 0;
  142. flex-direction: column;
  143. background-color: #FFFFFF;
  144. }
  145. .chatInterface .action-box .action-top {
  146. display: flex;
  147. padding-top: 30rpx;
  148. padding-bottom: 10rpx;
  149. backdrop-filter: blur(0.27rem);
  150. height: 100rpx;
  151. background: #FAFAFA;
  152. width: 100%;
  153. }
  154. .chatInterface .action-box .action-top .record-icon {
  155. font-size: 32rpx;
  156. width: 80rpx;
  157. height: 80rpx;
  158. line-height: 80rpx;
  159. text-align: center;
  160. background: url("../../static/images_go/record-appearance-icon.png") no-repeat center;
  161. background-size: 50%;
  162. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  163. }
  164. .chatInterface .action-box .action-top .file-icon {
  165. background: url("../../static/images_go/video.png") no-repeat center;
  166. background-size: 70%;
  167. color: #9D9D9D;
  168. position: relative;
  169. width: 80rpx;
  170. height: 80rpx;
  171. line-height: 80rpx;
  172. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  173. }
  174. .chatInterface .action-box .record-icon.record-open {
  175. background: url("../../static/images_go/jianpan.png") no-repeat center;
  176. background-size: 70%;
  177. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  178. }
  179. .chatInterface .action-box .action-top .img-video {
  180. background: url("../../static/images_go/file.png") no-repeat center;
  181. background-size: 73%;
  182. }
  183. .chatInterface .action-box .action-top .emoji-icon {
  184. background: url("../../static/images_go/emoji.png") no-repeat center;
  185. background-size: 60%;
  186. }
  187. .more-icon {
  188. height: 60upx;
  189. line-height: 60upx;
  190. background: url("../../static/images_go/more.png") no-repeat;
  191. background-size: 40upx 40upx;
  192. color: #82868E;
  193. background-position: 0 10upx;
  194. text-indent: 45upx;
  195. }
  196. .chatInterface .action-box .action-bottom .more-item {
  197. display: flex;
  198. flex-direction: column;
  199. width: 150rpx;
  200. height: 150rpx;
  201. margin-right: 20rpx;
  202. align-items: center;
  203. }
  204. .chatInterface .action-box .action-bottom .more-item image {
  205. height: 80rpx;
  206. width: 80rpx;
  207. }
  208. .chatInterface .action-box .action-bottom .more-item text {
  209. font-size: 20rpx;
  210. text-align: center;
  211. line-height: 50rpx;
  212. color: #82868e;
  213. }
  214. .chatInterface .action-box .action-top .record-input {
  215. width: 460rpx;
  216. height: 80rpx;
  217. line-height: 80rpx;
  218. border-radius: 12rpx;
  219. font-size: 28rpx;
  220. background: #cccccc;
  221. color: #ffffff;
  222. text-align: center;
  223. }
  224. .chatInterface .action-box .action-top .message-input {
  225. border-radius: 12rpx;
  226. background: #EFEFEF;
  227. height: 80rpx;
  228. }
  229. .chatInterface .action-box .action-top .message-input input {
  230. width: 420rpx;
  231. height: 80rpx;
  232. line-height: 80rpx;
  233. padding-left: 20rpx;
  234. font-size: 28rpx;
  235. }
  236. .chatInterface .action-box .action-top .send-message-btn {
  237. font-size: 30rpx;
  238. width: 120rpx;
  239. line-height: 80upx;
  240. height: 80upx;
  241. color: #f5fffe;
  242. text-align: center;
  243. background-color: #07c160;
  244. border-radius: 10upx;
  245. margin-left: 16upx;
  246. }
  247. .chatInterface .action-bottom {
  248. height: 300rpx;
  249. width: 100%;
  250. padding: 20rpx;
  251. box-sizing: border-box;
  252. display: flex;
  253. }
  254. .chatInterface .action-bottom image {
  255. width: 100rpx;
  256. height: 100rpx;
  257. }
  258. .chatInterface .record-loading {
  259. position: fixed;
  260. top: 50%;
  261. left: 50%;
  262. width: 300rpx;
  263. height: 300rpx;
  264. margin: -150rpx -150rpx;
  265. background: #262628;
  266. background: url("../../static/images_go/recording-loading.gif") no-repeat center;
  267. background-size: 100%;
  268. border-radius: 40rpx;
  269. }
  270. .chatInterface .img-layer {
  271. position: absolute;
  272. top: 0;
  273. left: 0;
  274. right: 0;
  275. bottom: 0;
  276. background: #000000;
  277. z-index: 9999;
  278. padding: 6rpx;
  279. display: flex;
  280. justify-content: center;
  281. align-items: center;
  282. }
  283. .chatInterface .img-layer uni-image {
  284. height: 100% !important;
  285. }
  286. .chatInterface .img-layer {
  287. height: 100% !important;
  288. width: 100% !important;
  289. }
  290. .chatInterface .content .file-content .file-info {
  291. height: 0.5rem;
  292. width: 1.5rem;
  293. display: flex;
  294. flex-direction: column;
  295. padding: 0 0.1rem;
  296. }
  297. .chatInterface .content .file-content .file-info .title {
  298. height: 0.3rem;
  299. line-height: 0.3rem;
  300. overflow: hidden;
  301. font-size: 0.16rem;
  302. padding: 0;
  303. white-space: nowrap;
  304. text-overflow: ellipsis;
  305. word-break: break-all;
  306. color: #262628;
  307. text-align: left;
  308. }
  309. .chatInterface .content .file-content .file-info .size {
  310. font-size: 0.14rem;
  311. height: 0.2rem;
  312. line-height: 0.2rem;
  313. padding: 0;
  314. white-space: nowrap;
  315. text-overflow: ellipsis;
  316. overflow: hidden;
  317. word-break: break-all;
  318. color: #999999;
  319. text-align: left;
  320. }
  321. .chatInterface .video-snapshot {
  322. position: relative;
  323. height: 300rpx !important;
  324. overflow: hidden;
  325. max-width: 400rpx;
  326. background: #000000;
  327. }
  328. .chatInterface .video-snapshot image {
  329. /* max-height: 300rpx; */
  330. max-width: 400rpx;
  331. }
  332. .chatInterface .video-snapshot video {
  333. /* max-height: 300rpx; */
  334. max-width: 400rpx;
  335. }
  336. .chatInterface .video-snapshot .video-play-icon {
  337. position: absolute;
  338. width: 40rpx;
  339. height: 40rpx;
  340. border-radius: 20rpx;
  341. background: url("../../static/images_go/play.png") no-repeat center;
  342. background-size: 100%;
  343. top: 50%;
  344. left: 50%;
  345. margin: -20rpx;
  346. }
  347. .chatInterface .group-icon {
  348. right: 20rpx;
  349. width: 60rpx;
  350. height: 60rpx;
  351. top: 14rpx;
  352. position: fixed;
  353. right: 20rpx;
  354. top: 120rpx;
  355. background-color: #C4C4C4;
  356. z-index: 2;
  357. border-radius: 60rpx;
  358. }
  359. .uni-toast {
  360. background-color: #ffffff !important;
  361. }
  362. .time-lag {
  363. font-size: 20rpx;
  364. text-align: center;
  365. }
  366. .chatInterface .custom-message {
  367. width: 400rpx;
  368. height: 260rpx;
  369. display: flex;
  370. flex-direction: column;
  371. justify-content: space-around;
  372. align-items: flex-start;
  373. box-sizing: border-box;
  374. padding: 10rpx 30rpx;
  375. border: 1px solid rgba(0, 0, 0, 0.05);
  376. box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.1);
  377. border-radius: 20rpx;
  378. }
  379. .chatInterface .custom-message .title {
  380. width: 100%;
  381. display: flex;
  382. align-items: center;
  383. font-size: 30rpx;
  384. }
  385. .chatInterface .custom-message .title image {
  386. width: 40rpx;
  387. height: 40rpx;
  388. }
  389. .chatInterface .custom-message .custom-message-item {
  390. text-align: left;
  391. font-size: 28rpx;
  392. overflow: hidden;
  393. width: 100%;
  394. text-overflow: ellipsis;
  395. white-space: nowrap;
  396. }