feat: 预约时间调整
This commit is contained in:
@@ -70,6 +70,7 @@
|
||||
v-model="quantity"
|
||||
:userFormList="userFormList"
|
||||
v-model:reservationDate="selectedReservationDate"
|
||||
:reservationEnabled="orderData.reservationEnabled"
|
||||
/>
|
||||
|
||||
<!-- 酒店类型 -->
|
||||
@@ -212,6 +213,14 @@ const validateUserForms = () => {
|
||||
// 处理支付点击事件
|
||||
const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => {
|
||||
console.log("处理支付点击事件", userFormList.value);
|
||||
// 预约日期,酒店类型不需要
|
||||
if (orderData.value.reservationEnabled) {
|
||||
if (!selectedReservationDate.value) {
|
||||
uni.showToast({ title: "请选择预约日期", icon: "none" });
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// 校验用户姓名
|
||||
if (!validateUserForms()) {
|
||||
return;
|
||||
@@ -243,11 +252,7 @@ const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => {
|
||||
};
|
||||
|
||||
// 预约日期,酒店类型不需要
|
||||
if (orderData.value.orderType != 0) {
|
||||
if (!selectedReservationDate.value) {
|
||||
uni.showToast({ title: "请选择预约日期", icon: "none" });
|
||||
return;
|
||||
}
|
||||
if (orderData.value.reservationEnabled) {
|
||||
params.reservationDate = selectedReservationDate.value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user