|
@@ -2930,6 +2930,7 @@ function inoculateVacc() {
|
|
|
$.alert("请选择是否接种新冠疫苗")
|
|
|
return;
|
|
|
}
|
|
|
+ loadingShow()
|
|
|
$.ajax({
|
|
|
url: '/home/addVaccine',
|
|
|
type: "post",
|
|
@@ -2937,13 +2938,26 @@ function inoculateVacc() {
|
|
|
contentType: "application/json",
|
|
|
data: JSON.stringify(date),
|
|
|
success: function (data) {
|
|
|
+ loadingHide()
|
|
|
if (data.success) {
|
|
|
$.alert("提交成功");
|
|
|
}
|
|
|
},
|
|
|
+ error: function(){
|
|
|
+ loadingHide()
|
|
|
+ $.alert("提交失败,请重试");
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+function loadingShow() {
|
|
|
+ $('#loadingToast').fadeIn(100);
|
|
|
+}
|
|
|
+
|
|
|
+function loadingHide() {
|
|
|
+ $('#loadingToast').fadeOut(100);
|
|
|
+}
|
|
|
+
|
|
|
Date.prototype.format = function (fmt) {
|
|
|
var o = {
|
|
|
"M+": this.getMonth() + 1, //月份
|