feat: 订单的处理,ordertype 等于0的处理
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<view class="border-box bg-white p-12 rounded-12 mb-12">
|
||||
<!-- 酒店类型入住离店日期部分 -->
|
||||
<DateRangeSection
|
||||
v-if="orderData.orderType === 0"
|
||||
v-if="orderData.orderType == 0"
|
||||
:selectedDate="selectedDate"
|
||||
:showBtn="true"
|
||||
@click="navigateToDetail(orderData)"
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
<!-- 非酒店类型 -->
|
||||
<ContactSection
|
||||
v-if="orderData.orderType !== 0"
|
||||
v-if="orderData.orderType != 0"
|
||||
v-model="quantity"
|
||||
:userFormList="userFormList"
|
||||
v-model:reservationDate="selectedReservationDate"
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
<!-- 酒店类型 -->
|
||||
<UserSection
|
||||
v-if="orderData.orderType === 0"
|
||||
v-if="orderData.orderType == 0"
|
||||
v-model="quantity"
|
||||
:userFormList="userFormList"
|
||||
/>
|
||||
@@ -244,12 +244,12 @@ const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => {
|
||||
};
|
||||
|
||||
// 预约日期,酒店类型不需要
|
||||
if (orderData.value.orderType !== 0) {
|
||||
if (orderData.value.orderType != 0) {
|
||||
params.reservationDate = selectedReservationDate.value;
|
||||
}
|
||||
|
||||
//酒店类型添加入住时间、离店时间
|
||||
if (goodsData.orderType === 0 && selectedDate.value) {
|
||||
if (goodsData.orderType == 0 && selectedDate.value) {
|
||||
const { startDate, endDate } = selectedDate.value;
|
||||
// 入住时间
|
||||
params.checkInData = startDate;
|
||||
|
||||
Reference in New Issue
Block a user