|
@@ -83,9 +83,10 @@ function renderRecommendInfo(showNum, icon, className,title,data, hasInfo, type,
|
|
|
|
|
|
//化验和辅检等多种类型
|
|
|
function renderMultRecommendInfo(labsAndPacMode,icon, className,title,data, hasInfo, type, position) {
|
|
|
+ console.log(labsAndPacMode)
|
|
|
const str = `<div class="recommendInfoWrapper ${className} clearfix">
|
|
|
- <h4><img src=${icon} title="${title}" class="icon">${title}:</h4>
|
|
|
- <div class="recommendInfoBox ${className + 'box'}"></div>
|
|
|
+ <h4 class ="${+labsAndPacMode === 1 ? 'showTopTitle':'showRightTitle'}"><img src=${icon} title="${title}" class="icon">${title}:</h4>
|
|
|
+ <div class="recommendInfoBox ${className + 'box'} ${+labsAndPacMode === 1 ? 'showTopInfo':'showRightInfo'}"></div>
|
|
|
</div>`
|
|
|
$('.push').append(str)
|
|
|
|
|
@@ -96,7 +97,7 @@ function renderMultRecommendInfo(labsAndPacMode,icon, className,title,data, hasI
|
|
|
<div class="labAndPacsBox ${data[i].className+'box'} clearfix">
|
|
|
</div>
|
|
|
</div>`
|
|
|
- let childrenNodeStr = `<span class="labAndPacsTitle">${data[i].title}<i></i></span>`
|
|
|
+ let childrenNodeStr = `<span class="labAndPacsTitle ${+labsAndPacMode === 1 ? 'topSmallTitle':'rightSmallTitle'}"">${data[i].title}<i></i></span>`
|
|
|
let childrenNodeItemStrAll = '' //更多展开框中的字符串
|
|
|
let dataShort
|
|
|
if(showNum&& dataLen > showNum) {
|