Explorar el Código

病情提示详情页参数修改

zhangxc hace 5 años
padre
commit
dfe3a8eff7
Se han modificado 2 ficheros con 15 adiciones y 15 borrados
  1. 14 14
      src/js/illness.js
  2. 1 1
      src/js/indexHorizontalDom.js

+ 14 - 14
src/js/illness.js

@@ -5,23 +5,24 @@ require('./popup');
 const $ = require("jquery");
 const { post,config,getUrlArgObject,openNewWin } = require('./promise.js');
 
-var msg = {
-  age: getUrlArgObject('age'),
-  sex: getUrlArgObject('sex') == '男'?1:(getUrlArgObject('sex') == '女'?2:(getUrlArgObject('sex') == '通用'?3:getUrlArgObject('sex'))),
-  symptom: getUrlArgObject('symptomJson'),
-  vital: getUrlArgObject('vitalJson'),
-  lis: getUrlArgObject('lisJson')? JSON.parse(getUrlArgObject('lisJson')) : [],
-  pacs: getUrlArgObject('pacsJson'),
-  diag: getUrlArgObject('diagJson'),
-  diseaseName: getUrlArgObject('diagJson'),
-  other: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
-  hosCode:getUrlArgObject('hospitalCode') || ''
-}//推送相关信息
+// var msg = {
+//   age: getUrlArgObject('age'),
+//   sex: getUrlArgObject('sex') == '男'?1:(getUrlArgObject('sex') == '女'?2:(getUrlArgObject('sex') == '通用'?3:getUrlArgObject('sex'))),
+//   symptom: getUrlArgObject('symptomJson'),
+//   vital: getUrlArgObject('vitalJson'),
+//   lis: getUrlArgObject('lisJson')? JSON.parse(getUrlArgObject('lisJson')) : [],
+//   pacs: getUrlArgObject('pacsJson'),
+//   diag: getUrlArgObject('diagJson'),
+//   diseaseName: getUrlArgObject('diagJson'),
+//   other: getUrlArgObject('otherJson') + getUrlArgObject('pastJson'),
+//   hosCode:getUrlArgObject('hospitalCode') || ''
+// }//推送相关信息
+var msg = JSON.parse(getUrlArgObject('msg')) 
 
 window.msg = msg
 window.pushMessage = {}
 
-post(config.pushInner,Object.assign({featureType: '22'},msg)).then((res)=>{
+post(config.pushInner,Object.assign(msg,{featureType: '22'})).then((res)=>{
   var data = res.data
   if(data.code == 0) {
     var result = data.data;
@@ -47,7 +48,6 @@ function bqtsFun(data){//病情提示
             }
         }
         if(hasSritical) {
-          console.log('tmpBq.name', tmpBq.name)
           tmpBqStr = `<p class="mayIllness">
             <span class="sriticalNameBox"><span class="sriticalName">${tmpBq.name}</span>
             </span>

+ 1 - 1
src/js/indexHorizontalDom.js

@@ -317,7 +317,7 @@ function renderRecommendConditTips(icon, className,title,data) {
       })
       $(".conditTipsbox").on('click',".more",function(){
         
-        openNewWin(`illness.html?age=${msg.age}&sex=${msg.sex}&symptomJson=${msg.symptom}&vitalJson=${msg.vital}&lisJson=${JSON.stringify(msg.lis)}&pacsJson=${msg.pacs}&diagJson=${msg.diag}&otherJson=${msg.other}&hospitalCode=${msg.hosCode}`)
+        openNewWin(`illness.html?age=${msg.age}&sex=${msg.sex}&symptomJson=${msg.symptom}&vitalJson=${msg.vital}&lisJson=${JSON.stringify(msg.lis)}&pacsJson=${msg.pacs}&diagJson=${msg.diag}&otherJson=${msg.other}&hospitalCode=${msg.hosCode}&msg=${JSON.stringify(msg)}`)
       })
       bindTipsEvent()
 }