messageCenter.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <view>
  3. <u-navbar title="消息中心">
  4. <slot name="right">一键已读</slot>
  5. </u-navbar>
  6. <view class="message">
  7. <view class="message-item">
  8. <view class="icon" style="background: linear-gradient(180deg, rgba(218,230,245,1) 1%,rgba(180,206,238,1) 100%);">
  9. <img src="@/assets/img/riFill-volume-up-fill@1x.png" alt="">
  10. <view class="amount">
  11. 80
  12. </view>
  13. </view>
  14. <view class="infos">
  15. <view class="head">
  16. <view class="title">
  17. 系统公告
  18. </view>
  19. <view class="time">
  20. 48分钟前
  21. </view>
  22. </view>
  23. <view class="unread">
  24. 32条未读消息
  25. </view>
  26. </view>
  27. </view>
  28. <view class="message-item">
  29. <view class="icon" style="background: linear-gradient(180deg, rgba(226,219,251,1) 1%,rgba(207,195,255,1) 100%);">
  30. <img src="@/assets/img/riFill-chat-settings-fill@1x.png" alt="">
  31. <view class="amount">
  32. 80
  33. </view>
  34. </view>
  35. <view class="infos">
  36. <view class="head">
  37. <view class="title">
  38. 检验消息
  39. </view>
  40. <view class="time">
  41. 10:00
  42. </view>
  43. </view>
  44. <view class="unread">
  45. 32条未读消息
  46. </view>
  47. </view>
  48. </view>
  49. <view class="message-item">
  50. <view class="icon" style="background: linear-gradient(180deg, rgba(214,249,214,1) 1%,rgba(170,226,170,1) 100%);">
  51. <img src="@/assets/img/riFill-inbox-archive-fill@1x.png" alt="">
  52. <view class="amount">
  53. 3
  54. </view>
  55. </view>
  56. <view class="infos">
  57. <view class="head">
  58. <view class="title">
  59. 入库提醒
  60. </view>
  61. <view class="time">
  62. 2天前
  63. </view>
  64. </view>
  65. <view class="unread">
  66. 32条未读消息
  67. </view>
  68. </view>
  69. </view>
  70. <view class="message-item">
  71. <view class="icon" style="background: linear-gradient(180deg, rgba(249,235,225,1) 1%,rgba(238,206,182,1) 100%);">
  72. <img src="@/assets/img/riFill-inbox-unarchive-fill@1x.png" alt="">
  73. <view class="amount">
  74. 4
  75. </view>
  76. </view>
  77. <view class="infos">
  78. <view class="head">
  79. <view class="title">
  80. 出库提醒
  81. </view>
  82. <view class="time">
  83. 2023/03/01 12:00
  84. </view>
  85. </view>
  86. <view class="unread">
  87. 32条未读消息
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. </template>
  94. <script>
  95. export default {
  96. data() {
  97. return {
  98. }
  99. },
  100. methods: {
  101. }
  102. }
  103. </script>
  104. <style lang="scss" scoped>
  105. page{
  106. padding-bottom: 100px;
  107. background-color: #fff;
  108. }
  109. ::v-deep .u-slot-content {
  110. justify-content: end;
  111. margin-right: 32rpx;
  112. color: rgba(51, 51, 51, 1);
  113. }
  114. .message{
  115. padding: 32rpx;
  116. .message-item{
  117. display: flex;flex-wrap: wrap;
  118. margin-bottom: 24rpx;
  119. .icon{
  120. width: 104rpx;
  121. height: 104rpx;
  122. border-radius: 8px;
  123. text-align: center;
  124. line-height: 104rpx;
  125. position: relative;
  126. .amount{
  127. width: 40rpx;
  128. height: 32rpx;
  129. line-height: 32rpx;
  130. border-radius: 8rpx;
  131. background-color: rgba(255, 61, 0, 1);
  132. color: rgba(255, 255, 255, 1);
  133. font-size: 22rpx;
  134. text-align: center;
  135. position: absolute;
  136. top: 0;
  137. right:-12rpx;
  138. }
  139. img{
  140. width: 56rpx;
  141. height: 56rpx;
  142. vertical-align: middle;
  143. }
  144. }
  145. .infos{
  146. display: flex;flex-wrap: wrap;
  147. flex:1;
  148. flex-direction: column;
  149. justify-content: space-around;
  150. margin-left: 32rpx;
  151. .head{
  152. display: flex;flex-wrap: wrap;
  153. justify-content: space-between;
  154. .title{
  155. color: rgba(51, 51, 51, 1);
  156. font-size: 32rpx;
  157. }
  158. .time{
  159. color: rgba(119, 119, 119, 1);
  160. font-size: 24rpx;
  161. }
  162. }
  163. .unread{
  164. color: rgba(119, 119, 119, 1);
  165. font-size: 24rpx;
  166. }
  167. }
  168. }
  169. }
  170. </style>