feat: 商品类型的改动commodityTypeCode改为orderType

This commit is contained in:
2026-03-26 22:45:35 +08:00
parent 0b33727815
commit 2ed4373a8f
6 changed files with 28 additions and 27 deletions

View File

@@ -7,7 +7,7 @@
:shadow="false"
>
<template #title>
{{ GOODS_TYPE[orderData.commodityTypeCode] }}
{{ GOODS_TYPE[orderData.orderType] }}
</template>
</TopNavBar>
@@ -18,7 +18,7 @@
<view class="border-box bg-white p-12 rounded-12 mb-12">
<!-- 酒店类型入住离店日期部分 -->
<DateRangeSection
v-if="orderData.commodityTypeCode === '0'"
v-if="orderData.orderType === 0"
:selectedDate="selectedDate"
:showBtn="true"
@click="navigateToDetail(orderData)"
@@ -64,7 +64,7 @@
<!-- 非酒店类型 -->
<ContactSection
v-if="orderData.commodityTypeCode !== '0'"
v-if="orderData.orderType !== 0"
v-model="quantity"
:userFormList="userFormList"
v-model:reservationDate="selectedReservationDate"
@@ -72,7 +72,7 @@
<!-- 酒店类型 -->
<UserSection
v-if="orderData.commodityTypeCode === '0'"
v-if="orderData.orderType === 0"
v-model="quantity"
:userFormList="userFormList"
/>
@@ -253,7 +253,7 @@ const handlePayClick = ThrottleUtils.createThrottle(async (goodsData) => {
};
//酒店类型添加入住时间、离店时间
if (goodsData.commodityTypeCode === "0" && selectedDate.value) {
if (goodsData.orderType === 0 && selectedDate.value) {
const { startDate, endDate } = selectedDate.value;
// 入住时间
params.checkInData = startDate;