提交预约时加上 加载中

main
刘佳宇 1 year ago
parent 67c639f892
commit c3f8b44b9a

@ -249,14 +249,12 @@ const getnmrList = async () => {
const comfrimyy = async () => { const comfrimyy = async () => {
let plan_id = ""; let plan_id = "";
let plan_nmr_id = ""; let plan_nmr_id = "";
// if(!yytjInfo.value?.doctor_name){ uni.showLoading();
// uni.$lu.toast("");
// return;
// }
console.log(yytjInfo.value?.nmr_list); console.log(yytjInfo.value?.nmr_list);
for (let i = 0; i < yytjInfo.value?.nmr_list?.length; i++) { for (let i = 0; i < yytjInfo.value?.nmr_list?.length; i++) {
if (!yytjInfo.value?.nmr_list[i].id) { if (!yytjInfo.value?.nmr_list[i].id) {
uni.$lu.toast("请完善预约时间"); uni.$lu.toast("请完善预约时间");
uni.hideLoading();
return; return;
} }
} }
@ -302,6 +300,7 @@ const comfrimyy = async () => {
}); });
} }
} }
uni.hideLoading();
}); });
}; };

Loading…
Cancel
Save