Browse Source

pdf替换域名

chenlei 3 months ago
parent
commit
c14600e45c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/views/report/PDF.vue

+ 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">