|
@@ -25,6 +25,7 @@ const reportContent = ref('')
|
|
const isFollowed = ref(false)
|
|
const isFollowed = ref(false)
|
|
const authorInfo=ref(null)
|
|
const authorInfo=ref(null)
|
|
const isLogin=ref(false)
|
|
const isLogin=ref(false)
|
|
|
|
+const riskLevelStatus=ref('')//expired过期的 unTest未测评 unMatch风险等级不匹配
|
|
const headImgStyle = ref([])
|
|
const headImgStyle = ref([])
|
|
const endImgStyle = ref([])
|
|
const endImgStyle = ref([])
|
|
const layoutBaseInfo = ref({
|
|
const layoutBaseInfo = ref({
|
|
@@ -59,6 +60,7 @@ async function getReportInfo() {
|
|
authorInfo.value=authorInfo
|
|
authorInfo.value=authorInfo
|
|
reportInfo.value = detail
|
|
reportInfo.value = detail
|
|
isLogin.value=res.data.login
|
|
isLogin.value=res.data.login
|
|
|
|
+ riskLevelStatus.value=res.data.riskLevelStatus
|
|
headImgStyle.value = reportInfo.value.headResource.style ? JSON.parse(reportInfo.value.headResource.style) : []
|
|
headImgStyle.value = reportInfo.value.headResource.style ? JSON.parse(reportInfo.value.headResource.style) : []
|
|
endImgStyle.value = reportInfo.value.endResource.style ? JSON.parse(reportInfo.value.endResource.style) : []
|
|
endImgStyle.value = reportInfo.value.endResource.style ? JSON.parse(reportInfo.value.endResource.style) : []
|
|
layoutBaseInfo.value['研报标题'] = reportInfo.value.title
|
|
layoutBaseInfo.value['研报标题'] = reportInfo.value.title
|
|
@@ -313,7 +315,7 @@ function handleGoLogin() {
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 无权限\未登录 -->
|
|
<!-- 无权限\未登录 -->
|
|
- <div class="no-auth-wrap">
|
|
|
|
|
|
+ <div class="no-auth-wrap" v-if="!isLogin||['expired','unTest','unMatch'].includes(riskLevelStatus)">
|
|
<div class="opcity-box"></div>
|
|
<div class="opcity-box"></div>
|
|
<div class="content-box">
|
|
<div class="content-box">
|
|
<img class="icon" src="@/assets/imgs/lock-img.png" alt="" />
|
|
<img class="icon" src="@/assets/imgs/lock-img.png" alt="" />
|
|
@@ -327,6 +329,18 @@ function handleGoLogin() {
|
|
>去登陆</t-button
|
|
>去登陆</t-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <div class="text" v-if="riskLevelStatus==='expired'">您的风险测评已过期,请完成风险测评</div>
|
|
|
|
+ <div class="text" v-if="riskLevelStatus==='unTest'">您尚未进行风险测评,请完成风险测评</div>
|
|
|
|
+ <div class="text" v-if="riskLevelStatus==='unMatch'">您的风险等级无法查看此内容<br>请查看其他内容</div>
|
|
|
|
+ <t-button
|
|
|
|
+ theme="primary"
|
|
|
|
+ block
|
|
|
|
+ style="width: 300px; margin: 30px auto"
|
|
|
|
+ v-if="['expired','unTest'].includes(riskLevelStatus)"
|
|
|
|
+ >风险测评</t-button
|
|
|
|
+ >
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 免责声明 -->
|
|
<!-- 免责声明 -->
|
|
@@ -526,8 +540,7 @@ function handleGoLogin() {
|
|
.icon {
|
|
.icon {
|
|
display: block;
|
|
display: block;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
- width: 200px;
|
|
|
|
- height: 200px;
|
|
|
|
|
|
+ width: 100%;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|