|
@@ -78,7 +78,7 @@ function getInfomation() {
|
|
|
$(".showWhichSelect").html(sName).attr("title", sName)
|
|
|
showName = data[selectedDrop].name + "(" + data[selectedDrop].hisName + ")";
|
|
|
showInfoSelect()
|
|
|
- showInfo(data[selectedDrop])
|
|
|
+ showInfo(data[selectedDrop],1)
|
|
|
renderTitleShow();
|
|
|
$('.content img').bind('contextmenu', function () {
|
|
|
return false
|
|
@@ -94,7 +94,7 @@ function showEmpty() {
|
|
|
$(".tabBox").html(str).css("border-bottom", "none");
|
|
|
$("body").css('background', '#fff');
|
|
|
}
|
|
|
-function showInfo(data) {
|
|
|
+function showInfo(data,type) {
|
|
|
var detailList = data.details
|
|
|
var scale = data.scale
|
|
|
var staticKnowList = detailList['静态知识']
|
|
@@ -109,7 +109,9 @@ function showInfo(data) {
|
|
|
// "borderBottom": "4px solid #E9E9E9",
|
|
|
// "padding": "0px 60px 50px 0px"
|
|
|
// });
|
|
|
- renderTab(detailList, scale)
|
|
|
+ if(type == 1){
|
|
|
+ renderTab(detailList, scale)
|
|
|
+ }
|
|
|
staticKnowList&&renderContent(staticKnowList,'staticKnowledge')
|
|
|
noticeInfo&&renderContent(noticeInfo,'notice')
|
|
|
clinicalPathwayInfo&&renderContent(clinicalPathwayInfo,'clinicalPathway')
|
|
@@ -122,8 +124,7 @@ function showInfoSelect(){
|
|
|
selectedDrop = idx;
|
|
|
selectedTab = 0;
|
|
|
showName = showLis[idx].name + "(" + showLis[idx].hisName + ")";
|
|
|
- // showInfo(showLis[idx])
|
|
|
-
|
|
|
+ showInfo(showLis[idx],2)
|
|
|
$('.content .infos').scrollTop(0)
|
|
|
$(".showWhich ul").css("display", "none")
|
|
|
$(".showWhichSelect").html(name).attr("title", name)
|
|
@@ -137,8 +138,9 @@ function showInfoSelect(){
|
|
|
$(".showWhich ul").css("display", "none")
|
|
|
})
|
|
|
}
|
|
|
-function renderTitleShow(name) {
|
|
|
+function renderTitleShow() {
|
|
|
document.title = showName;
|
|
|
+ // $(".titleCont .title").html($(".tabList .tab:eq(" + selectedTab + ")").attr("data-title"));
|
|
|
$(".titleCont .title").html($(".showWhich .showWhichSelect").attr("title"));
|
|
|
}
|
|
|
function renderContent(list, contentWrapClassName) {
|
|
@@ -183,6 +185,7 @@ function renderContent(list, contentWrapClassName) {
|
|
|
}
|
|
|
|
|
|
function renderContentscale(list, contentWrapClassName, name) {
|
|
|
+ $(`.${contentWrapClassName} .infos .infos-box`).html('');
|
|
|
var pushInfo = []
|
|
|
var textType = []
|
|
|
for (var i = 0; i < list[0].detailList.length; i++) {
|
|
@@ -540,6 +543,9 @@ function renderTab(detailList, scale) {
|
|
|
$(".tabList .tab").eq(0).addClass("activeTab")
|
|
|
defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
|
|
|
}
|
|
|
+ if (detailList['静态知识'] == undefined) {
|
|
|
+ $(".tabList .tab").eq(0).removeClass("activeTab")
|
|
|
+ }
|
|
|
$(`.${defaultModuleName}`).css("display", "block")
|
|
|
bindTabClick()
|
|
|
}
|