|
@@ -28,10 +28,6 @@ const loadedPDF=()=>{
|
|
|
showHint.value = false
|
|
|
}
|
|
|
const getPDFDetail = (pdf_id)=>{
|
|
|
- LOADING = ElLoading.service({
|
|
|
- target:'.preview-pdf-wrap',
|
|
|
- text:'正在加载PDF'
|
|
|
- })
|
|
|
apiGetPDFDetail({pdf_id}).then(res=>{
|
|
|
if(res.code!==200) return
|
|
|
pdfState.pdf_url = res.data.pdf_url
|
|
@@ -47,13 +43,13 @@ const handleDataToXcx=()=>{
|
|
|
pdf_id:Number(route.query.pdf_id)||0,
|
|
|
},
|
|
|
title:pdfState.pdf_name||'',
|
|
|
- imgUrl:'https://hzstatic.hzinsights.com/static/images/yb/report_pdf_share_cover.png'
|
|
|
+ shareImg:'https://hzstatic.hzinsights.com/static/images/yb/report_pdf_share_cover.png'
|
|
|
}
|
|
|
wx.miniProgram.postMessage({ data: postData })
|
|
|
}
|
|
|
|
|
|
//检查权限
|
|
|
-const checkRight = async()=>{
|
|
|
+const checkRight = async()=>{
|
|
|
const res = await apiUserInfo()
|
|
|
if(res.code!==200) return
|
|
|
if(['试用','正式','永续'].includes(res.data.status)){
|
|
@@ -91,8 +87,12 @@ const handleApply = ()=>{
|
|
|
})
|
|
|
|
|
|
}
|
|
|
-onMounted(()=>{
|
|
|
- checkRight()
|
|
|
+onMounted(async ()=>{
|
|
|
+ LOADING = ElLoading.service({
|
|
|
+ target:'.preview-pdf-wrap',
|
|
|
+ text:'正在加载PDF'
|
|
|
+ })
|
|
|
+ await checkRight()
|
|
|
getPDFDetail(Number(route.query.pdf_id))
|
|
|
//handleDataToXcx()
|
|
|
})
|