morningDetails.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="container morning-details-content">
  3. <view class="report-content-title">{{ reportDetails.Title }} </view>
  4. <view class="content-time">
  5. <text>{{ reportDetails.Department }} </text>
  6. <text class="time">{{ reportDetails.PublishTime }} </text>
  7. </view>
  8. <!-- 这里是循环的盒子 -->
  9. <view class="report-ul" v-for="item in reportDetails.List" :key="item.Id">
  10. <view class="li-title">{{ item.IndustryName }}</view>
  11. <view class="li-text">
  12. <mp-html :content="strFontSize(item.Content)" />
  13. </view>
  14. <view class="li-look" @click="goDustrialHandler(item.IndustryId)">查看资源包</view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import { Reports } from "@/config/api.js";
  20. export default {
  21. data() {
  22. return {
  23. reportDetails: {},
  24. reportId: "",
  25. };
  26. },
  27. methods: {
  28. // 跳转产业标签
  29. goDustrialHandler(id) {
  30. uni.navigateTo({
  31. url: "/reportPages/IndustryReport/IndustryReport?id=" + id,
  32. });
  33. },
  34. // 获取文章详情
  35. async getDetalis() {
  36. const res = await Reports.getMorningMeetingDetail({
  37. Id: this.reportId,
  38. });
  39. if (res.Ret === 200) {
  40. this.reportDetails = res.Data.Detail || {};
  41. }
  42. },
  43. },
  44. onLoad(options) {
  45. this.reportId = Number(options.id) || 8;
  46. this.getDetalis();
  47. },
  48. };
  49. </script>
  50. <style scoped lang="scss">
  51. .morning-details-content {
  52. padding: 30rpx;
  53. color: #333333;
  54. font-size: 32rpx;
  55. .content-time {
  56. font-size: 28rpx;
  57. padding: 20rpx 0 30rpx 0;
  58. display: flex;
  59. justify-content: space-between;
  60. border-bottom: 2rpx dashed #ececec;
  61. .time {
  62. color: #707070;
  63. }
  64. }
  65. .report-ul {
  66. .li-title {
  67. margin: 30rpx 0 10rpx;
  68. font-weight: 500;
  69. }
  70. .li-text {
  71. margin-bottom: 30rpx;
  72. }
  73. .li-look {
  74. display: flex;
  75. justify-content: flex-end;
  76. font-size: 28rpx;
  77. color: #3385ff;
  78. margin-bottom: 70rpx;
  79. }
  80. }
  81. }
  82. </style>