123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- /* pages/chat/chat.wxss */
- page {
- background-color: #f1f1f1;
- }
- .scroll-list {
- padding-bottom: 120rpx;
- }
- /* 显示时间 */
- .show-date {
- text-align: center;
- font-size: 24rpx;
- padding: 15rpx 0;
- color: gray;
- }
- /* 每行对话样式 */
- .row {
- display: flex;
- flex-direction: row;
- padding: 20rpx;
- }
- /* 提示信息 */
- .tips-text {
- text-align: center;
- justify-content: center;
- font-size: 28rpx;
- color: gray;
- }
- .row-self {
- flex-direction: row-reverse;
- }
- /* 头像 */
- .head-self {
- margin-left: 20rpx;
- }
- .head-friend {
- margin-right: 20rpx;
- }
- .avatar {
- width: 100rpx;
- height: 100rpx;
- border-radius: 20rpx;
- overflow: hidden;
- }
- .nick {
- color: gray;
- font-size: 24rpx;
- margin-bottom: 15rpx;
- }
- /* 消息内容 */
- .message {
- background-color: white;
- font-size: 30rpx;
- padding: 20rpx;
- display: flex;
- align-items: center;
- line-height: 45rpx;
- }
- .msg-self {
- border-top-left-radius: 30rpx;
- border-bottom-right-radius: 30rpx;
- color: #434343;
- background-image: linear-gradient(to right, #33ccff, #B0E2FF);
- }
- .msg-friend {
- border-top-right-radius: 30rpx;
- border-bottom-left-radius: 30rpx;
- color: #ffffff;
- background-image: linear-gradient(to right, #ff9933, #ff6633);
- }
- .chat-card{
- background-color: rgba(162, 202, 242, 1);
- display: flex;
- }
- .chat-card-image{
- position: relative;
- border-radius: 12px;
- width: 10px;
- top: 10px;
- }
- .chat-card-info{
- position: relative;
- }
- .chat-card-info-title{
- position: relative;
- top: 10px;
- }
- .chat-card-info-price{
- position: relative;
- top: 50px;
- color: rgba(245, 56, 56, 0.91);
- }
- .chat-card-btn{
- position: relative;
- top: 60px;
- right: 5px;
- }
- .chat-footer-input{
- border:0;
- outline:0;
- border:solid 1px rgba(0, 0, 0, 0.15);
- border-radius: 4px;
- width: 300px;
- height: 30px;
- position: relative;
- left: 10px;
- margin-top: 10px;
- }
- .chat-footer{
- display: flex;
- border: 0;
- border-top: solid 1px rgba(0, 0, 0, 0.15);
- position: fixed;
- left: 0;
- bottom: 0;
- width: 100%;
- height: 50px;
- }
- .chat-footer-icon{
- margin-left: 15px;
- }
- /* 以下为输入框样式 */
- .footer {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- z-index: 9;
- background-color: white;
- border-top: 1rpx solid #f1f1f1;
- }
- .input-box {
- flex: 5;
- border: 1rpx solid #f1f1f1;
- border-radius: 10rpx;
- }
- .send-btn {
- flex: 1;
- text-align: center;
- margin-left: 10rpx;
- color: white;
- margin-top: 10rpx;
- }
- .send-text {
- background-color: #FF6347;
- font-size: 30rpx;
- border-radius: 10rpx;
- padding: 12rpx 20rpx;
- }
- .text-area {
- max-height: 180rpx;
- width: 98%;
- padding: 15rpx 10rpx;
- font-size: 30rpx;
- }
- .placeholder {
- font-size: 30rpx;
- }
- /* 隐藏滚动条 */
- ::-webkit-scrollbar {
- display: none;
- width: 0;
- height: 0;
- color: transparent;
- }
|