<template>
  <view>
    <div class="msg-wrapper">
      <div class="msg-title">{{ noticeName }}</div>
      <div class="msg-content" v-html="noticeContent"></div>
    </div>
  </view>
</template>

<script>
export default {
  data() {
    return {
      noticeName: '',
      noticeContent: ''
    }
  },
  onLoad(opt) {
    opt = JSON.parse(opt.params)
    console.log('🚀 ~ onLoad ~ opt:', opt)
    this.noticeName = opt.noticeName
    this.noticeContent = opt.noticeContent
  }
}
</script>

<style lang="scss" scoped>
.msg-wrapper {
  margin: 10px;
  background: #fff;
  padding: 10px;
	border-radius: 5px;
  .msg-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .msg-content {
    font-size: 14px;
    line-height: 1.5;
  }
}
</style>
