瀏覽代碼

Merge branch 'master' of http://8.136.199.33:3000/hongze/hongze_yb_pc into yh238

ldong 6 月之前
父節點
當前提交
a8aa0cb24e

+ 4 - 4
package.json

@@ -12,8 +12,8 @@
     "@element-plus/icons-vue": "^2.0.0-beta.0",
     "@fullcalendar/core": "5.11.0",
     "@fullcalendar/daygrid": "5.11.0",
-    "@fullcalendar/timegrid": "5.11.0",
     "@fullcalendar/interaction": "5.11.0",
+    "@fullcalendar/timegrid": "5.11.0",
     "@fullcalendar/vue3": "5.11.0",
     "@vueuse/core": "^9.0.0",
     "axios": "^0.26.0",
@@ -22,7 +22,7 @@
     "moment": "^2.29.1",
     "normalize.css": "^8.0.1",
     "vconsole": "^3.14.6",
-    "vue": "^3.2.25",
+    "vue": "^3.5.2",
     "vue-pdf-embed": "^1.1.6",
     "vue-router": "^4.0.12",
     "vuedraggable": "^4.1.0",
@@ -30,7 +30,7 @@
   },
   "devDependencies": {
     "@vitejs/plugin-vue": "^2.2.0",
-    "vite": "^2.8.0",
-    "sass": "^1.44.0"
+    "sass": "^1.44.0",
+    "vite": "^2.8.0"
   }
 }

+ 7 - 0
src/api/common.js

