小说小程序前端代码仓库(小程序)
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.

83 lines
1.7 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 list" :key="index"
  6. @click="$utils.navigateTo(`/pages_order/announcement/announcementDetail?id=${item.id}`)">
  7. <view class="item-left">
  8. <text class="tag">{{ item.title }}</text>
  9. <text class="title">{{ item.titleText }}</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. import mixinsList from '@/mixins/list.js'
  20. export default {
  21. mixins: [mixinsList],
  22. data() {
  23. return {
  24. mixinsListApi : 'getNoticePage',
  25. }
  26. },
  27. methods: {
  28. }
  29. }
  30. </script>
  31. <style lang="scss">
  32. .announcements-container {
  33. min-height: 100vh;
  34. background-color: #F8F8F8;
  35. .announcements-list {
  36. padding: 20rpx;
  37. .announcement-item {
  38. display: flex;
  39. justify-content: space-between;
  40. align-items: center;
  41. background-color: #FFFFFF;
  42. padding: 30rpx;
  43. margin-bottom: 20rpx;
  44. border-radius: 12rpx;
  45. .item-left {
  46. flex: 1;
  47. margin-right: 20rpx;
  48. .tag {
  49. display: inline-block;
  50. font-size: 24rpx;
  51. color: #666666;
  52. background-color: #F5F5F5;
  53. padding: 4rpx 12rpx;
  54. border-radius: 6rpx;
  55. margin-bottom: 16rpx;
  56. }
  57. .title {
  58. display: block;
  59. font-size: 28rpx;
  60. color: #333333;
  61. line-height: 1.4;
  62. }
  63. }
  64. .item-right {
  65. display: flex;
  66. align-items: center;
  67. }
  68. &:active {
  69. background-color: #F9F9F9;
  70. }
  71. }
  72. }
  73. }
  74. </style>