Browse Source

样式调整

luolei 4 years ago
parent
commit
9d49452b30
3 changed files with 16 additions and 10 deletions
  1. 12 5
      src/css/cdssHorizontal.less
  2. 3 4
      src/js/followUp.js
  3. 1 1
      webpack.config.js

+ 12 - 5
src/css/cdssHorizontal.less

@@ -348,7 +348,6 @@
     height: 27px;
     line-height: 27px;
     color: #777777;
-    margin-bottom: 10px;
     padding-left: 10px;
 }
 .operaNameBold {
@@ -356,10 +355,15 @@
     font-weight: bold;
 }
 .infoWrap {
-    max-height: 186px;
+    max-height: 207px;
     overflow: auto;
+    padding-top: 8px;
+    box-sizing: border-box;
     .infoBox {
         padding-left: 10px;
+        &:hover {
+            background-color: #fff;
+        }
     }
     .infoBox p {
         color: #1E1E1E;
@@ -370,10 +374,13 @@
 .readMorePlan {
     height: 30px;
     line-height: 30px;
-    color: #3B9ED0;
-    cursor: pointer;
-    text-decoration: underline;
     padding-left: 10px;
+    a {
+        display: inline-block;
+        cursor: pointer;
+        color: #3B9ED0;
+        text-decoration: underline;
+    }
 }
 .checkFront {
     position: relative;

+ 3 - 4
src/js/followUp.js

@@ -43,7 +43,7 @@ function renderDetailHorizontal(data){
        const pacsArr = item.pacs || []
        let lisStr=``
        let pacsStr=``
-       let title = `<p>${getTime(item.examineDate)}${item.description&&(item.description)}</p>`
+       let title = `<p>${getTime(item.examineDate)}${item.description&&(item.description)}</p>`
        for(let i = 0; i < lisArr.length; i++){
         lisStr += `<div style="position:relative"><span class="circle"></span>${lisArr[i]}</div>`
        }
@@ -62,11 +62,11 @@ function renderDetailHorizontal(data){
            </div>
        </div>`
    }
-   $(".followUpWrap").append(`<div class="infoWrap">${str}<div class="readMorePlan">查看更多计划</div></div>`)
+   $(".followUpWrap").append(`<div class="infoWrap">${str}<div class="readMorePlan"><a>查看更多计划</a></div></div>`)
     showMoreCheck()
 }
 function showMoreCheck(){
-  $(".readMorePlan").on("click", function(){
+  $(".readMorePlan a").on("click", function(){
     openNewWin(`cdssPlan.html?mrId=${mrId}&hospitalId=${hospitalId}`)
   })
 }
@@ -105,7 +105,6 @@ function renderDetail(data){
        }
       
    }
-   console.log($(".followUpWrap")[0])
    $(".followUpWrap").append(`<div class="infoWrap" id="infoWrap">
         <div class="historyWrap">${historyStr}</div>
         <div class="laterWrap">${laterStr}</div>

+ 1 - 1
webpack.config.js

@@ -4,7 +4,7 @@ const CleanWebpackPlugin = require('clean-webpack-plugin') // 清空打包目录
 const MiniCssExtractPlugin = require('mini-css-extract-plugin');
 const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
 const webpack = require('webpack');
-const proxyHost = "http://192.168.2.236:6060";
+const proxyHost = "http://192.168.2.241:6060";
 module.exports = {
   entry: {
     index: path.resolve(__dirname, 'src/js', 'index.js'),