|
@@ -139,7 +139,7 @@ function renderMultRecommendInfo(labsAndPacMode,icon, className,title,data, hasI
|
|
|
function renderTreat(icon, className,title, data) {
|
|
|
$('.infoTabBox').append(`<span class="infoTab treatTab boldFont" data-box="${className}">${title}</span>`)
|
|
|
const str = `<div class="informationBox recommendInfoWrapper ${className} clearfix">
|
|
|
- <span class="diagName boldFont">${msg.diseaseName?msg.diseaseName:''}</span>
|
|
|
+ <p class="diagName boldFont">${msg.diseaseName?msg.diseaseName:''}</p>
|
|
|
<div class="recommendInfoBox clearfix ${className + 'box'}"></div>
|
|
|
</div>`
|
|
|
$('.infomationBox').append(str)
|
|
@@ -207,12 +207,13 @@ function renderTreatDrug(className,title,data, parentNode) {
|
|
|
}
|
|
|
for(let i = 0; i < data.length; i++) {
|
|
|
let childrenNodeStr =`<div class = "drugTreatmentInfoItemBox">
|
|
|
- <p class="diagTitle"><i></i>${data[i].title}</p>`
|
|
|
- for(let j = 0; j < data[i].meditionDetails.length; j++) {
|
|
|
- if(data[i].meditionDetails[j].description) {
|
|
|
- childrenNodeStr += `<p class="diaDescription">${data[i].meditionDetails[j].description}</p>`
|
|
|
- }
|
|
|
- }
|
|
|
+ <p class="diagTitle ellipsis"><i></i>${data[i].title}</p>`
|
|
|
+ //二级标题暂时不放
|
|
|
+ // for(let j = 0; j < data[i].meditionDetails.length; j++) {
|
|
|
+ // if(data[i].meditionDetails[j].description) {
|
|
|
+ // childrenNodeStr += `<p class="diaDescription">${data[i].meditionDetails[j].description}</p>`
|
|
|
+ // }
|
|
|
+ // }
|
|
|
childrenNodeStr +=`</div>`
|
|
|
$('.' + className+'Info').append(childrenNodeStr)
|
|
|
}
|