|
@@ -34,7 +34,7 @@ async function getUserInfo() {
|
|
|
if (res.Ret === 200) {
|
|
|
userInfo.value = res.Data
|
|
|
isLogin.value = userInfo.value.LoginStatus === 0
|
|
|
- TrialExpired.value = userInfo.value.User.TrialExpired
|
|
|
+ TrialExpired.value = userInfo.value.User?.TrialExpired
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -42,7 +42,7 @@ async function getUserInfo() {
|
|
|
|
|
|
const reportId = route.query.reportid
|
|
|
const reportInfo = ref(null)
|
|
|
-const isBind=ref(false)
|
|
|
+const reportStatus = ref(true) // 是否可以查看研报
|
|
|
async function getReportInfo() {
|
|
|
if (!reportId) return
|
|
|
const res = await apiReport.getPdfReportDetail({
|
|
@@ -50,7 +50,7 @@ async function getReportInfo() {
|
|
|
})
|
|
|
if (res.Ret === 200) {
|
|
|
reportInfo.value = res.Data
|
|
|
- isBind.value=res.Data.IsSignIn
|
|
|
+ reportStatus.value=res.Data.Status === 1
|
|
|
|
|
|
// 设置分享文案
|
|
|
wx.miniProgram.postMessage({
|
|
@@ -117,7 +117,7 @@ function handleGoLogin(){
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
- <div :class="['report-detail-page', isLogin || TrialExpired ? 'report-detail_hidden' : '']" v-if="reportInfo">
|
|
|
+ <div :class="['report-detail-page', isLogin || TrialExpired || !reportStatus ? 'report-detail_hidden' : '']" v-if="reportInfo">
|
|
|
<div class="title-box">{{ reportInfo.Title }}</div>
|
|
|
<div class="author-box">
|
|
|
<span>{{ reportInfo.Author }}</span>
|
|
@@ -167,7 +167,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="" />
|