|
@@ -32,8 +32,9 @@ async function getUserInfo() {
|
|
|
const reportId = route.query.reportid
|
|
|
const reportInfo = ref(null)
|
|
|
const reportContent = ref('')
|
|
|
-const reportStatus = ref(0)//1已过期,2没有该品种权限,3没有权限,4有权限
|
|
|
+const reportStatus = ref(0)//1已过期,2没有该品种权限,3没有权限,4有权限,5未绑定
|
|
|
const reportCollected = ref(false)//报告是否收藏
|
|
|
+const isBind=ref(false)
|
|
|
async function getReportInfo() {
|
|
|
if (!reportId) return
|
|
|
const res = await apiReport.getReportDetail({
|
|
@@ -43,7 +44,7 @@ async function getReportInfo() {
|
|
|
reportInfo.value = res.Data.Report
|
|
|
reportStatus.value = res.Data.Status
|
|
|
reportCollected.value = res.Data.IsCollect || false
|
|
|
-
|
|
|
+ isBind.value=res.Data.IsSignIn
|
|
|
nextTick(() => {
|
|
|
handlePreviewImgs()
|
|
|
})
|
|
@@ -149,6 +150,10 @@ onUnmounted(() => {
|
|
|
window.removeEventListener('scroll', handlePageScroll)
|
|
|
})
|
|
|
|
|
|
+function handleGoLogin(){
|
|
|
+ wx.miniProgram.reLaunch({url:'/pages/login/index'})
|
|
|
+}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -211,6 +216,23 @@ onUnmounted(() => {
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!-- 未绑定 -->
|
|
|
+ <div class="no-auth-wrap" v-if="reportStatus === 5&&!isBind">
|
|
|
+ <div class="opcity-box"></div>
|
|
|
+ <div class="content-box">
|
|
|
+ <img class="icon" src="@/assets/imgs/lock-img.png" alt="" />
|
|
|
+ <div class="text">
|
|
|
+ 为了优化您的用户体验<br />请登录后查看更多信息!
|
|
|
+ </div>
|
|
|
+ <t-button
|
|
|
+ theme="primary"
|
|
|
+ block
|
|
|
+ style="width: 300px; margin: 30px auto"
|
|
|
+ @click="handleGoLogin"
|
|
|
+ >去登陆</t-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- 免责声明 -->
|
|
|
<disclaimers-wrap v-model:show="isShowMZSM" />
|
|
|
</template>
|