|
@@ -60,8 +60,6 @@ async function getReportInfo() {
|
|
|
title: res.Data.Report.Title
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
- handleAddReadReportRecord()
|
|
|
}
|
|
|
}
|
|
|
getReportInfo()
|
|
@@ -71,29 +69,6 @@ function formatIframeData() {
|
|
|
reportContent.value = reportInfo.value.Content.replace(/\/chartshow\?code=/g, `/chartshow?source=etamini&token=${localStorage.getItem('token')}&reportId=${reportId}&code=`)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-// 用户阅读埋点
|
|
|
-let recordId = 0
|
|
|
-function handleAddReadReportRecord() {
|
|
|
- apiReport.addReportReadRecord({
|
|
|
- RecordId: recordId,
|
|
|
- ReportId: Number(reportId),
|
|
|
- ReportTitle: reportInfo.value.Title,
|
|
|
- ClassifyIdFirst: reportInfo.value.ClassifyIdFirst,
|
|
|
- ClassifyNameFirst: reportInfo.value.ClassifyNameFirst,
|
|
|
- ClassifyIdSecond: reportInfo.value.ClassifyIdSecond,
|
|
|
- ClassifyNameSecond: reportInfo.value.ClassifyNameSecond,
|
|
|
- }).then(res => {
|
|
|
- if (res.Ret === 200) {
|
|
|
- console.log('记录成功');
|
|
|
- recordId = res.Data.RecordId
|
|
|
- }
|
|
|
- })
|
|
|
-}
|
|
|
-onBeforeUnmount(() => {
|
|
|
- handleAddReadReportRecord()
|
|
|
-})
|
|
|
-
|
|
|
// 拨打电话
|
|
|
function handleCallPhone() {
|
|
|
let tel = ''
|
|
@@ -116,7 +91,6 @@ function handleCallPhone() {
|
|
|
link.click();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// 点击收藏
|
|
|
async function handleCollect() {
|
|
|
const res = reportCollected.value ? await apiReport.reportCollectCancel({ ReportId: Number(reportId) }) : await apiReport.reportCollect({ ReportId: Number(reportId) })
|