| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- @import "../../../../themes/page.scss";
- /* module/chats/pages/consultation-record/consultation-record.wxss */
- .page-scroll__container {
- box-sizing: border-box;
- overflow-y: auto;
- padding-top: 10px;
- padding-bottom: env(safe-area-inset-bottom);
- background-color: #f5f5f5;
- }
- .consultation-container {
- padding: 0rpx 0rpx calc(30rpx + env(safe-area-inset-bottom));
- background-color: #f5f5f5;
- }
- .consultation-session {
- margin-bottom: 20rpx;
- background-color: #ffffff;
- border-radius: 16rpx;
- padding: 30rpx 24rpx;
- &:last-child {
- margin-bottom: 0;
- }
- }
- .timestamp {
- text-align: center;
- font-size: 24rpx;
- color: #999999;
- margin: 10rpx 0 20rpx;
- }
- .status-message {
- text-align: center;
- font-size: 24rpx;
- color: #999999;
- margin: 10rpx 0 20rpx;
- }
- .session-end {
- display: flex;
- flex-direction: row;
- align-items: center;
- // margin-top: 48rpx;
- padding-top: 36rpx;
- border-top: 1rpx solid #f0f0f0;
- justify-content: center;
- &__line {
- flex: 1;
- height: 1rpx;
- background-color: #e0e0e0;
- align-self: center;
- }
- &__content {
- display: flex;
- flex-direction: column;
- align-items: center;
- padding: 0 24rpx;
- }
- &__time {
- font-size: 24rpx;
- color: #999999;
- line-height: 1.5;
- }
- &__text {
- font-size: 24rpx;
- color: #999999;
- line-height: 1.5;
- }
- }
- .messages-list {
- display: flex;
- flex-direction: column;
- // gap: 30rpx;
- // padding-bottom: 50rpx;
- }
- .message-item {
- display: flex;
- // align-items: flex-start;
- margin-bottom: 30rpx;
- &--agent {
- // justify-content: flex-start;
- }
- &--user {
- justify-content: flex-end;
- }
- }
- .message-avatar {
- flex-shrink: 0;
- }
- .message-bubble {
- max-width: 480rpx;
- padding: 20rpx 24rpx;
- border-radius: 16rpx;
- position: relative;
- word-wrap: break-word;
- &--agent {
- background-color: #ffffff;
- border: 1rpx solid #e5e5e5;
- margin-left: 16rpx;
- // 三角形尾巴(指向左侧头像)
- &::before {
- content: "";
- position: absolute;
- left: -10rpx;
- top: 20rpx;
- width: 0;
- height: 0;
- border-top: 10rpx solid transparent;
- border-bottom: 10rpx solid transparent;
- border-right: 10rpx solid #ffffff;
- z-index: 2;
- }
- // 三角形边框
- &::after {
- content: "";
- position: absolute;
- left: -12rpx;
- top: 20rpx;
- width: 0;
- height: 0;
- border-top: 10rpx solid transparent;
- border-bottom: 10rpx solid transparent;
- border-right: 10rpx solid #e5e5e5;
- z-index: 1;
- }
- }
- &--user {
- background-color: #409eff;
- margin-right: 16rpx;
- // 三角形尾巴(指向右侧头像)
- &::before {
- content: "";
- position: absolute;
- right: -10rpx;
- top: 20rpx;
- width: 0;
- height: 0;
- border-top: 10rpx solid transparent;
- border-bottom: 10rpx solid transparent;
- border-left: 10rpx solid #409eff;
- }
- }
- }
- .message-text {
- font-size: 28rpx;
- color: #333333;
- line-height: 1.6;
- word-wrap: break-word;
- &--user {
- color: #ffffff;
- }
- }
- .message-item--system {
- width: 100%;
- align-items: center;
- justify-content: center;
- .message-bubble--system {
- width: 100%;
- text-align: center;
- .message-text--system {
- color: #999999 !important;
- font-size: 24rpx;
- }
- }
- }
- .message-image {
- width: 200rpx;
- height: 200rpx;
- background: transparent !important;
- display: block;
- border-radius: 8rpx;
- }
- .bottom-safe-space {
- height: calc(24rpx + env(safe-area-inset-bottom));
- }
|