morningDetails.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="container morning-details-content" v-if="isUserBindingPhoneNumber">
  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. <not-have-login v-else />
  18. </template>
  19. <script>
  20. import { Reports } from "@/config/api.js";
  21. import notHaveLogin from '@/components/notHaveLogin.vue';
  22. export default {
  23. components: { notHaveLogin },
  24. data() {
  25. return {
  26. reportDetails: {},
  27. reportId: "",
  28. };
  29. },
  30. methods: {
  31. // 跳转产业标签
  32. goDustrialHandler(id) {
  33. uni.navigateTo({
  34. url: "/reportPages/IndustryReport/IndustryReport?id=" + id,
  35. });
  36. },
  37. // 获取文章详情
  38. async getDetalis() {
  39. const res = await Reports.getMorningMeetingDetail({
  40. Id: this.reportId,
  41. });
  42. if (res.Ret === 200) {
  43. this.reportDetails = res.Data.Detail || {};
  44. }
  45. },
  46. },
  47. onLoad(options) {
  48. this.reportId = Number(options.id) || 8;
  49. this.getDetalis();
  50. },
  51. };
  52. </script>
  53. <style scoped lang="scss">
  54. .morning-details-content {
  55. padding: 30rpx;
  56. color: #333333;
  57. font-size: 32rpx;
  58. .content-time {
  59. font-size: 28rpx;
  60. padding: 20rpx 0 30rpx 0;
  61. display: flex;
  62. justify-content: space-between;
  63. border-bottom: 2rpx dashed #ececec;
  64. .time {
  65. color: #707070;
  66. }
  67. }
  68. .report-ul {
  69. .li-title {
  70. margin: 30rpx 0 10rpx;
  71. font-weight: 500;
  72. }
  73. .li-text {
  74. margin-bottom: 30rpx;
  75. }
  76. .li-look {
  77. display: flex;
  78. justify-content: flex-end;
  79. font-size: 28rpx;
  80. color: #3385ff;
  81. margin-bottom: 70rpx;
  82. }
  83. }
  84. }
  85. </style>