|
|
|
|
@ -70,27 +70,30 @@ const comfrimyy = async () => {
|
|
|
|
|
// uni.$lu.toast("请选择医生");
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
console.log(yytjInfo.value?.nmr_list);
|
|
|
|
|
for(let i = 0; i < yytjInfo.value?.nmr_list?.length; i++){
|
|
|
|
|
if(!yytjInfo.value?.nmr_list[i].time){
|
|
|
|
|
uni.$lu.toast("请选择预约时间");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// console.log(yytjInfo.value?.nmr_list);
|
|
|
|
|
// for(let i = 0; i < yytjInfo.value?.nmr_list?.length; i++){
|
|
|
|
|
// if(!yytjInfo.value?.nmr_list[i].time){
|
|
|
|
|
// uni.$lu.toast("请选择预约时间");
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if(yytjInfo.value?.nmr_list?.length > 1){
|
|
|
|
|
plan_nmr_id = yytjInfo.value?.nmr_list[0]?.id;
|
|
|
|
|
}
|
|
|
|
|
if(yytjInfo.value?.nmr_list?.length > 1){
|
|
|
|
|
plan_id = yytjInfo.value?.nmr_list[yytjInfo.value?.nmr_list.length - 1]?.id;
|
|
|
|
|
}
|
|
|
|
|
// if(yytjInfo.value?.nmr_list?.length > 1){
|
|
|
|
|
// plan_nmr_id = yytjInfo.value?.nmr_list[0]?.id;
|
|
|
|
|
// }
|
|
|
|
|
// if(yytjInfo.value?.nmr_list?.length > 1){
|
|
|
|
|
// plan_id = yytjInfo.value?.nmr_list[yytjInfo.value?.nmr_list.length - 1]?.id;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
console.log(groupInfo.value);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let obj = {
|
|
|
|
|
person_id: buyInfo.value.person_id,
|
|
|
|
|
type: buyInfo.value.group_id ? 2 : 1,
|
|
|
|
|
hospital: buyInfo.value.hospital,
|
|
|
|
|
combo_id: buyInfo.value?.combo_id || userInfo.value?.combo_id,
|
|
|
|
|
group_id: buyInfo.value.group_id,
|
|
|
|
|
combo_id: buyInfo.value?.combo_id || (groupInfo.value?.combo_id?"":userInfo.value?.combo_id) || "",
|
|
|
|
|
item_ids: buyInfo.value.item_ids,
|
|
|
|
|
plan_id: plan_id,
|
|
|
|
|
$plan_nmr_id: plan_nmr_id,
|
|
|
|
|
@ -98,6 +101,7 @@ const comfrimyy = async () => {
|
|
|
|
|
console.log(obj);
|
|
|
|
|
|
|
|
|
|
const response = await $api("OrderCreate", obj);
|
|
|
|
|
// return
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
if(response.status){
|
|
|
|
|
if(response.data.action == "pay"){
|
|
|
|
|
|