Эх сурвалжийг харах

中文免责声明配置化

cxmo 1 жил өмнө
parent
commit
2c5dbc603a

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
 VITE_APP_BASE_URL="/"
 VITE_APP_OUTDIR="eta_report_front"
 
-VITE_APP_BASEAPIURL="/api"
+VITE_APP_BASEAPIURL="https://share.hzinsights.com/api"

+ 1 - 1
src/style/mixin.scss

@@ -2,5 +2,5 @@
 $screen-width: 37.5;
 
 @function rem($px) {
-  	@return $px / $screen-width * 1rem;
+  	@return calc($px / $screen-width) * 1rem;
 }

+ 9 - 2
src/views/report/reportDetail.vue

@@ -110,7 +110,7 @@
           >
             免责声明
           </h1>
-          <p>
+          <!-- <p>
             1、本报告仅供弘则弥道(上海)投资咨询有限公司正式签约的机构客户使用,不会仅因接收人/接受机构收到本报告而将其视为客户。
           </p>
           <p>
@@ -121,7 +121,8 @@
           </p>
           <p>
             4、在任何情况下,本公司不对客户/接受人/接受机构因使用报告中内容所引致的一切损失负责任,客户/接受人/接受机构需自行承担全部风险。
-          </p>
+          </p> -->
+          <div class="disclaimer" v-html="Disclaimer"></div>
           <p
             @click="hideTips"
             style="
@@ -170,6 +171,7 @@ export default {
       page_no: 0,
       pageSize: 20, //默认初始加载50个p标签
       total_page: 0,
+      Disclaimer:''
     };
   },
   mounted() {
@@ -258,8 +260,10 @@ export default {
     async getreportdetail() {
       const { Data,Ret  } = await reportDetail({ ReportCode: this.id });
         if (Ret !== 200) return
+        console.log('data',Data)
 
         this.reportInfo = Data.Report;
+        this.Disclaimer = Data.Disclaimer||'';
         this.isshow = true;
 
         this.splitContentHandle(this.reportInfo.Content);
@@ -441,6 +445,9 @@ export default {
     left: 0;
     background: rgba(0, 0, 0, 0.6);
     z-index: 200;
+    .disclaimer{
+        font-size: 0.58rem;
+    }
   }
 }
 </style>