chatIndex.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. page {
  2. height: 100%;
  3. min-height: 100%;
  4. background: #f4f4f4;
  5. }
  6. .container {
  7. background: #f4f4f4;
  8. width: 100%;
  9. height: auto;
  10. min-height: 100%;
  11. overflow: hidden;
  12. }
  13. /* 顶上的提示 */
  14. .top {
  15. margin-top: 10rpx;
  16. background: #ffde57;
  17. padding: 15px 0;
  18. margin-bottom: 20rpx;
  19. border-bottom: 2rpx solid #999;
  20. border-top: 2rpx solid #999;
  21. }
  22. .top .msg {
  23. color: #000;
  24. margin-left: 30rpx;
  25. }
  26. .top .item-group {
  27. width: 750rpx;
  28. padding-bottom: 10px;
  29. padding: 0 31.25rpx;
  30. display: flex;
  31. flex-flow: row nowrap;
  32. align-items: center;
  33. justify-content: space-between;
  34. }
  35. .top .item-group .item {
  36. align-items: center;
  37. font-size: 25rpx;
  38. color: #000;
  39. }
  40. /* 消息列表 */
  41. .result-list {
  42. width: 100%;
  43. height: auto;
  44. overflow: hidden;
  45. margin-bottom: 120rpx;
  46. }
  47. .result-list .chat {
  48. height: auto;
  49. width: 100%;
  50. background: #fff;
  51. margin-bottom: 20rpx;
  52. }
  53. .result-list .item {
  54. height: 164rpx;
  55. width: 100%;
  56. overflow: hidden;
  57. border-bottom: 1rpx solid #ddd;
  58. border-top: 1rpx solid #ddd;
  59. }
  60. .result-list .item .avatar-item {
  61. float: left;
  62. }
  63. .result-list .item .avatar {
  64. float: left;
  65. height: 110rpx;
  66. width: 110rpx;
  67. background: #f4f4f4;
  68. margin: 19.5rpx 18rpx 19.5rpx 25rpx;
  69. border-radius: 50%;
  70. }
  71. .result-list .item .badge {
  72. background: red;
  73. position: relative;
  74. left: 110rpx;
  75. top: 13px;
  76. border: 3rpx solid #fff;
  77. border-radius: 50%;
  78. padding: 2rpx;
  79. width: 32rpx;
  80. height: 32rpx;
  81. }
  82. .result-list .item .badge .num {
  83. position: absolute;
  84. color: #fff;
  85. left: 0rpx;
  86. font-size: 20rpx;
  87. text-align: center;
  88. font-weight: bold;
  89. width: 30rpx;
  90. line-height: 13px;
  91. }
  92. .result-list .item .info {
  93. float: left;
  94. height: 125rpx;
  95. width: 380rpx;
  96. margin: 19.5rpx 0rpx 19.5rpx 20rpx;
  97. }
  98. .result-list .item .t {
  99. margin: 8rpx 0;
  100. font-size: 25rpx;
  101. color: #333;
  102. overflow: hidden;
  103. }
  104. .result-list .item .name {
  105. height: 28rpx;
  106. max-width: 310rpx;
  107. line-height: 30rpx;
  108. font-size: 30rpx;
  109. color: #000;
  110. overflow: hidden;
  111. }
  112. .result-list .item .time {
  113. margin-bottom: 17rpx;
  114. height: 24rpx;
  115. line-height: 24rpx;
  116. font-size: 22rpx;
  117. color: #666;
  118. overflow: hidden;
  119. }
  120. .result-list .item .b {
  121. height: 28rpx;
  122. line-height: 28rpx;
  123. font-size: 25rpx;
  124. color: #333;
  125. overflow: hidden;
  126. }
  127. .result-list .item .chat-msg {
  128. float: left;
  129. color: #666;
  130. font-size: 27rpx;
  131. }
  132. .result-list .item .img {
  133. float: right;
  134. height: 130rpx;
  135. width: 130rpx;
  136. background: #f4f4f4;
  137. margin: 19.5rpx 18rpx 19.5rpx 25rpx;
  138. }
  139. /* 没有记录 */
  140. .result-empty {
  141. width: 100%;
  142. height: auto;
  143. margin: 0 auto;
  144. }
  145. .result-empty .c {
  146. width: 100%;
  147. height: auto;
  148. margin-top: 280rpx;
  149. }
  150. .result-empty .c image {
  151. margin: 0 auto;
  152. display: block;
  153. text-align: center;
  154. width: 180rpx;
  155. height: 180rpx;
  156. }
  157. .result-empty .c text {
  158. margin: 30rpx auto;
  159. display: block;
  160. width: 258rpx;
  161. height: 29rpx;
  162. line-height: 29rpx;
  163. text-align: center;
  164. font-size: 29rpx;
  165. color: #999;
  166. }