feat: 快速预定页面调整

This commit is contained in:
duanshuwen
2025-10-25 14:05:34 +08:00
parent ea36177f05
commit b9c1f45b29
24 changed files with 458 additions and 1301 deletions

View File

@@ -61,6 +61,10 @@ const props = defineProps({
stockUnitLabel: "", // 库存单位
}),
},
selectedDate: {
type: Object,
default: () => {},
},
});
const handleClick = ({ commodityId }) => {
@@ -68,7 +72,10 @@ const handleClick = ({ commodityId }) => {
};
const handleBooking = ({ commodityId }) => {
uni.navigateTo({ url: `/pages/booking/index?commodityId=${commodityId}` });
const { startDate, endDate, totalDays } = props.selectedDate;
uni.navigateTo({
url: `/pages-booking/index?commodityId=${commodityId}&startDate=${startDate}&endDate=${endDate}&totalDays=${totalDays}`,
});
};
</script>