|
@@ -160,7 +160,9 @@ function getPushInfo() {
|
|
|
function getTreatment() {
|
|
|
post(config.pushTreatment,Object.assign({featureType: '8'},msg)).then((res)=>{
|
|
|
var data = res.data
|
|
|
- window.treatInfo = data
|
|
|
+ if(data) {
|
|
|
+ window.tipsInfo = data
|
|
|
+ }
|
|
|
// if(data.code == 0){
|
|
|
// var result = data.data;
|
|
|
// renderTreat(treatImg, 'treatRecommend','治疗方案',result)
|
|
@@ -179,6 +181,8 @@ function getTreatment() {
|
|
|
// } else {
|
|
|
// renderTreat(treatImg,'treatRecommend','治疗方案',{})
|
|
|
// }
|
|
|
+ }).catch(function (err) {
|
|
|
+ console.log(err);
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -202,7 +206,7 @@ function getPageInfo() {
|
|
|
} else {
|
|
|
treatResult = {}
|
|
|
}
|
|
|
- if(tipsInfo.code == 0) {
|
|
|
+ if(tipsInfo.code && tipsInfo.code == 0) {
|
|
|
tipsResult = tipsInfo.data
|
|
|
} else {
|
|
|
tipsResult = {}
|
|
@@ -308,6 +312,8 @@ function getPageInfo() {
|
|
|
|
|
|
// renderRecommendConditTips(conditTipsImg, 'conditTips','病情提示', medicalIndications || [])
|
|
|
|
|
|
+ }).catch(function (err) {
|
|
|
+ console.log(err);
|
|
|
})
|
|
|
|
|
|
}
|