|
@@ -24,7 +24,7 @@ let printing2 = require('./../images/printing2.png');
|
|
let recommend = require('./../images/recommend.png');
|
|
let recommend = require('./../images/recommend.png');
|
|
let hel = require('./../images/icon-hel.png');
|
|
let hel = require('./../images/icon-hel.png');
|
|
|
|
|
|
-let showName, noticeName, clinicalPathwayName, isclick,top = 0
|
|
|
|
|
|
+let showName, noticeName, clinicalPathwayName, clinicalGuidelineName, isclick, top = 0
|
|
function myBrowser() {
|
|
function myBrowser() {
|
|
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
|
|
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
|
|
var isOpera = userAgent.indexOf("Opera") > -1;
|
|
var isOpera = userAgent.indexOf("Opera") > -1;
|
|
@@ -38,7 +38,7 @@ function getInfomation() {
|
|
"type": getUrlArgObject('type'),
|
|
"type": getUrlArgObject('type'),
|
|
"name": getUrlArgObject('name'),
|
|
"name": getUrlArgObject('name'),
|
|
"position": getUrlArgObject('position'),
|
|
"position": getUrlArgObject('position'),
|
|
- "contentTypes": [1, 2, 3],
|
|
|
|
|
|
+ "contentTypes": [1, 2, 3, 4, 5],
|
|
"mrId": getUrlArgObject('mrId')
|
|
"mrId": getUrlArgObject('mrId')
|
|
};
|
|
};
|
|
showName = param.name
|
|
showName = param.name
|
|
@@ -56,18 +56,28 @@ function getInfomation() {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
var detailList = data.details
|
|
var detailList = data.details
|
|
|
|
+ console.log(data.details);
|
|
|
|
+
|
|
var scale = data.scale
|
|
var scale = data.scale
|
|
|
|
+
|
|
var staticKnowList = detailList['静态知识']
|
|
var staticKnowList = detailList['静态知识']
|
|
var noticeInfo = detailList['注意事项']
|
|
var noticeInfo = detailList['注意事项']
|
|
var clinicalPathwayInfo = detailList['临床路径']
|
|
var clinicalPathwayInfo = detailList['临床路径']
|
|
|
|
+ var clinicalGuidelineInfo = detailList['诊疗指南']
|
|
|
|
+
|
|
var scaleInfo = data.scale ? data.scale.scaleDetails : ''
|
|
var scaleInfo = data.scale ? data.scale.scaleDetails : ''
|
|
var name = data.name
|
|
var name = data.name
|
|
noticeName = data.noticeName || "注意事项"
|
|
noticeName = data.noticeName || "注意事项"
|
|
clinicalPathwayName = data.clinicalPathwayName || "临床路径"
|
|
clinicalPathwayName = data.clinicalPathwayName || "临床路径"
|
|
|
|
+ clinicalGuidelineName = data.clinicalGuidelineName || "诊疗指南"
|
|
|
|
+
|
|
renderTab(detailList, scale)
|
|
renderTab(detailList, scale)
|
|
|
|
+
|
|
staticKnowList && renderContent(staticKnowList, 'staticKnowledge')
|
|
staticKnowList && renderContent(staticKnowList, 'staticKnowledge')
|
|
noticeInfo && renderContent(noticeInfo, 'notice')
|
|
noticeInfo && renderContent(noticeInfo, 'notice')
|
|
clinicalPathwayInfo && renderContent(clinicalPathwayInfo, 'clinicalPathway')
|
|
clinicalPathwayInfo && renderContent(clinicalPathwayInfo, 'clinicalPathway')
|
|
|
|
+ clinicalGuidelineInfo && renderContent(clinicalGuidelineInfo, 'clinicalGuideline')
|
|
|
|
+
|
|
scaleInfo && renderContentscale(scaleInfo, 'scale', name)
|
|
scaleInfo && renderContentscale(scaleInfo, 'scale', name)
|
|
$('.content img').bind('contextmenu', function () {
|
|
$('.content img').bind('contextmenu', function () {
|
|
return false
|
|
return false
|
|
@@ -79,7 +89,6 @@ getInfomation();
|
|
|
|
|
|
|
|
|
|
function renderContent(list, contentWrapClassName) {
|
|
function renderContent(list, contentWrapClassName) {
|
|
-
|
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
for (var i = 0; i < list.length; i++) {
|
|
var item = list[i];
|
|
var item = list[i];
|
|
item.content = item.content && item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
|
|
item.content = item.content && item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
|
|
@@ -392,7 +401,7 @@ function getResult(pushInfo, textType, constant) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (v) {
|
|
if (v) {
|
|
- $(`.scale .infos`).scrollTop(v.top + top-160)
|
|
|
|
|
|
+ $(`.scale .infos`).scrollTop(v.top + top - 160)
|
|
}
|
|
}
|
|
if (!$(".contentList").find(".item-title").hasClass('chColor') && !$(".contentList").find(".item-titles").hasClass('chColor')) {
|
|
if (!$(".contentList").find(".item-title").hasClass('chColor') && !$(".contentList").find(".item-titles").hasClass('chColor')) {
|
|
$('input[type="radio"]:checked').each(function () {
|
|
$('input[type="radio"]:checked').each(function () {
|
|
@@ -492,6 +501,7 @@ function addLinkClickEvent(contentWrapClassName) {
|
|
}
|
|
}
|
|
|
|
|
|
function renderTab(detailList, scale) {
|
|
function renderTab(detailList, scale) {
|
|
|
|
+
|
|
if (detailList['静态知识']) {
|
|
if (detailList['静态知识']) {
|
|
$(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="` + showName + `">静态知识</span>`)
|
|
$(".tabList").append(`<span class="tab" data-module="staticKnowledge" data-title="` + showName + `">静态知识</span>`)
|
|
}
|
|
}
|
|
@@ -503,6 +513,10 @@ function renderTab(detailList, scale) {
|
|
$(".tabList").append(`<span class="tab" data-module="notice" data-title="` + noticeName + `">注意事项</span>`)
|
|
$(".tabList").append(`<span class="tab" data-module="notice" data-title="` + noticeName + `">注意事项</span>`)
|
|
//$(".tabBox .title").html(noticeName);
|
|
//$(".tabBox .title").html(noticeName);
|
|
}
|
|
}
|
|
|
|
+ if (detailList['诊疗指南']) {
|
|
|
|
+ $(".tabList").append(`<span class="tab" data-module="clinicalGuideline" data-title="` + clinicalGuidelineName + `">诊疗指南</span>`)
|
|
|
|
+ //$(".tabBox .title").html(noticeName);
|
|
|
|
+ }
|
|
if (!!scale && getUrlArgObject('type') == 8) {
|
|
if (!!scale && getUrlArgObject('type') == 8) {
|
|
$(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
|
|
$(".tabList").append(`<span class="tab" data-module="scale" data-title="` + showName + `">评估内容</span>`)
|
|
//$(".tabBox .title").html(noticeName);
|
|
//$(".tabBox .title").html(noticeName);
|
|
@@ -515,6 +529,7 @@ function renderTab(detailList, scale) {
|
|
$(".tabList .tab").eq(0).addClass("activeTab")
|
|
$(".tabList .tab").eq(0).addClass("activeTab")
|
|
defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
|
|
defaultModuleName = $(".tabList .tab").eq(0).attr("data-module")
|
|
}
|
|
}
|
|
|
|
+
|
|
$(`.${defaultModuleName}`).css("display", "block")
|
|
$(`.${defaultModuleName}`).css("display", "block")
|
|
bindTabClick()
|
|
bindTabClick()
|
|
}
|
|
}
|