Blame view

src/pages/noticeInfo/index.vue 2.54 KB
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
  <template>
  <div class='container'>
    <p class="title">{{messageTitle}}</p>
    <div class="info">
      <p>{{messageContent}}</p>
      <!-- <p>通知,是运用广泛的知照性公文。用来发布法规、规章,转发上级机关、同级机关和不相隶属机关的公文,批转下级机关的公文,要求下级机关办理某项事务等。通知,一般由标题、主送单位(受文对象)、正文、落款四部分组成。</p>
      <p>公告,是指政府、团体对重大事件当众正式公布或者公开宣告,宣布。国务院2012年4月16日发布、2012年7月1日起施行的《党政机关公文处理工作条例》,对公告的使用表述为:“适用于向国内外宣布重要事项或者法定事项”。其中包含两方面的内容:一是向国内外宣布重要事项,公布依据政策、法令采取的重大行动等;二是向国内外宣布法定事项,公布依据法律规定告知国内外的有关重要规定和重大行动等。</p> -->
    </div>
    <p class="inscribe">{{sendDate}}</p>
    <p class="inscribe">{{publishingUnit}}</p>
  </div>
  </template>
  
  <script>
  export default {
    data() {
      return {
        notice:null,
        messageTitle: '',
        messageContent: '',
        sendDate: '',
        publishingUnit: ''
      }
    },
    methods: {
       //取通知公告详情
      getNoticeById()  {
        wx.request({
          url: this.rootUrl + '/notice/getNoticeById',
          data: { sessionID: wx.getStorageSync('sessionID'),
                   id: this.$root.$mp.query.id},
          success: res => {
            console.log(res.data)
            this.messageTitle = res.data.messageTitle
            this.messageContent = res.data.messageContent
            this.sendDate = this.service.correctTime(res.data.sendDate,'full')
            this.publishingUnit = res.data.publishingUnit
          }
        })
      }
    },
    onShow() {
      this.getNoticeById()
    },
    onUnload(){
      this.messageTitle = ''
      this.messageContent = ''
      this.sendDate = ''
      this.publishingUnit = ''
    }
  }
  </script>
  <style lang="stylus" scoped>
  .container
    position absolute
    Height_Width(100%)
    background-color #fff
    padding 30rpx
    box-sizing border-box
  .title
    margin-bottom 30rpx
    font-size 34rpx
    color #000
    font-weight bold
    line-height 60rpx
    overflow hidden
    text-overflow ellipsis
    display -webkit-box
    -webkit-line-clamp 2
    -webkit-box-orient vertical
  .info
    margin 30rpx 0
    color #333
    font-size 30rpx
    line-height 60rpx
  .info p
    text-indent 60rpx
  .inscribe
    color #666
    font-size 30rpx
    text-align right
    line-height 60rpx
  </style>