|
|
|
@ -358,13 +358,13 @@
|
|
|
|
let plan_nmr_id = "";
|
|
|
|
let plan_nmr_id = "";
|
|
|
|
uni.showLoading();
|
|
|
|
uni.showLoading();
|
|
|
|
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();
|
|
|
|
// uni.hideLoading();
|
|
|
|
return;
|
|
|
|
// return;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (yytjInfo.value?.nmr_list?.length > 1) {
|
|
|
|
if (yytjInfo.value?.nmr_list?.length > 1) {
|
|
|
|
@ -383,7 +383,7 @@
|
|
|
|
group_id: buyInfo.value.group_id,
|
|
|
|
group_id: buyInfo.value.group_id,
|
|
|
|
combo_id:buyInfo.value.group_id?"":buyInfo.value?.combo_id,
|
|
|
|
combo_id:buyInfo.value.group_id?"":buyInfo.value?.combo_id,
|
|
|
|
item_ids: buyInfo.value.item_ids,
|
|
|
|
item_ids: buyInfo.value.item_ids,
|
|
|
|
plan_id: plan_id,
|
|
|
|
plan_id: tj_plan_id.value,
|
|
|
|
plan_nmr_info:yytjInfo.value?.nmr_list || null,
|
|
|
|
plan_nmr_info:yytjInfo.value?.nmr_list || null,
|
|
|
|
doctor: yytjInfo.value?.doctor_name || "",
|
|
|
|
doctor: yytjInfo.value?.doctor_name || "",
|
|
|
|
duo_xuan_yi: $store.getDuoXuanYi(),
|
|
|
|
duo_xuan_yi: $store.getDuoXuanYi(),
|
|
|
|
@ -391,7 +391,7 @@
|
|
|
|
yucunkuan: yytjInfo.value.prepaidPrice?yytjInfo.value.prepaidPrice:0,
|
|
|
|
yucunkuan: yytjInfo.value.prepaidPrice?yytjInfo.value.prepaidPrice:0,
|
|
|
|
coupon_id:yytjInfo.value?.couponId || null,
|
|
|
|
coupon_id:yytjInfo.value?.couponId || null,
|
|
|
|
wj: buyInfo.value.wj,
|
|
|
|
wj: buyInfo.value.wj,
|
|
|
|
erxian_info:erxianInfo.value,
|
|
|
|
erxian_info:yytjInfo.value.erxianInfo,
|
|
|
|
peiou_info:$store.getPeiOuUser()//配偶信息
|
|
|
|
peiou_info:$store.getPeiOuUser()//配偶信息
|
|
|
|
};
|
|
|
|
};
|
|
|
|
console.log(obj);
|
|
|
|
console.log(obj);
|
|
|
|
@ -402,7 +402,7 @@
|
|
|
|
StartPay(response.data.orderid);
|
|
|
|
StartPay(response.data.orderid);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
uni.navigateTo({
|
|
|
|
uni.navigateTo({
|
|
|
|
url: "/pages/buy/done/done?id=" + response.data.orderid,
|
|
|
|
url: "/pages/buy/done/yuyue_done?id=" + response.data.orderid,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -440,6 +440,48 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//跳转支付
|
|
|
|
|
|
|
|
const StartPay = async (id) => {
|
|
|
|
|
|
|
|
//继续支付
|
|
|
|
|
|
|
|
uni.showLoading();
|
|
|
|
|
|
|
|
const response = await $api("StartPay", {
|
|
|
|
|
|
|
|
openid: localStorage.getItem("OPENID"),
|
|
|
|
|
|
|
|
id: id,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
|
|
|
if (response.status) {
|
|
|
|
|
|
|
|
let info = response.data.info;
|
|
|
|
|
|
|
|
let p =
|
|
|
|
|
|
|
|
"&appid=" +
|
|
|
|
|
|
|
|
info.appid +
|
|
|
|
|
|
|
|
"&sub_org_code=" +
|
|
|
|
|
|
|
|
info.sub_org_code +
|
|
|
|
|
|
|
|
"&ghzid=" +
|
|
|
|
|
|
|
|
info.ghzid +
|
|
|
|
|
|
|
|
"&orderid=" +
|
|
|
|
|
|
|
|
info.orderid +
|
|
|
|
|
|
|
|
"&order_desc=" +
|
|
|
|
|
|
|
|
info.order_desc +
|
|
|
|
|
|
|
|
"&amount=" +
|
|
|
|
|
|
|
|
info.amount +
|
|
|
|
|
|
|
|
"¬ify_url=" +
|
|
|
|
|
|
|
|
info.notify_url +
|
|
|
|
|
|
|
|
"×tamp=" +
|
|
|
|
|
|
|
|
info.timestamp +
|
|
|
|
|
|
|
|
"&nonce=" +
|
|
|
|
|
|
|
|
info.nonce +
|
|
|
|
|
|
|
|
"&signature=" +
|
|
|
|
|
|
|
|
info.signature;
|
|
|
|
|
|
|
|
console.log(p);
|
|
|
|
|
|
|
|
wx.miniProgram.navigateTo({
|
|
|
|
|
|
|
|
url:
|
|
|
|
|
|
|
|
"/pages/other/entry/index?path=/pages/physical-examination/payment/index" +
|
|
|
|
|
|
|
|
p,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
//改变日期
|
|
|
|
//改变日期
|
|
|
|
const DateChange = (date) => {
|
|
|
|
const DateChange = (date) => {
|
|
|
|
selectedDate.value = date
|
|
|
|
selectedDate.value = date
|
|
|
|
|