Describe.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view class="container" v-if="isShow">
  3. <view class="contentBox">
  4. <view class="headerBox">
  5. <view class="title">{{NoticeTitle}}</view>
  6. </view>
  7. <view class="article">
  8. <!-- <bctos-rich-text :nodes="NoticeContent"></bctos-rich-text> -->
  9. <p class="articleTitle">1、积分规则</p>
  10. <p class="articleContent">(1)自贡随手拍举报隐患(安全生产、自然灾害、消防安全)的获1分/次,经有关部门核查属实的再获5分/次。</p>
  11. <p class="articleContent">(2)驳回虚假举报、恶意刷积分的扣除3分/次。</p>
  12. <p class="articleTitle">2、积分时间</p>
  13. <p class="articleContent">从每年1月1日起至当年年底(2025年积分时间为 : 2025年1月1日至2025年12月31日)。积分不做清零,积分可兑换商品。</p>
  14. <p class="articleTitle">3、积分补录说明</p>
  15. <p class="articleContent">从2025年1月1日起至2025年4月17日获得的积分将会在4月26日前陆续补录完成</p>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. var that;
  22. export default {
  23. data() {
  24. return {
  25. isShow: false,
  26. id: '',
  27. NoticeTitle: "积分说明",
  28. NoticeContent: '',
  29. }
  30. },
  31. onLoad(option) {
  32. that = this;
  33. that.id = decodeURIComponent(option.id);
  34. that.isShow = true;
  35. // this.getData();
  36. },
  37. methods: {
  38. getData() {
  39. that.$admin.reqDirect({
  40. method: 'GET',
  41. url: '/api/v1/Snapshot/bulletions/' + that.id
  42. }).then(res => {
  43. if (res) {
  44. that.NoticeTitle = res.title;
  45. that.NoticeDate = res.creationTime ? that.$util.formatTime(new Date(res.creationTime)) : '';
  46. that.NoticeContent = res.content.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, reSrc) {
  47. var strImg = '<img src="' + reSrc + '" style="width:100%;" />';
  48. return strImg;
  49. });
  50. that.NoticeBMName = '';
  51. }
  52. that.isShow = true;
  53. }, err => {
  54. that.$util.msg(err);
  55. })
  56. },
  57. onBackTo() {
  58. uni.navigateBack();
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="less">
  64. .contentBox {
  65. height: calc(100% - 30rpx);
  66. padding: 0 20rpx 30rpx;
  67. overflow-y: auto;
  68. }
  69. .headerBox {
  70. border-bottom: 1px #d2d2d2 solid;
  71. padding: 40rpx 0 20rpx;
  72. }
  73. .title {
  74. font-size: 36rpx;
  75. font-weight: bold;
  76. margin-bottom: 20rpx;
  77. text-align: center;
  78. }
  79. .time{
  80. font-size: 30rpx;
  81. color: #666666;
  82. text-align: right;
  83. }
  84. .timecenter {
  85. font-size: 30rpx;
  86. color: #666666;
  87. text-align: center;
  88. }
  89. .article {
  90. font-size: 28rpx;
  91. background-color: #FFFFFF;
  92. color: #777;
  93. padding: 30rpx 0;
  94. line-height: 2.5;
  95. }
  96. .bottomBox {
  97. padding-bottom: 20rpx;
  98. }
  99. .author {
  100. text-align: right;
  101. }
  102. .articleTitle{
  103. width: 100%;
  104. color: #fe0000;
  105. font-size: 36rpx;
  106. line-height: 50rpx;
  107. margin-bottom: 20rpx;
  108. }
  109. .articleContent{
  110. width: 100%;
  111. font-size: 32rpx;
  112. line-height: 50rpx;
  113. margin-bottom: 30rpx;
  114. color: #333;
  115. }
  116. </style>