|
@@ -1,5 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div :class="['container-cygx', reportInfo.IsResearch && 'no-cv', reportInfo.IsSpecialArticle && 'container-cygx-bg']" v-show="haveData">
|
|
<div :class="['container-cygx', reportInfo.IsResearch && 'no-cv', reportInfo.IsSpecialArticle && 'container-cygx-bg']" v-show="haveData">
|
|
|
|
+ <trackForm v-model:isShowFollowButton="reportInfo.IsShowFollowButton" :sourceId="rerportId" v-model:isFollowData="reportInfo.IsFollowButton" />
|
|
<div class="z-index-content" ref="contentBox">
|
|
<div class="z-index-content" ref="contentBox">
|
|
<div class="content-top">
|
|
<div class="content-top">
|
|
<div class="report-title">{{ reportInfo.Title }}</div>
|
|
<div class="report-title">{{ reportInfo.Title }}</div>
|
|
@@ -105,6 +106,7 @@ import { useRouter, useRoute } from "vue-router";
|
|
import { RaiApi, FreeButton } from "@/api/cygx/api.js";
|
|
import { RaiApi, FreeButton } from "@/api/cygx/api.js";
|
|
import { Icon, Dialog, Toast } from "vant";
|
|
import { Icon, Dialog, Toast } from "vant";
|
|
import dlg from "./dlg.vue";
|
|
import dlg from "./dlg.vue";
|
|
|
|
+import trackForm from "./isTrackFollow.vue";
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
const state = reactive({
|
|
const state = reactive({
|
|
@@ -117,6 +119,8 @@ const haveData = ref(false);
|
|
const fileLink = ref(false);
|
|
const fileLink = ref(false);
|
|
const showTips = ref(false);
|
|
const showTips = ref(false);
|
|
const contentBox = ref(null);
|
|
const contentBox = ref(null);
|
|
|
|
+const isSendWx = ref("");
|
|
|
|
+
|
|
/* 访谈接口 */
|
|
/* 访谈接口 */
|
|
const interviewApi = () => {
|
|
const interviewApi = () => {
|
|
RaiApi.applyRpt({
|
|
RaiApi.applyRpt({
|
|
@@ -328,6 +332,7 @@ const getReport = (id, token, type) => {
|
|
RaiApi.reportDtl({
|
|
RaiApi.reportDtl({
|
|
ArticleId: id,
|
|
ArticleId: id,
|
|
Authorization: token,
|
|
Authorization: token,
|
|
|
|
+ IsSendWx:isSendWx.value
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
if (res.Ret === 200) {
|
|
if (res.Ret === 200) {
|
|
haveData.value = res.Data.HasPermission === 1 ? true : false;
|
|
haveData.value = res.Data.HasPermission === 1 ? true : false;
|
|
@@ -391,7 +396,8 @@ const lookDeeperReport = () => {
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
if (route.query.id) {
|
|
if (route.query.id) {
|
|
- rerportId.value = route.query.id;
|
|
|
|
|
|
+ rerportId.value = +route.query.id;
|
|
|
|
+ isSendWx.value = route.query.IsSendWx || "";
|
|
from_type.value = route.query.fromType;
|
|
from_type.value = route.query.fromType;
|
|
let access_token = route.query.token || "";
|
|
let access_token = route.query.token || "";
|
|
localStorage.setItem("access_token", access_token);
|
|
localStorage.setItem("access_token", access_token);
|
|
@@ -414,7 +420,7 @@ onMounted(() => {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
const { reportInfo, reportResearch } = toRefs(state);
|
|
const { reportInfo, reportResearch } = toRefs(state);
|
|
-// url: raiReportDtl?id=3001&token=20ec44c7fe0e02ff597c324406ce49ca6d949c0acd34f8f3775e5b5edbf8c44e&fromType=mpwechat
|
|
|
|
|
|
+// url: raiReportDtl?id=3001&token=20ec44c7fe0e02ff597c324406ce49ca4b6b838e1988df75bd82084a6c0672fc&fromType=mpwechat
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|