Publicize.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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">答:“自贡安全卫士”是授予积极发现、举报并协助消除安全隐患的市民的荣誉称号。</p>
  11. <p class="articleTitle">2、怎么成为“自贡安全卫士”?</p>
  12. <p class="articleContent">(1)直接举报授予:通过各种渠道举报重大安全生产隐患、自然灾害重大风险、消防安全重大隐患,经相关部门核实属实的。</p>
  13. <p class="articleContent">(2)积分评比授予:通过“自贡随手拍”举报安全隐患可获得对应积分(排行榜显示),年度总积分排名前十名(直接授予者不在此列)。</p>
  14. <p class="articleTitle">3、 有什么奖励?</p>
  15. <p class="articleContent">(1)安全卫士获得者奖励现金5000元,并在就业、公共交通给与优先政策。</p>
  16. <p class="articleContent">(2)安全卫士获得者可获得灯会、恐龙博物馆、盐业历史博物馆等减免政策,两年组织一次外出学习。</p>
  17. <p class="articleContent">(3)积分获得者平台积分可兑换充电宝、水杯等物品。</p>
  18. <p class="articleTitle">4、 积分规则?</p>
  19. <p class="articleContent">(1)自贡随手拍举报隐患(安全生产、自然灾害、消防安全)的获1分/次,经有关部门核查属实的再获5分/次。</p>
  20. <p class="articleContent">(2)驳回虚假举报、恶意刷积分的扣除3分/次。</p>
  21. <p class="articleTitle">5、 积分时间</p>
  22. <p class="articleContent">从每年1月1日起至当年年底(2025年积分时间为 : 2025年1月1日至2025年12月31日)。积分不做清零,积分可兑换商品。</p>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. var that;
  29. export default {
  30. data() {
  31. return {
  32. isShow: false,
  33. id: '',
  34. NoticeTitle: "自贡安全卫士公示",
  35. NoticeContent: '',
  36. }
  37. },
  38. onLoad(option) {
  39. that = this;
  40. that.id = decodeURIComponent(option.id);
  41. that.isShow = true;
  42. // this.getData();
  43. },
  44. methods: {
  45. getData() {
  46. that.$admin.reqDirect({
  47. method: 'GET',
  48. url: '/api/v1/Snapshot/bulletions/' + that.id
  49. }).then(res => {
  50. if (res) {
  51. that.NoticeTitle = res.title;
  52. that.NoticeDate = res.creationTime ? that.$util.formatTime(new Date(res.creationTime)) : '';
  53. that.NoticeContent = res.content.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/gi, function(match, reSrc) {
  54. var strImg = '<img src="' + reSrc + '" style="width:100%;" />';
  55. return strImg;
  56. });
  57. that.NoticeBMName = '';
  58. }
  59. that.isShow = true;
  60. }, err => {
  61. that.$util.msg(err);
  62. })
  63. },
  64. onBackTo() {
  65. uni.navigateBack();
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="less">
  71. .contentBox {
  72. height: calc(100% - 30rpx);
  73. padding: 0 20rpx 30rpx;
  74. overflow-y: auto;
  75. }
  76. .headerBox {
  77. border-bottom: 1px #d2d2d2 solid;
  78. padding: 40rpx 0 20rpx;
  79. }
  80. .title {
  81. font-size: 36rpx;
  82. font-weight: bold;
  83. margin-bottom: 20rpx;
  84. text-align: center;
  85. }
  86. .time{
  87. font-size: 30rpx;
  88. color: #666666;
  89. text-align: right;
  90. }
  91. .timecenter {
  92. font-size: 30rpx;
  93. color: #666666;
  94. text-align: center;
  95. }
  96. .article {
  97. font-size: 28rpx;
  98. background-color: #FFFFFF;
  99. color: #777;
  100. padding: 30rpx 0;
  101. line-height: 2.5;
  102. }
  103. .bottomBox {
  104. padding-bottom: 20rpx;
  105. }
  106. .author {
  107. text-align: right;
  108. }
  109. .articleTitle{
  110. width: 100%;
  111. color: #fe0000;
  112. font-size: 36rpx;
  113. line-height: 50rpx;
  114. margin-bottom: 20rpx;
  115. }
  116. .articleContent{
  117. width: 100%;
  118. font-size: 32rpx;
  119. line-height: 50rpx;
  120. margin-bottom: 30rpx;
  121. color: #333;
  122. }
  123. </style>