浏览代码

Merge branch 'xqc_243'

jwyu 6 月之前
父节点
当前提交
b88fa6cb3f

+ 2 - 2
package.json

@@ -9,8 +9,8 @@
   },
   "dependencies": {
     "@fullcalendar/core": "^5.10.1",
-    "@fullcalendar/interaction": "^5.10.1",
     "@fullcalendar/daygrid": "^5.10.1",
+    "@fullcalendar/interaction": "^5.10.1",
     "@fullcalendar/timegrid": "^5.10.1",
     "@fullcalendar/vue3": "^5.10.1",
     "@vant/touch-emulator": "^1.3.2",
@@ -20,7 +20,7 @@
     "moment": "^2.29.1",
     "normalize.css": "^8.0.1",
     "vant": "^3.3.4",
-    "vue": "^3.2.16",
+    "vue": "^3.5.2",
     "vue-pdf-embed": "^1.1.6",
     "vue-router": "^4.0.12",
     "vuex": "^4.0.2"

+ 7 - 0
src/api/hzyb/common.js

@@ -34,4 +34,11 @@ export const apiReportingErrInfo=params=>{
         page:window.location.href
     }
     return post('/public/wechat_warning',{content:JSON.stringify(obj)})
+}
+
+/**
+ * 获取基本配置
+ */
+export const apiBaseConfig=()=>{
+    return get('/base/business_conf',{})
 }

+ 43 - 0
src/views/hzyb/components/Disclaimer.vue

@@ -0,0 +1,43 @@
+<script setup>
+import { ref } from 'vue'
+import { apiBaseConfig } from '@/api/hzyb/common'
+import {Popup} from 'vant'
+
+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>
+  <Popup :show="show" @close="show = false" round closeable>
+    <div class="disclaimers-box">
+      <div
+        style="
+          text-align: center;
+          font-size: 16px;
+          font-weight: bold;
+          margin-bottom: 20px;
+        "
+      >
+        免责声明
+      </div>
+      <div v-html="disclaimer"></div>
+    </div>
+  </Popup>
+</template>
+
+<style lang="scss" scoped>
+.disclaimers-box{
+        width: 94vw;
+        padding: 32px;
+    }
+</style>

+ 4 - 14
src/views/hzyb/report/ChapterDetail.vue

@@ -124,19 +124,7 @@
     </div>
 
     <!-- 免责声明 -->
-    <van-popup :show="showDisclaimers" @close="showDisclaimers = false" round closeable>
-      <div class="disclaimers-box">
-        <div style="text-align: center; font-size: 16px; font-weight: bold; margin-bottom: 20px">免责声明</div>
-        <div style="margin-bottom: 10rpx">1、本报告仅供弘则弥道(上海)投资咨询有限公司正式签约的机构客户使用,不会因接收人/接收机构收到本报告而将其视为客户。</div>
-        <div style="margin-bottom: 10rpx"
-          >2、本报告根据国际和行业通行的准则,以合法渠道获得这些信息,尽可能保证可靠、准确和完整,但并不保证报告所述信息的准确性和完整性,也不保证本报告所包含的信息或建议在本报告发出后不会发生任何变更。本报告中所提供的信息仅供参考。</div
-        >
-        <div style="margin-bottom: 10rpx"
-          >3、报告中的内容不对投资者做出的最终操作建议做任何的担保,也没有任何形式的分享投资收益或者分担投资损失的书面或口头承诺。不作为客户在投资、法律、会计或税务等方面的最终操作建议,也不作为道义的、责任的和法律的依据或者凭证,无论是否已经明示或者暗示。</div
-        >
-        <div style="margin-bottom: 10rpx">4、在任何情况下,本公司不对客户/接收人/接收机构因使用报告中内容所引致的一切损失负责任,客户/接收人/接收机构需自行承担全部风险。</div>
-      </div>
-    </van-popup>
+    <Disclaimer v-model:show="showDisclaimers"/>
 
     <!-- 申请提示弹窗 -->
     <van-popup :show="pupData.show" @close="pupData.show=false" :close-on-click-overlay="false">
@@ -196,6 +184,7 @@ import _ from 'lodash';
 import collectIcon from '@/assets/hzyb/collect-icon.png'
 import collectIcons from '@/assets/hzyb/collect-icon-s.png'
 import reportCancel from './components/reportCancel.vue'
+import Disclaimer from '../components/Disclaimer.vue'
 export default {
   components:{
     [Popup.name]:Popup,
@@ -210,7 +199,8 @@ export default {
     AudioBox,
     SharePoster,
     LeaveMessage,
-    reportCancel
+    reportCancel,
+    Disclaimer
   },
   computed:{
     code_scene(){

+ 4 - 10
src/views/hzyb/report/Detail.vue

@@ -196,15 +196,7 @@
         </div>
 
         <!-- 免责声明 -->
-        <van-popup :show="showDisclaimers" @close="showDisclaimers=false" round closeable>
-            <div class="disclaimers-box">
-                <div style="text-align:center;font-size:16px;font-weight:bold;margin-bottom:20px">免责声明</div>
-                <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>
-        </van-popup>
+        <Disclaimer v-model:show="showDisclaimers"/>
 
         <!-- 申请提示弹窗 -->
         <van-popup :show="pupData.show" @close="pupData.show=false" :close-on-click-overlay="false">
@@ -239,6 +231,7 @@ import LeaveMessage from '../components/leaveMessage/index.vue'
 import collectIcon from '@/assets/hzyb/collect-icon.png'
 import collectIcons from '@/assets/hzyb/collect-icon-s.png'
 import reportCancel from './components/reportCancel.vue'
+import Disclaimer from '../components/Disclaimer.vue'
 
 export default {
     components:{
@@ -251,7 +244,8 @@ export default {
         AudioBox,
         SharePoster,
         LeaveMessage,
-        reportCancel
+        reportCancel,
+        Disclaimer
     },
     computed:{
         code_scene(){