db 2 years ago
parent
commit
e63fbf79d4

+ 5 - 0
src/router/cygx/index.js

@@ -4,6 +4,11 @@ export const cygxRoutes = [
     name: "raiReportDtl",
     component: () => import("@/views/cygx/raiReportDtl.vue"),
   },
+  {
+    path: "/strategyReport",
+    name: "strategyReport",
+    component: () => import("@/views/cygx/strategyReport.vue"),
+  },
   {
     path: "/cygx",
     name: "cygx",

+ 1 - 1
src/views/cygx/dlg.vue

@@ -3,7 +3,7 @@
     <div class="text">
       <h1>免责声明</h1>
       <p >
-        本文为用户投稿,用户在平台中发表的所有资料、言论等仅代表个人观点,与本平台立场无关,不对您构成任何投资建议。上海察研对文中陈述、观点判断保持中立,不对所包含内容及数据的真实性、准确性、可靠性或完整性提供任何明示或暗示的保证。请读者仅作参考,并请自行承担全部责任。
+        本文为用户投稿,用户在平台中发表的所有资料、言论等仅代表个人观点,与本平台立场无关,不对您构成任何投资建议。本机构对文中陈述、观点判断保持中立,不对所包含内容及数据的真实性、准确性、可靠性或完整性提供任何明示或暗示的保证。请读者仅作参考,并请自行承担全部责任。
       </p>
       <!-- <template>
         <p>1、本报告仅供弘则弥道(上海)投资咨询有限公司正式签约的机构客户使用,不会仅因接收人/接受机构收到本报告而将其视为客户。</p>

+ 3 - 4
src/views/cygx/index.scss

@@ -3,7 +3,9 @@
     width: 1200px;
     margin:  0 auto;
   }
-  padding: 54px 34px 34px 34px;
+  padding: 54px 34px 150px 34px;
+  padding-bottom: calc(150px + constant(safe-area-inset-bottom));
+  padding-bottom: calc(150px + env(safe-area-inset-bottom));
   position: relative;
   z-index: 5;
   @media screen and (min-width:790px) {
@@ -15,9 +17,6 @@
   }
   .host-collect {
     margin-top: 20px;
-    padding-bottom: 100px;
-    padding-bottom: calc(100px + constant(safe-area-inset-bottom));
-    padding-bottom: calc(100px + env(safe-area-inset-bottom));
     h4 {
       font-size: 28px;
       @media screen and (min-width:790px) {

+ 22 - 14
src/views/cygx/raiReportDtl.vue

@@ -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();
   }

+ 28 - 0
src/views/cygx/strategyReport.vue

@@ -0,0 +1,28 @@
+<script setup>
+import { onMounted, ref } from "vue";
+import { useRoute } from "vue-router";
+const route = useRoute();
+const srcUrl = ref("");
+onMounted(() => {
+  srcUrl.value = route.query.url
+});
+</script>
+
+<template>
+  <div class="container-strategy">
+    <iframe :src="srcUrl" class="strategy-iframe" frameborder="0" />
+  </div>
+</template>
+
+<style lang="scss" scoped>
+.container-strategy {
+  height: 100vh;
+  padding-bottom: 100px;
+  padding-bottom: calc(100px + constant(safe-area-inset-bottom));
+  padding-bottom: calc(100px + env(safe-area-inset-bottom));
+  .strategy-iframe {
+    width: 100%;
+    height: 100%;
+  }
+}
+</style>