zhangxc пре 5 година
родитељ
комит
acdaea6fd7
4 измењених фајлова са 22 додато и 6 уклоњено
  1. 9 1
      src/css/common.less
  2. 9 1
      src/html/information.html
  3. 2 2
      src/js/indexHorizontalDom.js
  4. 2 2
      src/js/indexVertDom.js

+ 9 - 1
src/css/common.less

@@ -5,4 +5,12 @@
 @colorWaring:#FF545B; //警惕
 @bgcPlan:#E3FEFE; //治疗
 @bgcMay:#FAEBEC; //疑似,警惕,可能
-@bgcModal:#DFEAFE; //弹窗头 
+@bgcModal:#DFEAFE; //弹窗头 
+.disCopy {
+    -webkit-touch-callout: none;
+    -webkit-user-select: none;
+    -khtml-user-select: none;
+    -moz-user-select: none;
+    -ms-user-select: none;
+    user-select: none;
+}

Разлика између датотеке није приказан због своје велике величине
+ 9 - 1
src/html/information.html


+ 2 - 2
src/js/indexHorizontalDom.js

@@ -166,7 +166,7 @@ function renderScaleInfo(icon, className,title, data) {
 
 function renderTreatText(className,title,data, parentNode) {
     const childrenNodeBoxStr = `
-        <div class = "treatItemBox ${className + 'box'}">
+        <div class = "treatItemBox ${className + 'box'} disCopy">
             <p class="treatItemTitle">${title}:</p>
             <div class="treatTextBox">
                 <p class="${className + 'Info'} clearfix"></p>
@@ -262,7 +262,7 @@ function renderTipsInfo(icon, className,title,data) {
     if(data.length === 0) {
         str = `<div class="informationBox tipsInfoWrapper ${className} clearfix">
             <p class="diagName recommendNull">暂无数据</p>
-            <div class="tipsInfoBox clearfix ${className + 'box'}"></div>
+            <div class="tipsInfoBox clearfix ${className + 'box'} disCopy"></div>
         </div>`
     } else {
         str = `<div class="informationBox tipsInfoWrapper ${className} clearfix">

+ 2 - 2
src/js/indexVertDom.js

@@ -100,7 +100,7 @@ function renderMultRecommendInfo(className,title,data, hasInfo, type, position)
 function renderTipsInfo(className,title, data) {
     const str = `<div class="recommendInfoWrapper ${className}">
                     <h4><i></i>${title}</h4>
-                    <div class="recommendInfoBox clearfix ${className + 'box'}"></div>
+                    <div class="recommendInfoBox clearfix ${className + 'box'} disCopy"></div>
                 </div>`
     $('.recommendWrap').append(str)
     if(data.length > 0) {
@@ -174,7 +174,7 @@ function renderTreat(className,title, data) {
 
 function renderTreatText(className,title,data, parentNode) {
     const childrenNodeBoxStr = `
-        <div class = "treatItemBox ${className + 'box'}">
+        <div class = "treatItemBox ${className + 'box'} disCopy">
             <p class="treatItemTitle">${title}</p>
             <p class="${className + 'Info'} clearfix"></p>
         </div>