consultation-record.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. @import "../../../../themes/page.scss";
  2. /* module/chats/pages/consultation-record/consultation-record.wxss */
  3. .page-scroll__container {
  4. box-sizing: border-box;
  5. overflow-y: auto;
  6. padding-top: 10px;
  7. background-color: #f5f5f5;
  8. }
  9. .consultation-container {
  10. padding: 40rpx 30rpx;
  11. background-color: #ffffff;
  12. }
  13. .consultation-session {
  14. margin-bottom: 60rpx;
  15. &:last-child {
  16. margin-bottom: 0;
  17. }
  18. }
  19. .timestamp {
  20. text-align: center;
  21. font-size: 24rpx;
  22. color: #999999;
  23. margin: 0rpx 0 10rpx;
  24. }
  25. .status-message {
  26. text-align: center;
  27. font-size: 24rpx;
  28. color: #999999;
  29. margin: 15rpx 0 15rpx 0;
  30. }
  31. .messages-list {
  32. display: flex;
  33. flex-direction: column;
  34. gap: 30rpx;
  35. }
  36. .message-item {
  37. display: flex;
  38. align-items: flex-start;
  39. margin: 20rpx 0 20rpx 0;
  40. &--agent {
  41. justify-content: flex-start;
  42. }
  43. &--user {
  44. justify-content: flex-end;
  45. }
  46. }
  47. .message-avatar {
  48. flex-shrink: 0;
  49. }
  50. .message-bubble {
  51. max-width: 500rpx;
  52. padding: 20rpx 24rpx;
  53. border-radius: 12rpx;
  54. position: relative;
  55. word-wrap: break-word;
  56. margin-left: 20rpx;
  57. &--agent {
  58. background-color: #ffffff;
  59. border: 1rpx solid #e5e5e5;
  60. // 三角形尾巴(指向左侧头像)
  61. &::before {
  62. content: "";
  63. position: absolute;
  64. left: -10rpx;
  65. top: 16rpx;
  66. width: 0;
  67. height: 0;
  68. border-top: 10rpx solid transparent;
  69. border-bottom: 10rpx solid transparent;
  70. border-right: 10rpx solid #ffffff;
  71. z-index: 2;
  72. }
  73. // 三角形边框
  74. &::after {
  75. content: "";
  76. position: absolute;
  77. left: -11rpx;
  78. top: 16rpx;
  79. width: 0;
  80. height: 0;
  81. border-top: 10rpx solid transparent;
  82. border-bottom: 10rpx solid transparent;
  83. border-right: 10rpx solid #e5e5e5;
  84. z-index: 1;
  85. }
  86. }
  87. &--user {
  88. background-color: #409eff;
  89. margin-right: 20rpx;
  90. // 三角形尾巴(指向右侧头像)
  91. &::before {
  92. content: "";
  93. position: absolute;
  94. right: -10rpx;
  95. top: 16rpx;
  96. width: 0;
  97. height: 0;
  98. border-top: 10rpx solid transparent;
  99. border-bottom: 10rpx solid transparent;
  100. border-left: 10rpx solid #409eff;
  101. }
  102. }
  103. }
  104. .message-text {
  105. font-size: 28rpx;
  106. color: #000000;
  107. line-height: 1.5;
  108. word-wrap: break-word;
  109. &--user {
  110. color: #ffffff;
  111. }
  112. }
  113. .message-item--system {
  114. width: 100%;
  115. align-items: center;
  116. justify-content: center;
  117. .message-bubble--system {
  118. width: 100%;
  119. text-align: center;
  120. .message-text--system {
  121. color: #999999 !important;
  122. font-size: 24rpx;
  123. }
  124. }
  125. }
  126. .message-image {
  127. width: 200rpx;
  128. height: 200rpx;
  129. background: transparent !important;
  130. display: block;
  131. border-radius: 8rpx;
  132. }