messageNotification.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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">
  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="head">
  16. <view class="title">
  17. 系统公告
  18. </view>
  19. <view class="time">
  20. 48分钟前
  21. </view>
  22. </view>
  23. <view class="count">
  24. 32条未读消息
  25. </view>
  26. </view>
  27. </view>
  28. <view class="item">
  29. <view class="icon-box"
  30. style="background: linear-gradient(180deg, rgba(89,222,232,1) 1%,rgba(13,186,199,1) 100%);">
  31. <img src="../../../assets/img/riFill-feedback-fill@1x.png" alt="">
  32. <view class="count">
  33. 5
  34. </view>
  35. </view>
  36. <view class="content">
  37. <view class="head">
  38. <view class="title">
  39. 校内通知
  40. </view>
  41. <view class="time">
  42. 刚刚
  43. </view>
  44. </view>
  45. <view class="count">
  46. 5条未读消息
  47. </view>
  48. </view>
  49. </view>
  50. <view class="item">
  51. <view class="icon-box"
  52. style="background: linear-gradient(180deg, rgba(255,189,96,1) 1%,rgba(255,150,0,1) 100%);">
  53. <img src="../../../assets/img/riFill-notification-4-fill@1x.png" alt="">
  54. <view class="count">
  55. 5
  56. </view>
  57. </view>
  58. <view class="content">
  59. <view class="head">
  60. <view class="title">
  61. 上课提醒
  62. </view>
  63. <view class="time">
  64. 昨天 21:00
  65. </view>
  66. </view>
  67. <view class="count">
  68. 5条未读消息
  69. </view>
  70. </view>
  71. </view>
  72. <view class="item">
  73. <view class="icon-box"
  74. style="background: linear-gradient(182.18deg, rgba(79,226,157,1) 2.83%,rgba(0,185,98,1) 99.31%);">
  75. <img src="../../../assets/img/riFill-contacts-book-fill@1x.png" alt="">
  76. <view class="count">
  77. 1
  78. </view>
  79. </view>
  80. <view class="content">
  81. <view class="head">
  82. <view class="title">
  83. 续费提醒
  84. </view>
  85. <view class="time">
  86. 2022-09-17 14:10
  87. </view>
  88. </view>
  89. <view class="count">
  90. 周梓轩同学剩余课时不足,如需续课可与老师联系周梓轩同学剩余课时不足,如需续课可与老师联系
  91. </view>
  92. </view>
  93. </view>
  94. <view class="item">
  95. <view class="icon-box"
  96. style="background: linear-gradient(180deg, rgba(89,222,232,1) 1%,rgba(13,186,199,1) 100%);">
  97. <img src="../../../assets/img/riFill-temp-cold-fill@1x.png" alt="">
  98. </view>
  99. <view class="content">
  100. <view class="head">
  101. <view class="title">
  102. 测温记录
  103. </view>
  104. <view class="time">
  105. 2023-01-03 14:10
  106. </view>
  107. </view>
  108. <view class="count">
  109. 周梓轩 2023-01-03 14:10:01 体温正常
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. <ParentsTabbar :current="2" ref="tabbarMain"></ParentsTabbar>
  115. </view>
  116. </template>
  117. <script>
  118. import ParentsTabbar from '@/components/ParentsTabbar.vue'
  119. export default {
  120. components: {
  121. ParentsTabbar
  122. },
  123. data() {
  124. return {
  125. }
  126. },
  127. methods: {
  128. }
  129. }
  130. </script>
  131. <style lang="scss" scoped>
  132. page {
  133. background-color: #fff;
  134. }
  135. .message {
  136. padding: 0 16px;
  137. .item {
  138. width: 100%;
  139. margin-top: 24px;
  140. display: flex;
  141. .icon-box {
  142. width: 52px;
  143. height: 52px;
  144. background: linear-gradient(180deg, rgba(91, 160, 242, 1) 1%, rgba(26, 118, 226, 1) 100%);
  145. border-radius: 999px;
  146. position: relative;
  147. display: flex;
  148. align-items: center;
  149. justify-content: center;
  150. .count {
  151. width: 20px;
  152. height: 16px;
  153. line-height: 16px;
  154. border-radius: 8px;
  155. background-color: rgba(238, 49, 56, 1);
  156. color: rgba(255, 255, 255, 1);
  157. font-size: 11px;
  158. text-align: center;
  159. position: absolute;
  160. top: 0rpx;
  161. right: -8rpx;
  162. }
  163. }
  164. .content {
  165. flex: 1;
  166. margin-left: 16px;
  167. padding: 4px 0;
  168. .head{
  169. display: flex;
  170. }
  171. .title {
  172. height: 22px;
  173. line-height: 22px;
  174. color: rgba(51, 51, 51, 1);
  175. font-size: 16px;
  176. font-weight: bold;
  177. }
  178. .count {
  179. width:548rpx;
  180. height: 17px;
  181. line-height: 17px;
  182. color: rgba(119, 119, 119, 1);
  183. font-size: 12px;
  184. margin-top: 4px;
  185. white-space: nowrap;
  186. overflow: hidden;
  187. text-overflow: ellipsis;
  188. }
  189. }
  190. .time {
  191. padding-top: 4px;
  192. margin-left: auto;
  193. color: rgba(119, 119, 119, 1);
  194. font-size: 12px;
  195. font-family: PingFangSC-regular;
  196. }
  197. }
  198. }
  199. ::v-deep.u-slot-content {
  200. justify-content: end;
  201. margin-right: 32rpx;
  202. color: rgba(13, 186, 199, 1);
  203. }
  204. </style>