Browse Source

Merge branch 'ch/ht_3.0' of eta_mini/eta_mini_h5 into master_ht

leichen 3 months ago
parent
commit
71e8755f0d
2 changed files with 12 additions and 1 deletions
  1. 9 0
      src/views/report/Detail.vue
  2. 3 1
      src/views/report/PDF.vue

+ 9 - 0
src/views/report/Detail.vue

@@ -562,6 +562,12 @@ function goDetails(item){
     :deep(img) {
       width: 100% !important;
     }
+    :deep(table) {
+      max-width: 100% !important;
+    }
+    :deep(div) {
+      max-width: 100% !important;
+    }
     :deep(span) {
       font-size: 36px !important;
       line-height: 1.8 !important;
@@ -621,6 +627,9 @@ function goDetails(item){
         }
       }
     }
+    :deep(.report-drag-item-wrap_child-wrap) {
+      display: block !important;
+    }
   }
   .right-fix-box {
     position: fixed;

+ 3 - 1
src/views/report/PDF.vue

@@ -27,6 +27,7 @@ const isLogin=ref(true)
 const productId = route.query.productId
 const isSubscribe=ref(true)
 const isFree=ref(true)
+const pdfUrl = ref('')
 const authorInfoList=ref([])
 const visible = ref(false);
 const subscribeStatus = ref('')//expired --过期 unSubscribe--未订阅 subscribed--订阅中
@@ -44,6 +45,7 @@ async function getReportInfo() {
     riskLevelStatus.value=res.data.riskLevelStatus
     isSubscribe.value=res.data.isSubscribe
     isFree.value=res.data.isFree
+    pdfUrl.value = 'https://weapp.htfutures.com/pdf/aggregate/' + reportInfo.value.pdfUrl.split('aggregate/')[1]
     subscribeStatus.value=res.data.subscribeStatus
     authorInfoList.value= res.data.authorInfo
     getAuthorFollowState()
@@ -212,7 +214,7 @@ function goDetails(item){
       <div>{{ reportInfo.abstract }}</div>
     </div>
     <div class="report-content">
-      <preview-PDF :url="reportInfo.pdfUrl" v-if="reportInfo.pdfUrl" />
+      <preview-PDF :url="pdfUrl" v-if="pdfUrl" />
     </div>
     <!-- 右侧悬浮操作栏 -->
     <div class="right-fix-box">