@@ -183,4 +183,11 @@ export const apiViewLogUpdate=params=>{
 // 获取手机号区号列表
 export const apiTelAraeNumList=()=>{
     return get('/public/tel_area_list',{})
+}
+
+/**
+ * 获取基本配置
+ */
+export const apiBaseConfig=()=>{
+    return get('/base/business_conf',{})
 }

+ 30 - 0
src/components/Disclaimer.vue

@@ -0,0 +1,30 @@
+<script setup>
+import { ref } from 'vue'
+import { apiBaseConfig } from '@/api/common'
+
+const show = defineModel('show', { type: Boolean, default: false })
+
+const disclaimer = ref('')
+function getConfig() {
+  apiBaseConfig().then(res => {
+    if (res.code == 200) {
+      disclaimer.value = res.data.disclaimer
+    }
+  })
+}
+getConfig()
+
+</script>
+
+<template>
+  <el-dialog v-model="show" title="免责声明" center draggable width="40%">
+    <div class="disclaimers-box" v-html="disclaimer"></div>
+  </el-dialog>
+</template>
+
+<style lang="scss" scoped>
+.disclaimers-box {
+  max-height: 60vh;
+  overflow: auto;
+}
+</style>

+ 1 - 1
src/views/activity/ChapterDetail.vue

@@ -92,7 +92,7 @@ const chapterTypeChange=(item)=>{
                     <span style="vertical-align: middle;color:#999999;display: inline-block;">弘则研究</span>
                 </div> -->
                 <div class="flex author">
-                    <span>FICC团队</span>
+                    <span>{{info.report_chapter_item.author}}</span>
                     <span class="time">{{moment(info2.researchReportDate).format('YYYY-MM-DD HH:mm:ss')}}</span>
                 </div>
                 <div class="tips">

+ 1 - 1
src/views/activity/ReportDetail.vue

@@ -133,7 +133,7 @@ let showDisclaimers=ref(false)
             <div class="section top-box">
                 <span class="title">【第{{info.research_report_info.periods}}期 | {{info.research_report_info.reportVariety}}】</span>
                 <div class="flex author">
-                    <span>FICC团队</span>
+                    <span>{{info.report_info.author}}</span>
                     <span class="time">{{moment(info.research_report_info.researchReportDate).format('YYYY-MM-DD HH:mm:ss')}}</span>
                 </div>
                 <div class="tips">

+ 3 - 9
src/views/report/ChapterDetail.vue

@@ -27,6 +27,7 @@ import {useWaterMark} from '@/hooks/waterMark.js'
 import {addTokenToIframe} from '@/utils/common.js'
 import reportCancel from './components/reportCancel.vue'
 import ReportContent from './components/ReportContent.vue'
+import Disclaimer from '@/components/Disclaimer.vue'
 
 const route=useRoute()
 const router=useRouter()
@@ -483,7 +484,7 @@ const posterParams=computed(()=>{
                         <template v-if="(!info.report_chapter_item.head_img) && (!info.report_chapter_item.end_img)">
                             <div class="title">【第{{info.report_chapter_item.stage}}期 | {{info.report_chapter_item.classify_name_first}}  | {{info.report_chapter_item.type_name}}】{{info.report_chapter_item.title}}({{moment(info.report_chapter_item.publish_time).format('MMDD')}})</div>
                             <div class="time">
-                                <span>FICC团队</span>
+                                <span>{{info.report_chapter_item.author}}</span>
                                 <span>{{moment(info.report_chapter_item.publish_time).format('YYYY.MM.DD HH:mm')}}</span>
                             </div>
                         </template>
@@ -675,14 +676,7 @@ const posterParams=computed(()=>{
     </div>
 
     <!-- 免责申明 -->
-    <el-dialog v-model="showDisclaimers" title="免责声明" center draggable width="40%">
-        <div class="disclaimers-box">
-            <div style="margin-bottom:10px">1、本报告仅供弘则弥道(上海)投资咨询有限公司正式签约的机构客户使用,不会因接收人/接收机构收到本报告而将其视为客户。</div>
-            <div style="margin-bottom:10px">2、本报告根据国际和行业通行的准则,以合法渠道获得这些信息,尽可能保证可靠、准确和完整,但并不保证报告所述信息的准确性和完整性,也不保证本报告所包含的信息或建议在本报告发出后不会发生任何变更。本报告中所提供的信息仅供参考。</div>
-            <div style="margin-bottom:10px">3、报告中的内容不对投资者做出的最终操作建议做任何的担保,也没有任何形式的分享投资收益或者分担投资损失的书面或口头承诺。不作为客户在投资、法律、会计或税务等方面的最终操作建议,也不作为道义的、责任的和法律的依据或者凭证,无论是否已经明示或者暗示。</div>
-            <div style="margin-bottom:10px">4、在任何情况下,本公司不对客户/接收人/接收机构因使用报告中内容所引致的一切损失负责任,客户/接收人/接收机构需自行承担全部风险。</div>
-        </div>
-    </el-dialog>
+    <Disclaimer v-model:show="showDisclaimers"/>
 </template>
 
 <style lang="scss" scoped>

+ 14 - 10
src/views/report/Detail.vue

@@ -20,6 +20,7 @@ import {addTokenToIframe} from '@/utils/common.js'
 import { onClickOutside } from '@vueuse/core'
 import reportCancel from './components/reportCancel.vue'
 import ReportContent from './components/ReportContent.vue'
+import Disclaimer from '@/components/Disclaimer.vue'
 moment.locale('zh-cn')
 
 const route=useRoute()
@@ -83,8 +84,18 @@ const getReportDetail=async ()=>{
         layoutBaseInfo.value['研报作者']=res.data.report_info.author
         // 已发布已通过的报告才显示发布时间
         layoutBaseInfo.value['创建时间']=moment(res.data.report_info.publish_time).format('YYYY.MM.DD HH:mm')
+        
+        if(!res.data.report_info.has_chapter) {
+            info.value.report_info.content=addTokenToIframe(res.data.report_info.content,res.data.report_info.report_id,0)
+        }
+
+        //章节拼接报告拼接iframe token
+        if(res.data.report_info.has_chapter&&res.data.report_detail_show_type===1) {
+            res.data.report_chapter_list.forEach(chapter => {
+                chapter.content = addTokenToIframe(chapter.content,reportId.value,chapter.report_chapter_id)
+            })
+        }
 
-        info.value.report_info.content=addTokenToIframe(res.data.report_info.content,res.data.report_info.report_id,0)
         audioData.value={
             auth_ok:res.data.auth_ok,
             video_name:res.data.report_info.video_name||`${res.data.report_info.title}(${moment(res.data.report_info.publish_time).format('MMDD')})`,
@@ -636,7 +647,7 @@ const closeShowAttentionPop=()=>{
                         <template v-if="(!info.report_info.head_img) && (!info.report_info.end_img)">
                             <div class="title">{{formatTitle(info.report_info)}}</div>
                             <div class="time">
-                                <span>FICC团队</span>
+                                <span>{{info.report_info.author}}</span>
                                 <span>{{moment(info.report_info.publish_time).format('YYYY.MM.DD HH:mm')}}</span>
                             </div>
                         </template>
@@ -827,14 +838,7 @@ const closeShowAttentionPop=()=>{
     
 
     <!-- 免责申明 -->
-    <el-dialog v-model="showDisclaimers" title="免责声明" center draggable width="40%">
-        <div class="disclaimers-box">
-            <div style="margin-bottom:10px">1、本报告仅供弘则弥道(上海)投资咨询有限公司正式签约的机构客户使用,不会因接收人/接收机构收到本报告而将其视为客户。</div>
-            <div style="margin-bottom:10px">2、本报告根据国际和行业通行的准则,以合法渠道获得这些信息,尽可能保证可靠、准确和完整,但并不保证报告所述信息的准确性和完整性,也不保证本报告所包含的信息或建议在本报告发出后不会发生任何变更。本报告中所提供的信息仅供参考。</div>
-            <div style="margin-bottom:10px">3、报告中的内容不对投资者做出的最终操作建议做任何的担保,也没有任何形式的分享投资收益或者分担投资损失的书面或口头承诺。不作为客户在投资、法律、会计或税务等方面的最终操作建议,也不作为道义的、责任的和法律的依据或者凭证,无论是否已经明示或者暗示。</div>
-            <div style="margin-bottom:10px">4、在任何情况下,本公司不对客户/接收人/接收机构因使用报告中内容所引致的一切损失负责任,客户/接收人/接收机构需自行承担全部风险。</div>
-        </div>
-    </el-dialog>
+    <Disclaimer v-model:show="showDisclaimers"/>
 
     <!-- 播放清单设置 -->
     <el-dialog v-model="showAudioPlayListSet" :close-on-click-modal="false" @closed="closeShowAttentionPop" custom-class="audioplaylist-popup" draggable width="40%">