morningDlg.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view class="morning-dlg">
  3. <van-popup :show="isMorningShow" @close="onClose" round>
  4. <view class="close-iocn">
  5. <van-icon @click="onClose" color="#333" name="cross" />
  6. </view>
  7. <view class="content">
  8. <view class="content-box">
  9. <view class="report-content-title">{{ morningItem.IndustryName }}</view>
  10. <view class="content-body">
  11. <mp-html :content="strFontSize(morningItem.Content)" />
  12. </view>
  13. </view>
  14. <view class="bottom-btn">
  15. <view class="btn" @click="lookPrevious"> 查看往期汇总</view>
  16. <view class="btn" @click="lookDetails"> 查看资源包</view>
  17. </view>
  18. </view>
  19. </van-popup>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. isMorningShow: {
  26. type: Boolean,
  27. default: false,
  28. required: true,
  29. },
  30. morningItem: {
  31. type: Object,
  32. default: {},
  33. required: true,
  34. },
  35. },
  36. data() {
  37. return {
  38. show: false,
  39. };
  40. },
  41. methods: {
  42. // 关闭弹框
  43. onClose() {
  44. this.$emit("update:isMorningShow", false);
  45. },
  46. // 查看往期汇总
  47. lookPrevious() {
  48. uni.navigateTo({
  49. url: "/reportPages/morningAll/morningAll",
  50. });
  51. this.onClose();
  52. },
  53. // 查看资源包
  54. lookDetails() {
  55. uni.navigateTo({
  56. url: "/reportPages/IndustryReport/IndustryReport?id=" + this.morningItem.IndustryId,
  57. });
  58. this.onClose();
  59. },
  60. },
  61. };
  62. </script>
  63. <style scope lang="scss">
  64. .morning-dlg {
  65. .close-iocn {
  66. padding: 25rpx 35rpx;
  67. display: flex;
  68. justify-content: flex-end;
  69. }
  70. .content {
  71. width: 632rpx;
  72. background-color: #fff;
  73. padding: 0rpx 30rpx 100rpx 30rpx;
  74. .content-box {
  75. width: 100%;
  76. min-height: 400rpx;
  77. max-height: 830rpx;
  78. overflow: hidden;
  79. overflow-y: auto;
  80. }
  81. .bottom-btn {
  82. position: fixed;
  83. bottom: 0;
  84. left: 0;
  85. width: 100%;
  86. height: 82rpx;
  87. display: flex;
  88. align-items: center;
  89. background-color: #fff;
  90. border-top: 1rpx solid #f0f0f0;
  91. color: #376cbb;
  92. .btn {
  93. flex: 1;
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. height: 100%;
  98. }
  99. :first-child {
  100. border-right: 3rpx solid #f0f0f0;
  101. }
  102. }
  103. .content-body {
  104. margin-top: 15rpx;
  105. }
  106. }
  107. .report-content-title {
  108. text-align: center;
  109. }
  110. }
  111. </style>