فهرست منبع

中医内页嵌入我们地址内1

zhouna 3 سال پیش
والد
کامیت
38b2304fa8
1فایلهای تغییر یافته به همراه14 افزوده شده و 9 حذف شده
  1. 14 9
      src/js/informationOut.js

+ 14 - 9
src/js/informationOut.js

@@ -39,16 +39,20 @@ if (window.opener) {
 }
 let icond = require('./../images/d.png').replace(/^undefined/g, '')
 function getInfomation() {
-  // var param = {
-  //   "type": getUrlArgObject('type'),
-  //   "name": getUrlArgObject('name'),
-  //   "position": getUrlArgObject('position'),
-  //   "contentTypes":[1,2,3]
-  // };
+  //如果type=8879,就直接引用中医页面
+  const type= getUrlArgObject('type');
+  const hisName = getUrlArgObject('hisName');
+  if(type==="8879"){
+    const ht = window.innerHeight;
+    const dom = `<iframe id="tcmFrame" src="lantone/fangjiPage?name=${hisName}" style="width: 100%;height:${ht}px"></iframe>`;
+    $("body").html(dom);
+    return;
+  }
+  //正常显示内容
   var param = {
-    "type": getUrlArgObject('type'),
+    "type": type,
     "hospitalId": getUrlArgObject('hospitalId'),
-    "hisName": getUrlArgObject('hisName'),
+    "hisName": hisName,
     "hisDetailName": getUrlArgObject('hisDetailName'),
     "contentTypes": [1, 2, 3]
   };
@@ -633,6 +637,7 @@ function adjustWidth() {
 }
 $(window).on('resize', function () {
   adjustHeight()
-  adjustWidth()
+  adjustWidth();
+  $("#tcmFrame").height(window.innerHeight)
 })