TUIChat.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. @import './common.scss';
  2. @import './icon.scss';
  3. .TUIChat {
  4. width: 100%;
  5. height: 100vh;
  6. padding-top: 8px;
  7. display: flex;
  8. flex-direction: column;
  9. position: fixed;
  10. top: 0;
  11. right: 0;
  12. left: 0;
  13. bottom: 0;
  14. .more-btn {
  15. position: absolute;
  16. top: 70px;
  17. right: 0;
  18. width: 50px;
  19. height: 30px;
  20. line-height: 30px;
  21. background-color: rgba(0,0,0,0.5);
  22. color: #ffffff;
  23. font-size: 10px;
  24. border-top-left-radius:20px;
  25. border-bottom-left-radius: 20px;
  26. padding-left: 15px;
  27. z-index: 9999;
  28. }
  29. &-header {
  30. padding: 20px;
  31. display: flex;
  32. justify-content: space-between;
  33. align-items: center;
  34. h1 {
  35. font-family: PingFangSC-Medium;
  36. font-weight: 500;
  37. font-size: 16px;
  38. color: #000000;
  39. letter-spacing: 0;
  40. line-height: 24px;
  41. }
  42. }
  43. .TUIChat-setting{
  44. position: absolute;
  45. background: #ffffff;
  46. right: 0;
  47. height: calc(100% - 40px);
  48. z-index: 2;
  49. top: 40px;
  50. }
  51. &-container {
  52. flex: 1;
  53. width: 100%;
  54. overflow-y: scroll;
  55. }
  56. &-main {
  57. height: 100%;
  58. position: relative;
  59. width: 100%;
  60. }
  61. &-footer {
  62. min-height: 60px;
  63. position: fixed;
  64. right: 0;
  65. left: 0;
  66. bottom: 0;
  67. display: flex;
  68. flex-direction: column;
  69. border-top: 1px solid #F4F5F9;
  70. background-color: aliceblue;
  71. .input {
  72. flex: 1;
  73. position: relative;
  74. textarea {
  75. width: 100%;
  76. height: 100%;
  77. margin: 0;
  78. padding: 12px 20px 20px;
  79. resize: none;
  80. box-sizing: border-box;
  81. border: none;
  82. background: no-repeat;
  83. &:focus {
  84. outline: none;
  85. border: none;
  86. }
  87. }
  88. p {
  89. padding: 12px 20px 20px;
  90. color: #dddddd;
  91. }
  92. .input-btn {
  93. position: absolute;
  94. bottom: 20px;
  95. right: 20px;
  96. background: #006EFF;
  97. padding: 8px 20px;
  98. border-radius: 4px;
  99. border: none;
  100. font-weight: 400;
  101. font-size: 14px;
  102. color: #FFFFFF;
  103. letter-spacing: 0;
  104. text-align: center;
  105. line-height: 20px;
  106. &:disabled {
  107. opacity: 0.3;
  108. }
  109. }
  110. }
  111. }
  112. .disabled {
  113. position: relative;
  114. &::before {
  115. content: '';
  116. position: absolute;
  117. width: 100%;
  118. height: 100%;
  119. background: #FBFBFB;
  120. }
  121. }
  122. }
  123. .TUI-message-list {
  124. overflow: hidden;
  125. // min-width: 600px;
  126. /* #ifdef H5 */
  127. margin-top: 60px; // H5
  128. /* #endif */
  129. .message-more {
  130. text-align: center;
  131. color: #999999;
  132. cursor: pointer;
  133. }
  134. .loading-text {
  135. text-align: center;
  136. font-size: 14px;
  137. line-height: 28px;
  138. }
  139. .loading-icon {
  140. width: 22px;
  141. height: 22px;
  142. display: block;
  143. margin: 5px auto 0;
  144. }
  145. li {
  146. display: flex;
  147. position: relative;
  148. padding:0 20px 30px;
  149. .message-label {
  150. max-width: 50px;
  151. }
  152. }
  153. .right{
  154. flex-direction: row-reverse;
  155. justify-content: flex-start;
  156. }
  157. }
  158. .dialog {
  159. position: absolute;
  160. z-index: 5;
  161. width: 120px;
  162. height: 60px;
  163. background: #FFFFFF;
  164. top: -70px;
  165. border-radius: 5px;
  166. right: 0;
  167. box-shadow: 0 0 10px 0 rgba(0,0,0,0.21);
  168. &-item {
  169. p {
  170. padding: 4px 16px;
  171. font-weight: 400;
  172. font-size: 12px;
  173. color: #4F4F4F;
  174. line-height: 17px;
  175. &:hover {
  176. background: rgba(0,110,255,0.10);
  177. }
  178. }
  179. }
  180. &-conversation {
  181. .avatar {
  182. width: 36px;
  183. height: 36px;
  184. margin: 0 5px 0 8px;
  185. }
  186. }
  187. &-userInfo {
  188. box-sizing: border-box;
  189. padding: 0;
  190. width: 100%;
  191. height: 100%;
  192. background: rgba( #000000, 0.3);
  193. display: flex;
  194. justify-content: flex-end;
  195. .userInfo-main {
  196. background: #ffffff;
  197. height: 100%;
  198. box-sizing: border-box;
  199. padding: 20px;
  200. width: 240px;
  201. header {
  202. display: flex;
  203. justify-content: space-between;
  204. align-items: center;
  205. }
  206. main {
  207. display: flex;
  208. padding: 20px 0;
  209. ol {
  210. flex: 1;
  211. display: flex;
  212. flex-wrap: wrap;
  213. dl {
  214. position: relative;
  215. flex: 0 0 33%;
  216. display: flex;
  217. flex-direction: column;
  218. align-items: center;
  219. img {
  220. width: 40px;
  221. height: 40px;
  222. }
  223. .more {
  224. padding-top: 10px;
  225. }
  226. dd {
  227. max-width: 60px;
  228. overflow: hidden;
  229. text-overflow: ellipsis;
  230. white-space: nowrap;
  231. }
  232. .userInfo-mask {
  233. position: absolute;
  234. z-index: 5;
  235. background: #ffffff;
  236. padding: 20px;
  237. box-shadow: 0 11px 20px 0 rgb(0 0 0 / 30%);
  238. left: 100%;
  239. li {
  240. display: flex;
  241. align-items: center;
  242. label {
  243. width: 60px;
  244. }
  245. span {
  246. max-width: 200px;
  247. word-break: keep-all;
  248. }
  249. }
  250. }
  251. }
  252. }
  253. }
  254. }
  255. }
  256. }
  257. .image-dialog {
  258. position: fixed;
  259. z-index: 5;
  260. width: 100vw;
  261. height: 100vh;
  262. top: 0;
  263. left: 0;
  264. background: rgba( #000000, 0.3);
  265. header {
  266. display: flex;
  267. justify-content: flex-end;
  268. background: rgba(0,0,0,0.49);
  269. position: absolute;
  270. width: 100%;
  271. box-sizing: border-box;
  272. top: 62px;
  273. left: 0px;
  274. padding: 10px 10px;
  275. }
  276. }
  277. .btn {
  278. padding: 8px 20px;
  279. border-radius: 4px;
  280. border: none;
  281. font-weight: 400;
  282. font-size: 14px;
  283. color: #FFFFFF;
  284. letter-spacing: 0;
  285. text-align: center;
  286. line-height: 20px;
  287. &-cancel {
  288. border: 1px solid #dddddd;
  289. color: #666666;
  290. }
  291. &-default {
  292. background: #006EFF;
  293. border: 1px solid #006EFF;
  294. }
  295. &:disabled {
  296. opacity: 0.3;
  297. }
  298. }
  299. .time-container {
  300. text-align: center;
  301. font-size: 12px;
  302. color: #BBBBBB;
  303. font-family: PingFangSC-Regular;
  304. font-weight: 400;
  305. color: #BBBBBB;
  306. letter-spacing: 0;
  307. text-align: center;
  308. height: 33rpx;
  309. margin: 10px;
  310. }
  311. .toggleMask {
  312. &::before {
  313. position: fixed;
  314. z-index: 1;
  315. content: "";
  316. width: 100vw;
  317. height: 100vh;
  318. top: 0;
  319. left: 0;
  320. opacity: 0;
  321. }
  322. }