noticeDetail.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <view>
  3. <view class="container">
  4. <view class="notice">
  5. <view class="justify-content">
  6. <view class="font-forty">
  7. 标题:{{title}}
  8. </view>
  9. <view class="font-twenty-eight gray" style="margin-top: 10px;">
  10. 创建时间:{{time}}
  11. </view>
  12. </view>
  13. <view class="font-thirty-two black" style="margin: 30rpx 0;">
  14. <rich-text :nodes="text"></rich-text>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. text: '',
  25. title: '',
  26. time: ''
  27. }
  28. },
  29. onLoad(options) {
  30. if ('params' in options) {
  31. let e = JSON.parse(decodeURIComponent(options.params));
  32. this.text = e.noticeContent;
  33. this.title = e.noticeTitle;
  34. this.time = e.createTime;
  35. }
  36. },
  37. methods: {
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .container {
  43. display: flex;
  44. margin-left: 10px;
  45. margin-top: 10px;
  46. margin-right: 10px;
  47. align-items: flex-start;
  48. justify-content: space-between;
  49. }
  50. .notice {
  51. margin: 20rpx;
  52. width: 100%;
  53. padding: 20rpx;
  54. background: #FFFFFF;
  55. box-shadow: 0rpx 8rpx 17rpx 0rpx rgba(0, 0, 0, 0.04);
  56. border-radius: 10rpx;
  57. }
  58. .text {
  59. border-left: 15rpx solid #3857F3;
  60. padding-left: 20rpx;
  61. }
  62. </style>