|
@@ -25,8 +25,8 @@ function getInfomation() {
|
|
|
"position": getUrlArgObject('position'),
|
|
|
"contentTypes":[1,2,3]
|
|
|
};
|
|
|
- const uname = getUrlArgObject('uname')
|
|
|
showName = param.name
|
|
|
+ $(".tabBox .title").html(showName);
|
|
|
|
|
|
post(config.information, param).then((res) => {
|
|
|
const data = res.data.data
|
|
@@ -116,26 +116,27 @@ function addLinkClickEvent(contentWrapClassName) {
|
|
|
|
|
|
function renderTab(detailList){
|
|
|
if(detailList['静态知识']){
|
|
|
- $(".tabList").append(`<span class="tab" data-module="staticKnowledge">静态知识</span>`)
|
|
|
- $(".tabBox .title").html(showName);
|
|
|
+ $(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="`+showName+`">静态知识</span>`)
|
|
|
}
|
|
|
if(detailList['临床路径']){
|
|
|
- $(".tabList").append(`<span class="tab" data-module="clinicalPathway">临床路径</span>`)
|
|
|
- $(".tabBox .title").html(clinicalPathwayName);
|
|
|
+ $(".tabList").append(`<span class="tab" data-module="clinicalPathway" data-title="`+clinicalPathwayName+`">临床路径</span>`)
|
|
|
+ //$(".tabBox .title").html(clinicalPathwayName);
|
|
|
}
|
|
|
if(detailList['注意事项']){
|
|
|
- $(".tabList").append(`<span class="tab" data-module="notice">注意事项</span>`)
|
|
|
- $(".tabBox .title").html(noticeName);
|
|
|
+ $(".tabList").append(`<span class="tab" data-module="notice" data-title="`+noticeName+`">注意事项</span>`)
|
|
|
+ //$(".tabBox .title").html(noticeName);
|
|
|
}
|
|
|
$(".tabList .tab").eq(0).addClass("activeTab")
|
|
|
let defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
|
|
|
$(`.${defaultModuleName}`).css("display","block")
|
|
|
bindTabClick()
|
|
|
}
|
|
|
+
|
|
|
function bindTabClick(){
|
|
|
$(".tabList .tab").on("click", function(){
|
|
|
const moduleName = $(this).attr("data-module")
|
|
|
const display = $(`.${moduleName}`).css("display")
|
|
|
+ $(".tabBox .title").html($(this).attr('data-title'));
|
|
|
if(display == "none"){
|
|
|
$(".activeTab").removeClass("activeTab")
|
|
|
$(this).addClass("activeTab")
|