notice-page.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="notice-page">
  3. <u-navbar
  4. height="40px"
  5. title="消息通知"
  6. bgColor="#fff"
  7. autoBack
  8. placeholder
  9. >
  10. </u-navbar>
  11. <view class="container_main">
  12. <view class="time-box"> 2025-04-03 星期四 </view>
  13. <notice-item
  14. v-for="(item, i) in noticeList"
  15. :key="i"
  16. :item="item"
  17. ></notice-item>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import noticeItem from "./components/notice-item.vue";
  23. export default {
  24. components: {
  25. noticeItem,
  26. },
  27. data() {
  28. return {
  29. noticeList: [
  30. {
  31. type: 1,
  32. sn: "123654",
  33. time: "",
  34. isRead: false,
  35. },
  36. {
  37. type: 2,
  38. sn: "aa123654",
  39. time: "",
  40. isRead: true,
  41. },
  42. ],
  43. };
  44. },
  45. };
  46. </script>
  47. <style lang="scss" scoped>
  48. .notice-page {
  49. min-height: 100vh;
  50. background-color: #f0f6fb;
  51. .container_main {
  52. padding: 32rpx 24rpx;
  53. .time-box {
  54. position: relative;
  55. color: #000;
  56. font-family: "PingFang SC";
  57. font-size: 28rpx;
  58. font-weight: 400;
  59. padding-left: 20rpx;
  60. margin-bottom: 24rpx;
  61. &::before {
  62. content: "";
  63. display: block;
  64. width: 6rpx;
  65. height: 30rpx;
  66. border-radius: 100rpx;
  67. background: #0256ff;
  68. position: absolute;
  69. left: 0;
  70. top: 50%;
  71. transform: translateY(-50%);
  72. }
  73. }
  74. }
  75. }
  76. </style>