|
@@ -28,50 +28,59 @@ let hel = require('./../images/icon-hel.png');
|
|
|
|
|
|
let showName, noticeName, clinicalPathwayName, isclick
|
|
|
|
|
|
+var isIE = function (ver) {
|
|
|
+ var b = document.createElement('b')
|
|
|
+ b.innerHTML = '<!--[if IE ' + ver + ']><i></i><![endif]-->'
|
|
|
+ return b.getElementsByTagName('i').length === 1
|
|
|
+}
|
|
|
+var ie = isIE();
|
|
|
+if (ie) {
|
|
|
+ $('.anchors').css('height', '100%').css('height', '-=50px');
|
|
|
+ $('.infos').css('width', '100%').css('height', '-=250px');
|
|
|
+}
|
|
|
|
|
|
-
|
|
|
- function getInfomation() {
|
|
|
- var param = {
|
|
|
- "type": getUrlArgObject('type'),
|
|
|
- "name": getUrlArgObject('name'),
|
|
|
- "position": getUrlArgObject('position'),
|
|
|
- "contentTypes": [1, 2, 3],
|
|
|
- "mrId": getUrlArgObject('mrId')
|
|
|
- };
|
|
|
- showName = param.name
|
|
|
- $(".tabBox .title").html(showName);
|
|
|
-
|
|
|
- post(config.information, param).then((res) => {
|
|
|
- const data = res.data.data
|
|
|
- // const data = dataaaa.data
|
|
|
- document.title = showName
|
|
|
- var str = '';
|
|
|
- var anchors = '';
|
|
|
- if (!data) {
|
|
|
- $(".title").html("暂时没有数据");
|
|
|
- $(".anchors").css("display", "none");
|
|
|
- return;
|
|
|
- }
|
|
|
- var detailList = data.details
|
|
|
- var scale = data.scale
|
|
|
- var staticKnowList = detailList['静态知识']
|
|
|
- var noticeInfo = detailList['注意事项']
|
|
|
- var clinicalPathwayInfo = detailList['临床路径']
|
|
|
- var scaleInfo = data.scale ? data.scale.scaleDetails : ''
|
|
|
- var name = data.name
|
|
|
- noticeName = data.noticeName || "注意事项"
|
|
|
- clinicalPathwayName = data.clinicalPathwayName || "临床路径"
|
|
|
- renderTab(detailList, scale)
|
|
|
- staticKnowList && renderContent(staticKnowList, 'staticKnowledge')
|
|
|
- noticeInfo && renderContent(noticeInfo, 'notice')
|
|
|
- clinicalPathwayInfo && renderContent(clinicalPathwayInfo, 'clinicalPathway')
|
|
|
- scaleInfo && renderContentscale(scaleInfo, 'scale', name)
|
|
|
- $('.content img').bind('contextmenu', function () {
|
|
|
- return false
|
|
|
- })
|
|
|
-
|
|
|
+function getInfomation() {
|
|
|
+ var param = {
|
|
|
+ "type": getUrlArgObject('type'),
|
|
|
+ "name": getUrlArgObject('name'),
|
|
|
+ "position": getUrlArgObject('position'),
|
|
|
+ "contentTypes": [1, 2, 3],
|
|
|
+ "mrId": getUrlArgObject('mrId')
|
|
|
+ };
|
|
|
+ showName = param.name
|
|
|
+ $(".tabBox .title").html(showName);
|
|
|
+
|
|
|
+ post(config.information, param).then((res) => {
|
|
|
+ const data = res.data.data
|
|
|
+ // const data = dataaaa.data
|
|
|
+ document.title = showName
|
|
|
+ var str = '';
|
|
|
+ var anchors = '';
|
|
|
+ if (!data) {
|
|
|
+ $(".title").html("暂时没有数据");
|
|
|
+ $(".anchors").css("display", "none");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ var detailList = data.details
|
|
|
+ var scale = data.scale
|
|
|
+ var staticKnowList = detailList['静态知识']
|
|
|
+ var noticeInfo = detailList['注意事项']
|
|
|
+ var clinicalPathwayInfo = detailList['临床路径']
|
|
|
+ var scaleInfo = data.scale ? data.scale.scaleDetails : ''
|
|
|
+ var name = data.name
|
|
|
+ noticeName = data.noticeName || "注意事项"
|
|
|
+ clinicalPathwayName = data.clinicalPathwayName || "临床路径"
|
|
|
+ renderTab(detailList, scale)
|
|
|
+ staticKnowList && renderContent(staticKnowList, 'staticKnowledge')
|
|
|
+ noticeInfo && renderContent(noticeInfo, 'notice')
|
|
|
+ clinicalPathwayInfo && renderContent(clinicalPathwayInfo, 'clinicalPathway')
|
|
|
+ scaleInfo && renderContentscale(scaleInfo, 'scale', name)
|
|
|
+ $('.content img').bind('contextmenu', function () {
|
|
|
+ return false
|
|
|
})
|
|
|
- }
|
|
|
+
|
|
|
+ })
|
|
|
+}
|
|
|
getInfomation();
|
|
|
|
|
|
|
|
@@ -102,7 +111,7 @@ function renderContent(list, contentWrapClassName) {
|
|
|
var divHeight = 0;
|
|
|
for (var i = 0; i < list.length; i++) {
|
|
|
divHeight = divHeight + parseInt($('#' + contentWrapClassName + i).css('height')) + parseInt($('#' + contentWrapClassName + i).parent().next().css('height')) + 20
|
|
|
-
|
|
|
+
|
|
|
if (divHeight > scrollTop) {
|
|
|
var anchor = 2 * i;
|
|
|
$(`.${contentWrapClassName} .anchors ul`).children().eq(anchor).addClass('active').siblings().removeClass('active');
|
|
@@ -214,7 +223,7 @@ function renderContentscale(list, contentWrapClassName, name) {
|
|
|
getResult(pushInfo, textType)
|
|
|
copy(name)
|
|
|
getprinting()
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function getprinting() {
|
|
@@ -394,7 +403,7 @@ function getResult(pushInfo, textType) {
|
|
|
$(".hel").attr({
|
|
|
"title": proposal
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
$(".result_title").html(result);
|
|
|
if ($.inArray(13, textType) > 0) {
|
|
|
$(".score").html('总分:' + num + '分');
|