|
@@ -3,9 +3,9 @@ require('./css/reset.css');
|
|
require('./css/popup.css');
|
|
require('./css/popup.css');
|
|
require('./js/popup');
|
|
require('./js/popup');
|
|
const $ = require("jquery");
|
|
const $ = require("jquery");
|
|
-const { post,config,getUrlArgObject } = require('./js/promise.js');
|
|
|
|
|
|
+const { post,config,getUrlArgObject, openNewWin } = require('./js/promise.js');
|
|
|
|
|
|
-const {bqtsFun,ybzlFun,cyywFun,knzdFun,jtFun,tjwzFun,tjtgFun,tjhyFun,tjfjFun,yszdFun, tjzdFun, slideToggle} = require('./js/landscapeDom.js');
|
|
|
|
|
|
+const {bqtsFun,ybzlFun,cyywFun,tjwzFun,tjtgFun,tjhyFun,tjfjFun, tjzdFun, slideToggle} = require('./js/landscapeDom.js');
|
|
// symptom: "恶心呕吐腰痛", //胸痛,背痛,恶心,呕吐 //恶心呕吐腰痛 //牙周袋形成
|
|
// symptom: "恶心呕吐腰痛", //胸痛,背痛,恶心,呕吐 //恶心呕吐腰痛 //牙周袋形成
|
|
|
|
|
|
var msg = {
|
|
var msg = {
|
|
@@ -39,14 +39,16 @@ post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22'},msg)).then((re
|
|
tjzdFun(proWaring, 'warning')
|
|
tjzdFun(proWaring, 'warning')
|
|
tjzdFun(proY)
|
|
tjzdFun(proY)
|
|
tjzdFun(proB)
|
|
tjzdFun(proB)
|
|
- yszdFun(proY)//疑似
|
|
|
|
- knzdFun(proB)//可能
|
|
|
|
- jtFun(proWaring)//警惕
|
|
|
|
|
|
+
|
|
slideToggle($(".conditionHintRecomDiagLis"))
|
|
slideToggle($(".conditionHintRecomDiagLis"))
|
|
- if(proY.length == 0){
|
|
|
|
- $(".conditionHintMay").css("display","none")
|
|
|
|
|
|
+ $(".infoMsgParent .infoMsg").on("click",function(){
|
|
|
|
+ const infoMsgName = $(this).parent().attr('data-name')
|
|
|
|
+ openNewWin(`information.html?type=7&position=2&name=${infoMsgName}`)
|
|
|
|
+ })
|
|
|
|
+ if(proY.length == 0 && proB.length == 0 && proWaring.length == 0){
|
|
|
|
+ $(".conditionHintRecomDiagLis").css("display","none")
|
|
}else{
|
|
}else{
|
|
- $(".conditionHintMayNull").css("display","none")
|
|
|
|
|
|
+ $(".conditionHintRecomDiagLisNull").css("display","none")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(result.symptom && result.symptom.length > 0){//推荐问诊症状
|
|
if(result.symptom && result.symptom.length > 0){//推荐问诊症状
|
|
@@ -74,7 +76,21 @@ post(config.pushInner,Object.assign({featureType: '1,4,5,6,7,22'},msg)).then((re
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+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') || ''
|
|
|
|
+}//推送相关信息
|
|
|
|
+$(".disclaimer").on("click",function() {
|
|
|
|
+ openNewWin("disclaimer.html")
|
|
|
|
+})
|
|
post(config.pushTreatment,Object.assign({featureType: '8'},msg)).then((res)=>{
|
|
post(config.pushTreatment,Object.assign({featureType: '8'},msg)).then((res)=>{
|
|
var data = res.data
|
|
var data = res.data
|
|
if(data.code == 0){
|
|
if(data.code == 0){
|
|
@@ -83,11 +99,15 @@ post(config.pushTreatment,Object.assign({featureType: '8'},msg)).then((res)=>{
|
|
if(result.commonTreatment && result.commonTreatment.content){
|
|
if(result.commonTreatment && result.commonTreatment.content){
|
|
++num
|
|
++num
|
|
ybzlFun(result.commonTreatment.content)//一般治疗
|
|
ybzlFun(result.commonTreatment.content)//一般治疗
|
|
|
|
+
|
|
}
|
|
}
|
|
if(result.treatment && result.treatment.length>0){
|
|
if(result.treatment && result.treatment.length>0){
|
|
++num
|
|
++num
|
|
cyywFun(result.treatment)//常用药物
|
|
cyywFun(result.treatment)//常用药物
|
|
}
|
|
}
|
|
|
|
+ $(".conditionHintZhiliaoAp ").on('click',".slideDown",function(){
|
|
|
|
+ openNewWin(`treatplan.html?age=${msg.age}&sex=${msg.sex}&symptomJson=${msg.symptom}&vitalJson=${msg.vital}&lisJson=${msg.lis}&pacsJson=${msg.pacs}&diagJson=${msg.diag}&otherJson=${msg.other}&hospitalCode=${msg.hosCode}`)
|
|
|
|
+ })
|
|
if(num == 0){
|
|
if(num == 0){
|
|
$(".conditionHintZhiliaoNull").css("display","block")
|
|
$(".conditionHintZhiliaoNull").css("display","block")
|
|
}
|
|
}
|
|
@@ -97,3 +117,4 @@ post(config.pushTreatment,Object.assign({featureType: '8'},msg)).then((res)=>{
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+
|