|
@@ -13,6 +13,7 @@ let infoImgOn = require('./../images/icon_info_on.png')
|
|
|
let iconArrowUp = require('./../images/icon_arrow_up.png')
|
|
|
let iconArrowDown = require('./../images/icon_arrow_down.png')
|
|
|
let iconMark = require('./../images/icon_mark.png')
|
|
|
+let warnImg = require('./../images/icon_warning.png')
|
|
|
|
|
|
|
|
|
const $ = require("jquery");
|
|
@@ -166,9 +167,9 @@ $(document).on('click',".allDis .right,.allDis .secDis",function(){
|
|
|
|
|
|
|
|
|
function moreInfo() {
|
|
|
- $('.moreInfo').click(function(){
|
|
|
- const name = $(this).attr('data-name')
|
|
|
- const type = $(this).attr('data-type')
|
|
|
+ $('.infoImg').off("click").click(function(){
|
|
|
+ const name = $(this).parent().attr('data-name')
|
|
|
+ const type = $(this).parent().attr('data-type')
|
|
|
openNewWin(`information.html?type=${encodeURIComponent(type)}&position=0&name=${encodeURIComponent(name)}`)
|
|
|
})
|
|
|
}
|
|
@@ -293,6 +294,7 @@ function renderPushWarning(){
|
|
|
renderBillingPush(highRiskList,'高风险提示')
|
|
|
renderBillingPush(criticalValList,'危急值提醒')
|
|
|
renderBillingPush(noteList,'检查内容注意事项')
|
|
|
+ moreInfo()
|
|
|
// renderBillingPush(dubugStr,'注意调试信息')
|
|
|
|
|
|
}
|
|
@@ -333,13 +335,14 @@ function renderDiag(diagPush){
|
|
|
let warnNumber = $('.moduleItem.warning').attr("data-num") || 5
|
|
|
|
|
|
$('.moduleItem.diag').append(titleStr("diagPush"))
|
|
|
+ // let warningDiagPush = [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
// let firstDiagPush = [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
// let identifyDiagPush = diagPush["鉴别诊断"] || [{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
renderDiagItem(possibleDiagPush,"可能诊断",number)
|
|
|
renderDiagItem(firstDiagPush,"初步诊断",number)
|
|
|
renderDiagItem(identifyDiagPush,"鉴别诊断",number)
|
|
|
- // renderWarningDiag(warningDiagPush,"警惕",warnNumber)
|
|
|
-
|
|
|
+ renderWarningDiag(warningDiagPush,"警惕",warnNumber)
|
|
|
+ moreInfo()
|
|
|
}
|
|
|
|
|
|
function renderDiagItem(list,name,number){
|
|
@@ -360,12 +363,12 @@ function renderWarningDiag(list,name,number){
|
|
|
if(list.length > 0 && $(".moduleItem.warning").length > 0){
|
|
|
moduleNum++
|
|
|
$('.moduleItem.warning').append()
|
|
|
- let str = ``
|
|
|
+ let str = `<span class="warningTitle"><img class="warningTitImg" src=${warnImg}>警惕</span>`
|
|
|
for(let i = 0; i < list.length; i++){
|
|
|
str+= renderPushItem(list[i].name,1,true)
|
|
|
}
|
|
|
$('.moduleItem.warning').append(str)
|
|
|
- $('.moduleItem.lis').css("display","block")
|
|
|
+ $('.moduleItem.warning').css("display","block")
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -464,7 +467,7 @@ function renderItemWrapper(list,showNum,type,hasInfo){
|
|
|
|
|
|
function renderPushItem(name,type,hasInfo){
|
|
|
if(hasInfo){
|
|
|
- str= `<span class="pushItemBox"><span class="pushItemName">${name}</span><img class="infoImg" src="${infoImg}"></span>`
|
|
|
+ str= `<span class="pushItemBox" data-name="${name}" data-type="${type}"><span class="pushItemName">${name}</span><img class="infoImg" src="${infoImg}"></span>`
|
|
|
}else{
|
|
|
str= `<span class="pushItemBox">${name}</span>`
|
|
|
}
|
|
@@ -493,7 +496,7 @@ function bindSlide(){
|
|
|
function renderModuleWrapper(moduleList){
|
|
|
let moduleStr = ''
|
|
|
for(let i = 0; i < moduleList.length; i++){
|
|
|
- // if(moduleList[i].status !='0'){
|
|
|
+ if(moduleList[i].status !='0'){
|
|
|
if(moduleList[i].code == 'treat'){
|
|
|
moduleStr += `<div class="moduleItem medicine" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
moduleStr += `<div class="moduleItem operation" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
@@ -503,7 +506,7 @@ function renderModuleWrapper(moduleList){
|
|
|
}else{
|
|
|
moduleStr += `<div class="moduleItem ${moduleList[i].code }" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
}
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
$(".recommendWrap").append(moduleStr)
|