messageNotification.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <view>
  3. <u-navbar title="消息通知(100)" >
  4. <slot name="right">全部已读</slot>
  5. </u-navbar>
  6. <view class="message">
  7. <view class="item" @click="gotoUrl('pages/teacher/message/messageList')">
  8. <view class="icon-box">
  9. <img src="../../../assets/img/riFill-volume-up-fill@1x.png" alt="">
  10. <view class="count">
  11. 32
  12. </view>
  13. </view>
  14. <view class="content">
  15. <view class="title">
  16. 系统公告
  17. </view>
  18. <view class="count">
  19. 32条未读消息
  20. </view>
  21. </view>
  22. <view class="time">
  23. 48分钟前
  24. </view>
  25. </view>
  26. <view class="item">
  27. <view class="icon-box" style="background: linear-gradient(180deg, rgba(89,222,232,1) 1%,rgba(13,186,199,1) 100%);">
  28. <img src="../../../assets/img/riFill-feedback-fill@1x.png" alt="">
  29. <view class="count">
  30. 5
  31. </view>
  32. </view>
  33. <view class="content">
  34. <view class="title">
  35. 校内通知
  36. </view>
  37. <view class="count">
  38. 5条未读消息
  39. </view>
  40. </view>
  41. <view class="time">
  42. 刚刚
  43. </view>
  44. </view>
  45. <view class="item">
  46. <view class="icon-box" style="background: linear-gradient(180deg, rgba(255,189,96,1) 1%,rgba(255,150,0,1) 100%);">
  47. <img src="../../../assets/img/riFill-notification-4-fill@1x.png" alt="">
  48. <view class="count">
  49. 5
  50. </view>
  51. </view>
  52. <view class="content">
  53. <view class="title">
  54. 上课提醒
  55. </view>
  56. <view class="count">
  57. 5条未读消息
  58. </view>
  59. </view>
  60. <view class="time">
  61. 昨天 21:00
  62. </view>
  63. </view>
  64. <view class="item">
  65. <view class="icon-box" style="background: linear-gradient(180deg, rgba(169,147,255,1) 1%,rgba(129,97,255,1) 100%);">
  66. <img src="../../../assets/img/riFill-time-fill@1x.png" alt="">
  67. <view class="count">
  68. 5
  69. </view>
  70. </view>
  71. <view class="content">
  72. <view class="title">
  73. 请假条
  74. </view>
  75. <view class="count">
  76. 5条未读消息
  77. </view>
  78. </view>
  79. <view class="time">
  80. 2022-09-17 14:10
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </template>
  86. <script>
  87. export default {
  88. data() {
  89. return {
  90. }
  91. },
  92. methods: {
  93. }
  94. }
  95. </script>
  96. <style lang="scss" scoped>
  97. page{
  98. background-color: #fff;
  99. }
  100. .message{
  101. padding: 0 16px;
  102. .item{
  103. margin-top: 24px;
  104. display: flex;
  105. .icon-box{
  106. width: 52px;
  107. height: 52px;
  108. background: linear-gradient(180deg, rgba(91,160,242,1) 1%,rgba(26,118,226,1) 100%);
  109. border-radius: 999px;
  110. position: relative;
  111. display:flex;
  112. align-items: center;
  113. justify-content: center;
  114. .count{
  115. width: 20px;
  116. height: 16px;
  117. line-height: 16px;
  118. border-radius: 8px;
  119. background-color: rgba(238, 49, 56, 1);
  120. color: rgba(255, 255, 255, 1);
  121. font-size: 11px;
  122. text-align: center;
  123. position: absolute;
  124. top: 0rpx;
  125. right: -8rpx;
  126. }
  127. }
  128. .content{
  129. margin-left: 16px;
  130. padding: 4px 0 ;
  131. .title{
  132. height: 22px;
  133. line-height: 22px;
  134. color: rgba(51, 51, 51, 1);
  135. font-size: 16px;
  136. font-weight: bold;
  137. }
  138. .count{
  139. height: 17px;
  140. line-height: 17px;
  141. color: rgba(119, 119, 119, 1);
  142. font-size: 12px;
  143. margin-top: 4px;
  144. }
  145. }
  146. .time{
  147. padding-top: 4px;
  148. margin-left: auto;
  149. color: rgba(119, 119, 119, 1);
  150. font-size: 12px;
  151. font-family: PingFangSC-regular;
  152. }
  153. }
  154. }
  155. ::v-deep.u-slot-content{
  156. justify-content: end;
  157. margin-right: 32rpx;
  158. color: rgba(13, 186, 199, 1);
  159. }
  160. </style>