consultation-record.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. padding-bottom: env(safe-area-inset-bottom);
  8. background-color: #f5f5f5;
  9. }
  10. .consultation-container {
  11. padding: 0rpx 0rpx calc(30rpx + env(safe-area-inset-bottom));
  12. background-color: #f5f5f5;
  13. }
  14. .consultation-session {
  15. margin-bottom: 20rpx;
  16. background-color: #ffffff;
  17. border-radius: 16rpx;
  18. padding: 30rpx 24rpx;
  19. &:last-child {
  20. margin-bottom: 0;
  21. }
  22. }
  23. .timestamp {
  24. text-align: center;
  25. font-size: 24rpx;
  26. color: #999999;
  27. margin: 10rpx 0 20rpx;
  28. }
  29. .status-message {
  30. text-align: center;
  31. font-size: 24rpx;
  32. color: #999999;
  33. margin: 10rpx 0 20rpx;
  34. }
  35. .session-end {
  36. display: flex;
  37. flex-direction: row;
  38. align-items: center;
  39. // margin-top: 48rpx;
  40. padding-top: 36rpx;
  41. border-top: 1rpx solid #f0f0f0;
  42. justify-content: center;
  43. &__line {
  44. flex: 1;
  45. height: 1rpx;
  46. background-color: #e0e0e0;
  47. align-self: center;
  48. }
  49. &__content {
  50. display: flex;
  51. flex-direction: column;
  52. align-items: center;
  53. padding: 0 24rpx;
  54. }
  55. &__time {
  56. font-size: 24rpx;
  57. color: #999999;
  58. line-height: 1.5;
  59. }
  60. &__text {
  61. font-size: 24rpx;
  62. color: #999999;
  63. line-height: 1.5;
  64. }
  65. }
  66. .messages-list {
  67. display: flex;
  68. flex-direction: column;
  69. // gap: 30rpx;
  70. // padding-bottom: 50rpx;
  71. }
  72. .message-item {
  73. display: flex;
  74. // align-items: flex-start;
  75. margin-bottom: 30rpx;
  76. &--agent {
  77. // justify-content: flex-start;
  78. }
  79. &--user {
  80. justify-content: flex-end;
  81. }
  82. }
  83. .message-avatar {
  84. flex-shrink: 0;
  85. }
  86. .message-bubble {
  87. max-width: 480rpx;
  88. padding: 20rpx 24rpx;
  89. border-radius: 16rpx;
  90. position: relative;
  91. word-wrap: break-word;
  92. &--agent {
  93. background-color: #ffffff;
  94. border: 1rpx solid #e5e5e5;
  95. margin-left: 16rpx;
  96. // 三角形尾巴(指向左侧头像)
  97. &::before {
  98. content: "";
  99. position: absolute;
  100. left: -10rpx;
  101. top: 20rpx;
  102. width: 0;
  103. height: 0;
  104. border-top: 10rpx solid transparent;
  105. border-bottom: 10rpx solid transparent;
  106. border-right: 10rpx solid #ffffff;
  107. z-index: 2;
  108. }
  109. // 三角形边框
  110. &::after {
  111. content: "";
  112. position: absolute;
  113. left: -12rpx;
  114. top: 20rpx;
  115. width: 0;
  116. height: 0;
  117. border-top: 10rpx solid transparent;
  118. border-bottom: 10rpx solid transparent;
  119. border-right: 10rpx solid #e5e5e5;
  120. z-index: 1;
  121. }
  122. }
  123. &--user {
  124. background-color: #409eff;
  125. margin-right: 16rpx;
  126. // 三角形尾巴(指向右侧头像)
  127. &::before {
  128. content: "";
  129. position: absolute;
  130. right: -10rpx;
  131. top: 20rpx;
  132. width: 0;
  133. height: 0;
  134. border-top: 10rpx solid transparent;
  135. border-bottom: 10rpx solid transparent;
  136. border-left: 10rpx solid #409eff;
  137. }
  138. }
  139. }
  140. .message-text {
  141. font-size: 28rpx;
  142. color: #333333;
  143. line-height: 1.6;
  144. word-wrap: break-word;
  145. &--user {
  146. color: #ffffff;
  147. }
  148. }
  149. .message-item--system {
  150. width: 100%;
  151. align-items: center;
  152. justify-content: center;
  153. .message-bubble--system {
  154. width: 100%;
  155. text-align: center;
  156. .message-text--system {
  157. color: #999999 !important;
  158. font-size: 24rpx;
  159. }
  160. }
  161. }
  162. .message-image {
  163. width: 200rpx;
  164. height: 200rpx;
  165. background: transparent !important;
  166. display: block;
  167. border-radius: 8rpx;
  168. }
  169. .bottom-safe-space {
  170. height: calc(24rpx + env(safe-area-inset-bottom));
  171. }