|
@@ -26,7 +26,7 @@
|
|
|
<div style="display: flex">
|
|
|
<img :src="reportInfo.DepartmentImgUrl" @click="goAuthorPages" />
|
|
|
<div class="research-author">
|
|
|
- <p @click="goAuthorPages" >{{ reportInfo.SellerAndMobile }}</p>
|
|
|
+ <p @click="goAuthorPages">{{ reportInfo.SellerAndMobile }}</p>
|
|
|
<p class="time">{{ reportInfo.PublishDate }}</p>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -101,7 +101,7 @@
|
|
|
<script setup>
|
|
|
import { reactive, onMounted, toRefs, ref } from "vue";
|
|
|
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 dlg from "./dlg.vue";
|
|
|
const router = useRouter();
|
|
@@ -134,28 +134,28 @@ const toggle = () => {
|
|
|
url: "/pageMy/freeTrial/freeTrial",
|
|
|
});
|
|
|
};
|
|
|
-const isShowFreeBtn = ref(false)
|
|
|
+const isShowFreeBtn = ref(false);
|
|
|
|
|
|
//隐藏当天的按钮
|
|
|
const removeBton = async () => {
|
|
|
const res = await FreeButton.userFreeButtonUpdate();
|
|
|
- if(res.Ret ===200) {
|
|
|
+ if (res.Ret === 200) {
|
|
|
isShowFreeBtn.value = false;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const userIsShowFreeButton = async () => {
|
|
|
- const res = await FreeButton.userIsShowFreeButton()
|
|
|
- if(res.Ret ===200) {
|
|
|
- isShowFreeBtn.value = res.Data.IsShow
|
|
|
+ const res = await FreeButton.userIsShowFreeButton();
|
|
|
+ if (res.Ret === 200) {
|
|
|
+ isShowFreeBtn.value = res.Data.IsShow;
|
|
|
}
|
|
|
-}
|
|
|
+};
|
|
|
// 跳转到作者页面
|
|
|
-const goAuthorPages = () => {
|
|
|
- wx.miniProgram.navigateTo({
|
|
|
- url: "/reportPages/authorPages/authorPages?id=" + state.reportInfo.DepartmentId,
|
|
|
- });
|
|
|
-}
|
|
|
+const goAuthorPages = () => {
|
|
|
+ wx.miniProgram.navigateTo({
|
|
|
+ url: "/reportPages/authorPages/authorPages?id=" + state.reportInfo.DepartmentId,
|
|
|
+ });
|
|
|
+};
|
|
|
const downloadFile = async () => {
|
|
|
Toast.loading({
|
|
|
message: "下载中...",
|
|
@@ -385,11 +385,19 @@ onMounted(() => {
|
|
|
let access_token = route.query.token || "";
|
|
|
localStorage.setItem("access_token", access_token);
|
|
|
getReport(rerportId.value, access_token, from_type.value);
|
|
|
- userIsShowFreeButton()
|
|
|
+ userIsShowFreeButton();
|
|
|
if (from_type.value == "mpwechat") {
|
|
|
document.addEventListener("copy", (e) => {
|
|
|
copyMonitor();
|
|
|
});
|
|
|
+ } else if (from_type.value == "manage") {
|
|
|
+ router.push({
|
|
|
+ path: "/cygx/report",
|
|
|
+ query: {
|
|
|
+ id: rerportId.value,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ return;
|
|
|
}
|
|
|
researcharticleHotList();
|
|
|
}
|