Browse Source

Merge remote-tracking branch 'origin/messagePass220412' into test

zhouna 3 years ago
parent
commit
40885df0d3
2 changed files with 12 additions and 5 deletions
  1. 6 2
      src/js/appealUserPage.js
  2. 6 3
      src/js/qcScore.js

+ 6 - 2
src/js/appealUserPage.js

@@ -194,8 +194,12 @@ $(function () {
         global_flawDataPay = drgs;
         setBoxHeight();
         changePay()
-      }
-    });
+      }else{
+		$.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+	  }
+	}).catch(()=>{
+	  $.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+	});
   }
   function getRecordDetailUpdate() {
     post(api.getRecordDetail, { 'behospitalCode': global_id }).then(function (res) {

+ 6 - 3
src/js/qcScore.js

@@ -203,9 +203,12 @@ $(function () {
         global_flawDataPay = drgs;
         setBoxHeight();
         changePay()
-        
-      }
-    });
+      }else{
+		$.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+	  }
+    }).catch(()=>{
+	  $.alerModal({ "message": '接口出错', type: "tip", time: '1000', isFather: true, win: 'default', fatherWrapper: $("#mainBox", parent.document) });
+	});
   }
   function getRecordDetailUpdate() {
     post(api.getRecordDetail, { 'behospitalCode': global_id }).then(function (res) {