|
@@ -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()
|
|
@@ -153,14 +155,14 @@ function handleGoTestRisk(){
|
|
|
|
|
|
//跳转购买
|
|
|
function goPrimary(){
|
|
|
- wx.miniProgram.reLaunch({
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
url: `/pages-order/payPage/index?id=${productId}`
|
|
|
})
|
|
|
}
|
|
|
|
|
|
// 跳转研究员详情页
|
|
|
function goDetails(item){
|
|
|
- wx.miniProgram.reLaunch({
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
url:'/pages-user/authordetail/index?id='+item.id
|
|
|
})
|
|
|
}
|
|
@@ -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">
|
|
@@ -291,7 +293,7 @@ function goDetails(item){
|
|
|
<div class="authorList-box" v-for="(item, index) in authorInfoList" :key="index">
|
|
|
<div class="img-list-box" @click="goDetails(item)">
|
|
|
<img
|
|
|
- :src="authorInfoList?.[0].headImgUrl|| defaultImg"
|
|
|
+ :src="item?.headImgUrl|| defaultImg"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="name-list-box" @click="goDetails(item)">
|