60599009 by 焦小希

更改提示信息

1 parent 954f3d06
......@@ -180,13 +180,19 @@ function checkAppointment() {
});
return msg;
}
function del(a){
layui.use('layer',function(){
var layer = layui.layer;
layer.msg(a);
})
}
function handle(id) {
let bookingDateUL = $(".active1");
let msg = checkAppointment();
if (msg != undefined) {
//layer.msg('hello');
return;
del(msg)
return false
};
var input = $("#" + id);
layui.use("layer", function () {
......@@ -240,9 +246,8 @@ function makeAppointment(id) {
if (result.code == 200 && result.data !== null) {
appointmentId = result.data
window.location.href = "./yyjg.html?appointmentId=" + appointmentId
}
else {
alert(result.message);
}else {
del(result.message)
}
}
});
......@@ -265,7 +270,7 @@ function getAppointmentDetail(id) {
appointmentDetail(result.data);
}
else {
alert(result.message);
layer.msg(result.message, {icon: 6})
}
},
});
......