Info.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <view>
  3. <view style="padding:0 40rpx 20rpx;box-sizing: border-box" v-if="content != null">
  4. <view style="font-size: 34rpx;font-weight: bold;color: #303133;margin-top: 20rpx;">
  5. {{content.noticeTitle}}
  6. </view>
  7. <!-- <view style="font-size: 30rpx;color:#606266;padding: 20rpx 0;">
  8. 发布人:
  9. </view> -->
  10. <view style="font-size: 28rpx;color:#909399;margin: 20rpx 0;display: flex;align-items: center;">
  11. <view>
  12. {{$u.timeFormat(content.publishTime, 'yyyy-mm-dd hh:MM:ss')}}
  13. </view>
  14. <view style="margin-left: 40rpx;">
  15. {{content.createBy}}
  16. </view>
  17. </view>
  18. <u-divider></u-divider>
  19. <view>
  20. <u-parse :content="content.noticeContent"></u-parse>
  21. </view>
  22. <view style="border-radius: 8rpx;background-color: #f3f3f3;margin-top: 40rpx;padding: 20rpx 40rpx;"
  23. v-if="content.fjFiles != null && content.fjFiles.length != 0">
  24. <view style="display: flex;align-items: center;margin-bottom: 20rpx;f">
  25. <u-icon name="file-text-fill" color="#000"></u-icon>
  26. 附件
  27. </view>
  28. <view style="margin-bottom: 30rpx;" v-for="v in content.fjFiles" :key="v.fileId">
  29. <u--text :lines="1" size="15" color="#2979FF" decoration="underline" :text="v.name"
  30. @click="downLoad(v)"></u--text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. content: []
  41. }
  42. },
  43. onLoad(options) {
  44. uni.$u.http.get('/system/notice/' + options.id).then((res) => {
  45. console.log(res)
  46. this.content = res.data
  47. })
  48. },
  49. methods: {
  50. }
  51. }
  52. </script>
  53. <style>
  54. </style>