调整样式

main
yanzai 10 months ago
parent 083da77a35
commit 2a27e33512

@ -97,8 +97,8 @@
let use_type = ref(0) let use_type = ref(0)
let checkup_type_id = ref(0) let checkup_type_id = ref(0)
let amount = ref(0) let amount = ref(0)
let person_name=ref('') let person_name = ref('')
let combo_name=ref('') let combo_name = ref('')
// //
const GetDayPlanListFunc = async () => { const GetDayPlanListFunc = async () => {
uni.showLoading(); uni.showLoading();
@ -106,7 +106,7 @@
hospital: hospital_id.value, hospital: hospital_id.value,
person_id: person_id.value, person_id: person_id.value,
date: selectedDate.value, date: selectedDate.value,
use_type:use_type.value, use_type: use_type.value,
checkup_type_id: checkup_type_id.value, checkup_type_id: checkup_type_id.value,
amount: amount.value, amount: amount.value,
} }
@ -151,21 +151,21 @@
selectedTime.value = orderInfo.value.appointment_time selectedTime.value = orderInfo.value.appointment_time
selectedDate.value = orderInfo.value.appointment_date selectedDate.value = orderInfo.value.appointment_date
tj_date.value = response.data.today tj_date.value = response.data.today
tj_time.value = orderInfo.value.appointment_time tj_time.value = orderInfo.value.appointment_time
tj_plan_id.value = orderInfo.value.plan_id tj_plan_id.value = orderInfo.value.plan_id
hospital_id.value=orderInfo.value.hospital_id hospital_id.value = orderInfo.value.hospital_id
person_id.value=orderInfo.value.person_id person_id.value = orderInfo.value.person_id
use_type.value=orderInfo.value.type use_type.value = orderInfo.value.type
checkup_type_id.value=orderInfo.value.checkup_type_id checkup_type_id.value = orderInfo.value.checkup_type_id
amount.value=orderInfo.value.true_price amount.value = orderInfo.value.true_price
person_name.value=orderInfo.value.name person_name.value = orderInfo.value.name
combo_name.value=orderInfo.value.title combo_name.value = orderInfo.value.title
GetDayPlanListFunc() GetDayPlanListFunc()
}); });
} }
@ -291,7 +291,7 @@
hospital: hospital_id.value, hospital: hospital_id.value,
person_id: person_id.value, person_id: person_id.value,
month: ym ? ym : tj_date.value.substring(0, 7), month: ym ? ym : tj_date.value.substring(0, 7),
use_type:use_type.value, use_type: use_type.value,
checkup_type_id: checkup_type_id.value, checkup_type_id: checkup_type_id.value,
amount: amount.value, amount: amount.value,
} }
@ -304,7 +304,9 @@
date: item.date, date: item.date,
info: "余号" + item.count, info: "余号" + item.count,
}; };
rlArr.push(o); if( item.count>0){
rlArr.push(o);
}
}); });
MonthList.value = rlArr; MonthList.value = rlArr;
//MonthCalendar.value.open() //MonthCalendar.value.open()
@ -334,7 +336,7 @@
}; };
// //
const openMonthFunc = async () => { const openMonthFunc = async () => {
if (itemSelected.value.type == 'nmr') { if (itemSelected.value.type == 'nmr') {
await NMRGetMonthPlanListFunc() await NMRGetMonthPlanListFunc()
} }
@ -344,11 +346,11 @@
MonthCalendar.value.open() MonthCalendar.value.open()
} }
// //
const StartYuYue = () => { const StartYuYue = () => {
if(buyInfo.value.group_id){ if (buyInfo.value.group_id) {
// //
comfrimyy() comfrimyy()
}else{ } else {
// //
OnlyYuYue() OnlyYuYue()
} }
@ -356,63 +358,63 @@
// //
const comfrimyy = async () => { const comfrimyy = async () => {
yytjInfo.value = $store.getYytjInfo(); yytjInfo.value = $store.getYytjInfo();
let plan_id = ""; let plan_id = "";
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) {
plan_nmr_id = yytjInfo.value?.nmr_list[0]?.id; plan_nmr_id = yytjInfo.value?.nmr_list[0]?.id;
} }
if (yytjInfo.value?.nmr_list?.length > 0) { if (yytjInfo.value?.nmr_list?.length > 0) {
plan_id = yytjInfo.value?.nmr_list[yytjInfo.value?.nmr_list.length - 1]?.id; plan_id = yytjInfo.value?.nmr_list[yytjInfo.value?.nmr_list.length - 1]?.id;
} }
let obj = { let obj = {
person_id: buyInfo.value.person_id, person_id: buyInfo.value.person_id,
type: buyInfo.value.group_id ? 2 : 1, type: buyInfo.value.group_id ? 2 : 1,
hospital: buyInfo.value.hospital, hospital: buyInfo.value.hospital,
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: tj_plan_id.value, 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(),
jifen: Math.ceil(yytjInfo.value.pointsPrice?yytjInfo.value.pointsPrice:0), jifen: Math.ceil(yytjInfo.value.pointsPrice ? yytjInfo.value.pointsPrice : 0),
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:yytjInfo.value.erxianInfo, erxian_info: yytjInfo.value.erxianInfo,
peiou_info:$store.getPeiOuUser()// peiou_info: $store.getPeiOuUser() //
}; };
console.log(obj); console.log(obj);
const response = await $api("OrderCreate", obj); const response = await $api("OrderCreate", obj);
$response(response, () => { $response(response, () => {
if (response.status) { if (response.status) {
if (response.data.action == "pay") { if (response.data.action == "pay") {
StartPay(response.data.orderid); StartPay(response.data.orderid);
} else { } else {
uni.navigateTo({ uni.navigateTo({
url: "/pages/buy/done/yuyue_done?id=" + response.data.orderid, url: "/pages/buy/done/yuyue_done?id=" + response.data.orderid,
}); });
} }
} }
uni.hideLoading(); uni.hideLoading();
}); });
}; };
// //
const OnlyYuYue=async()=>{ const OnlyYuYue = async () => {
if (tj_time.value == null) { if (tj_time.value == null) {
uni.$lu.toast("请选择体检日期"); uni.$lu.toast("请选择体检日期");
return false return false
@ -430,57 +432,56 @@
uni.hideLoading(); uni.hideLoading();
$response(response, () => { $response(response, () => {
if (response.status) { if (response.status) {
setTimeout(() => { setTimeout(() => {
uni.redirectTo({ uni.redirectTo({
url: "/pages/buy/done/yuyue_done?id=" + orderInfo.value.id, url: "/pages/buy/done/yuyue_done?id=" + orderInfo.value.id,
}) })
}, 1000) }, 1000)
} }
}); });
} }
// //
const StartPay = async (id) => { const StartPay = async (id) => {
// //
uni.showLoading(); uni.showLoading();
const response = await $api("StartPay", { const response = await $api("StartPay", {
openid: localStorage.getItem("OPENID"), openid: localStorage.getItem("OPENID"),
id: id, id: id,
}); });
uni.hideLoading(); uni.hideLoading();
$response(response, () => { $response(response, () => {
if (response.status) { if (response.status) {
let info = response.data.info; let info = response.data.info;
let p = let p =
"&appid=" + "&appid=" +
info.appid + info.appid +
"&sub_org_code=" + "&sub_org_code=" +
info.sub_org_code + info.sub_org_code +
"&ghzid=" + "&ghzid=" +
info.ghzid + info.ghzid +
"&orderid=" + "&orderid=" +
info.orderid + info.orderid +
"&order_desc=" + "&order_desc=" +
info.order_desc + info.order_desc +
"&amount=" + "&amount=" +
info.amount + info.amount +
"&notify_url=" + "&notify_url=" +
info.notify_url + info.notify_url +
"&timestamp=" + "&timestamp=" +
info.timestamp + info.timestamp +
"&nonce=" + "&nonce=" +
info.nonce + info.nonce +
"&signature=" + "&signature=" +
info.signature; info.signature;
console.log(p); console.log(p);
wx.miniProgram.navigateTo({ wx.miniProgram.navigateTo({
url: url: "/pages/other/entry/index?path=/pages/physical-examination/payment/index" +
"/pages/other/entry/index?path=/pages/physical-examination/payment/index" + p,
p, });
}); }
} });
});
}; };
// //
const DateChange = (date) => { const DateChange = (date) => {
@ -505,25 +506,25 @@
let temp = null let temp = null
onMounted(() => { onMounted(() => {
itemSelected.value.type='tj' itemSelected.value.type = 'tj'
buyInfo.value = $store.getBuyInfo(); buyInfo.value = $store.getBuyInfo();
// //
temp = $store.getYytjInfo() temp = $store.getYytjInfo()
temp.doctor_name = "" temp.doctor_name = ""
$store.setYytjInfo(temp) $store.setYytjInfo(temp)
selectedDate.value = GetToday() selectedDate.value = GetToday()
tj_date.value=GetToday() tj_date.value = GetToday()
if (OrderId.value) { if (OrderId.value) {
GetOrderInfo() GetOrderInfo()
} else { } else {
checkup_type_id.value= buyInfo.value.group_id ? checkup_type_id.value = buyInfo.value.group_id ?
$store.getGroupInfo()?.checkup_type_id : $store.getCheckupTypeId()?.id, $store.getGroupInfo()?.checkup_type_id : $store.getCheckupTypeId()?.id,
hospital_id.value= buyInfo.value.hospital, hospital_id.value = buyInfo.value.hospital,
person_id.value= buyInfo.value.person_id, person_id.value = buyInfo.value.person_id,
use_type.value= buyInfo.value.group_id ? 2 : 1, use_type.value = buyInfo.value.group_id ? 2 : 1,
person_name.value=buyInfo.value.group_id ?$store.getGroupInfo()?.name : '', person_name.value = buyInfo.value.group_id ? $store.getGroupInfo()?.name : '',
combo_name.value=buyInfo.value.group_id ?$store.getGroupInfo()?.group_name : '', combo_name.value = buyInfo.value.group_id ? $store.getGroupInfo()?.group_name : '',
GetDayPlanListFunc() GetDayPlanListFunc()
} }
}); });
@ -564,7 +565,7 @@
.zhouli { .zhouli {
padding: 40rpx; padding: 40rpx;
background-color: #fff; background-color: #fff;
height:calc(100vh - 460rpx) ; height: calc(100vh - 460rpx);
overflow-y: scroll; overflow-y: scroll;
} }
@ -627,6 +628,15 @@
.uni-calendar-item__weeks-box-text { .uni-calendar-item__weeks-box-text {
font-size: 26rpx; font-size: 26rpx;
color:#ccc;
}
.uni-calendar-item__weeks-box-text:has(+ .uni-calendar-item--extra) {
color: #666;
}
.uni-calendar-item__weeks-box-text:has(+ .uni-calendar-item--disable) {
color: #ccc !important;
} }
.uni-calendar-item__weeks-lunar-text { .uni-calendar-item__weeks-lunar-text {
@ -668,7 +678,7 @@
font-size: 29rpx; font-size: 29rpx;
color: #F6FDFD; color: #F6FDFD;
text-align: center; text-align: center;
} }
</style> </style>
Loading…
Cancel
Save