Browse Source

ie8样式bug、8926

zhouna 3 years ago
parent
commit
3b10279336
6 changed files with 10 additions and 13 deletions
  1. 3 4
      src/css/cdss.less
  2. 3 6
      src/html/caseWriteStandard.html
  3. BIN
      src/images/dot.png
  4. BIN
      src/images/tip-bg.png
  5. 1 0
      src/js/caseWriteStandard.js
  6. 3 3
      src/js/cdss.js

+ 3 - 4
src/css/cdss.less

@@ -322,10 +322,9 @@ body{
     top:0;
     left: 2px;
     border-radius:8px;
-    width: 15px;
-    height: 15px;
-    background: #FDBE26;
-    box-shadow: 0px 1px 1px 0px #816522;
+    width: 17px;
+    height: 17px;
+    background: url("../images/tip-bg.png") no-repeat;
     font-size: 12px;
     text-align: center;
     color: #fff;

+ 3 - 6
src/html/caseWriteStandard.html

@@ -36,12 +36,9 @@
     .content{
       padding:20px 0 0 60px;
     }
-    .content>div:before{
-      content: "·";
-      color: #FF7F5B;
-      font-size: 38px;
-      vertical-align: text-bottom;
-      margin-right: 3px;
+    .content>div{
+      background: url("../images/dot.png") 0 10px no-repeat;
+      text-indent: 10px;
     }
     .container {
       background: #fff;

BIN
src/images/dot.png


BIN
src/images/tip-bg.png


+ 1 - 0
src/js/caseWriteStandard.js

@@ -1,5 +1,6 @@
 const $ = require("jquery");
 const {getUrlArgObject} = require('./promise.js');
+require('./../images/dot.png').replace(/^undefined/g, '')
 
 $(function(){
   let caseWriteStandradList = JSON.parse(getUrlArgObject("caseWriteStandradList")) || {}

+ 3 - 3
src/js/cdss.js

@@ -201,7 +201,7 @@ function moreInfo() {
         const type = $(this).parents(".pushItemBox").attr('data-type')
         openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&mrId=${encodeURIComponent(mrId)}`)
     })
-    $('.evaluationtitle').off("click").click(function () {
+    $('.evaluationtitle .item-name').off("click").click(function () {
         const name = $(this).parents(".pushItemBox").attr('data-name')
         const type = $(this).parents(".pushItemBox").attr('data-type')
         openNewWin(`staticInfo.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}&page=1&mrId=${encodeURIComponent(mrId)}&gauge=gauge`)
@@ -413,7 +413,6 @@ function renderWriteStandard(){
       const list = res.data.data || {}
       let casewritingNum = $(".moduleItem.casewriting").attr("data-num") || 5
       renderwriteStandardPage(list,casewritingNum)
-      empty();
     }
   })
 }
@@ -446,6 +445,7 @@ function  renderwriteStandardPage(list,casewritingNum){
     $('.moduleItem.casewriting').css("display","block")
     updatePopNum();
     bindSlideCaseWriting()
+    empty();
   }
 }
 function renderBillingPush(list,name,code){
@@ -650,7 +650,7 @@ function renderItemWrapper(list, showNum) {
 function renderPushItem(item) {
   const infoIcon = `${ item.hasInfo == "1" ? `<img class="infoImg" src="${infoImg}">` : "" }`;
   str = `<span class="pushItemBox" data-name="${item.name}" data-type="${item.type}">`
-  str += `<span class="pushItemName ${item.hasScale == "1" ? 'evaluationtitle':''}"><i>${item.type == 8 ? ('【' + item.name + '】') : item.name}</i> ${infoIcon}<i class="hidden-i"></i></span>`
+  str += `<span class="pushItemName ${item.hasScale == "1" ? 'evaluationtitle':''}"><i class="item-name">${item.type == 8 ? ('【' + item.name + '】') : item.name}</i> ${infoIcon}<i class="hidden-i"></i></span>`
   str+=`</span>`;
   return str
 }