Explorar o código

修改免责声明为掉接口(2385)

zhangxc %!s(int64=5) %!d(string=hai) anos
pai
achega
c461012f3f
Modificáronse 4 ficheiros con 9 adicións e 3 borrados
  1. 1 1
      src/html/index.html
  2. 8 0
      src/js/index.js
  3. 0 1
      src/js/indexHorizontal.js
  4. 0 1
      src/js/indexVertDom.js

+ 1 - 1
src/html/index.html

@@ -17,7 +17,7 @@
   <div class="bodyWrap">
       <div class="iframeWrap">
         <div class="recommendWrap"></div>
-        <p class="responsibility">以上推送为常见诊断及问诊内容,实际以医生临床判断为准</p>
+        <p class="responsibility"></p>
       </div>
       <div class="disclaimer clearfix">
         <span class="logo">&copy 朗通医疗</span>

+ 8 - 0
src/js/index.js

@@ -247,8 +247,16 @@ function getVersion() {
     }
   })
 }
+  function getDisclaimer() {
+    post(config.disclaimer, '').then((res) => {
+      const data = res.data.data.find(item => item.disclaimerCode == '2');
+      $(".responsibility").html(data.description);
+    })
+  }
+
 
 $(function(){
+  getDisclaimer(); //获取免责声明
   getVersion();   //获取版本信息
   $(".disclaimerInfo").on("click", function(){
     openNewWin("disclaimer.html")

+ 0 - 1
src/js/indexHorizontal.js

@@ -273,7 +273,6 @@ function getPageInfo() {
   })
 
 }
-
 function getVersion() {
   post(config.getVersion, '').then((res) => {
     const data = res.data.data;

+ 0 - 1
src/js/indexVertDom.js

@@ -39,7 +39,6 @@ function renderRecommendInfo(className,title,data, hasInfo, type, position) {
 }
 
 function renderMultRecommendInfo(className,title,data, hasInfo, type, position) {
-    console.log('data', data)
     const str = `<div class="recommendInfoWrapper ${className}">
                     <h4><i></i>${title}</h4>
                     <div class="recommendInfoBox ${className + 'box'}"></div>