info.vue 836 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <view class="notice-net iPhone-bottom flex-common-css box-border-box">
  3. <Nav title='通知详情' bgckgroundBox='#fff'></Nav>
  4. <view class="scroll-view-css box-border-box p-32">
  5. <view class="fs-40 fw-600 mb-12">{{obj.title||''}}</view>
  6. <view class="fs-24 fw-400 mb-18">{{obj.created_date||''}}</view>
  7. <view class="fs-30 fw-400" v-html="obj.content"></view>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. import {noticeInfo} from '@/api/notice.js';
  13. export default {
  14. data(){
  15. return{
  16. id:'',
  17. obj:{},
  18. }
  19. },
  20. onLoad(e) {
  21. this.id = e.id;
  22. this.getInfo();
  23. },
  24. methods:{
  25. getInfo(){
  26. noticeInfo({id:this.id}).then((res)=>{
  27. if(res.code === 1){
  28. this.obj = res.data;
  29. }
  30. })
  31. },
  32. },
  33. }
  34. </script>
  35. <style scoped lang="scss">
  36. .notice-net{
  37. background-color: #fff;
  38. }
  39. </style>