|
@@ -26,7 +26,7 @@ function getSystemConfig() {
|
|
|
getSystemConfig()
|
|
|
|
|
|
const isLogin = ref(false)
|
|
|
-const TrialExpired = ref(false)
|
|
|
+const TrialExpired = ref(false) // 试用到期
|
|
|
// 获取用户信息
|
|
|
let userInfo = null
|
|
|
async function getUserInfo() {
|
|
@@ -44,6 +44,7 @@ const reportId = route.query.reportid
|
|
|
const reportInfo = ref(null)
|
|
|
const headImgStyle=ref([])
|
|
|
const endImgStyle=ref([])
|
|
|
+const reportStatus = ref(true) // 是否可以查看研报
|
|
|
const layoutBaseInfo=ref({
|
|
|
'研报标题':'',
|
|
|
'研报作者':'',
|
|
@@ -56,6 +57,8 @@ async function getReportInfo() {
|
|
|
})
|
|
|
if (res.Ret === 200) {
|
|
|
reportInfo.value = res.Data.Report
|
|
|
+ // 判断是否有权限查看研报
|
|
|
+ reportStatus.value = res.Data.Status === 1
|
|
|
headImgStyle.value=res.Data.Report.HeadResource?.Style?JSON.parse(res.Data.Report.HeadResource.Style):[]
|
|
|
endImgStyle.value=res.Data.Report.EndResource?.Style?JSON.parse(res.Data.Report.EndResource.Style):[]
|
|
|
layoutBaseInfo.value['研报标题']=res.Data.Report.Title
|
|
@@ -213,7 +216,7 @@ function handleGoLogin(){
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div class="report-detail-page" v-if="reportInfo" :class="isLogin || TrialExpired ? 'fixation' : ''">
|
|
|
+ <div class="report-detail-page" v-if="reportInfo" :class="isLogin || TrialExpired || !reportStatus ? 'fixation' : ''">
|
|
|
<!-- 智能研报有版头版尾 -->
|
|
|
<div class="html-head-img-box" v-if="reportInfo?.HeadResource?.ImgUrl">
|
|
|
<img :src="reportInfo.HeadResource?.ImgUrl" alt="" style="display:block;width:100%">
|
|
@@ -314,7 +317,7 @@ function handleGoLogin(){
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 无权限 -->
|
|
|
- <div class="no-auth-wrap" v-else-if="TrialExpired">
|
|
|
+ <div class="no-auth-wrap" v-else-if="TrialExpired || !reportStatus">
|
|
|
<div class="opcity-box"></div>
|
|
|
<div class="content-box">
|
|
|
<img class="icon" src="@/assets/imgs/lock-img.png" alt="" />
|