小说小程序前端代码仓库(小程序)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
2.4 KiB

  1. <template>
  2. <view class="announcements-container">
  3. <navbar title="全部公告" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="announcements-list">
  5. <view class="announcement-item" v-for="(item, index) in announcements" :key="index"
  6. @click="$utils.navigateTo(`/pages_order/announcement/announcementDetail?id=${item.id}`)">
  7. <view class="item-left">
  8. <text class="tag">通讯</text>
  9. <text class="title">{{ item.title }}</text>
  10. </view>
  11. <view class="item-right">
  12. <uv-icon name="arrow-right" color="#C8C8C8" size="28rpx"></uv-icon>
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. announcements: [{
  23. id: 1,
  24. title: '2025年2月平台福利活动拟获奖作品公示',
  25. type: '通讯'
  26. },
  27. {
  28. id: 2,
  29. title: '2025年2月平台福利活动拟获奖作品公示',
  30. type: '通讯'
  31. },
  32. {
  33. id: 3,
  34. title: '2025年2月平台福利活动拟获奖作品公示',
  35. type: '通讯'
  36. },
  37. {
  38. id: 4,
  39. title: '2025年2月平台福利活动拟获奖作品公示',
  40. type: '通讯'
  41. },
  42. {
  43. id: 5,
  44. title: '2025年2月平台福利活动拟获奖作品公示',
  45. type: '通讯'
  46. },
  47. {
  48. id: 6,
  49. title: '2025年2月平台福利活动拟获奖作品公示',
  50. type: '通讯'
  51. },
  52. {
  53. id: 7,
  54. title: '2025年2月平台福利活动拟获奖作品公示',
  55. type: '通讯'
  56. }
  57. ]
  58. }
  59. },
  60. methods: {
  61. }
  62. }
  63. </script>
  64. <style lang="scss">
  65. .announcements-container {
  66. min-height: 100vh;
  67. background-color: #F8F8F8;
  68. .announcements-list {
  69. padding: 20rpx;
  70. .announcement-item {
  71. display: flex;
  72. justify-content: space-between;
  73. align-items: center;
  74. background-color: #FFFFFF;
  75. padding: 30rpx;
  76. margin-bottom: 20rpx;
  77. border-radius: 12rpx;
  78. .item-left {
  79. flex: 1;
  80. margin-right: 20rpx;
  81. .tag {
  82. display: inline-block;
  83. font-size: 24rpx;
  84. color: #666666;
  85. background-color: #F5F5F5;
  86. padding: 4rpx 12rpx;
  87. border-radius: 6rpx;
  88. margin-bottom: 16rpx;
  89. }
  90. .title {
  91. display: block;
  92. font-size: 28rpx;
  93. color: #333333;
  94. line-height: 1.4;
  95. }
  96. }
  97. .item-right {
  98. display: flex;
  99. align-items: center;
  100. }
  101. &:active {
  102. background-color: #F9F9F9;
  103. }
  104. }
  105. }
  106. }
  107. </style>