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

115 lines
2.9 KiB

  1. <template>
  2. <!-- 公告详情页面 -->
  3. <view class="announcement-container">
  4. <navbar title="公告详情" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="award-section">
  6. <uv-parse :content="detail.details"></uv-parse>
  7. <!-- <view class="award-item">
  8. <text class="award-title">长篇网文</text>
  9. <view class="award-content">
  10. <view class="sub-award">
  11. <text class="sub-title"> 优质加更奖</text>
  12. <text class="detail">拟获奖作品156本共发放奖金41.5万元查看拟获奖名单请点击</text>
  13. <text class="link">优质加更奖拟获奖名单</text>
  14. </view>
  15. <view class="sub-award">
  16. <text class="sub-title"> 新书扶更奖</text>
  17. <text class="detail">拟获奖作品5574本共发放奖金20万元查看拟获奖名单请点击</text>
  18. <text class="link">新书扶更奖拟获奖名单</text>
  19. </view>
  20. <view class="sub-award">
  21. <text class="sub-title"> 拉新激励奖</text>
  22. <text class="detail">拟获奖作品50部总计奖金65万查看拟获奖名单请点击</text>
  23. <text class="link">2月拉新激励奖</text>
  24. </view>
  25. <view class="sub-award">
  26. <text class="sub-title"> 星火计划奖励</text>
  27. <text class="detail">拟获奖作品4178部总计奖金55万查看拟获奖名单请点击</text>
  28. <text class="link">2月星火计划奖励名单</text>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="award-item">
  33. <text class="award-title">完结专场</text>
  34. <view class="award-content">
  35. <view class="sub-award">
  36. <text class="sub-title"> 脱洞盛宴征文活动</text>
  37. <text class="detail">月度脱洞专题拟获奖作品1260部总计奖金45万查看拟获奖名单请点击</text>
  38. <text class="link">2月完结专题奖励名单</text>
  39. </view>
  40. </view>
  41. </view> -->
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. components: {
  48. },
  49. data() {
  50. return {
  51. id : 0,
  52. detail : {},
  53. }
  54. },
  55. onLoad({id}) {
  56. this.id = id
  57. this.getNoticeDetail()
  58. },
  59. methods: {
  60. async getNoticeDetail(){
  61. this.detail = await this.$fetch('getNoticeById', {
  62. id : this.id
  63. });
  64. },
  65. }
  66. }
  67. </script>
  68. <style lang="scss">
  69. .announcement-container {
  70. background: #fff;
  71. .award-section {
  72. padding: 20rpx;
  73. .award-item {
  74. margin-bottom: 40rpx;
  75. .award-title {
  76. font-size: 32rpx;
  77. font-weight: bold;
  78. color: #333;
  79. margin-bottom: 20rpx;
  80. display: block;
  81. }
  82. .award-content {
  83. .sub-award {
  84. margin-bottom: 20rpx;
  85. .sub-title {
  86. font-size: 28rpx;
  87. color: #333;
  88. font-weight: 500;
  89. }
  90. .detail {
  91. font-size: 28rpx;
  92. color: #666;
  93. }
  94. .link {
  95. color: #007AFF;
  96. text-decoration: underline;
  97. font-size: 28rpx;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. }
  104. </style>