diff --git a/web/src/stores/Hotel.js b/web/src/stores/Hotel.js index d902f48..a54fc3c 100644 --- a/web/src/stores/Hotel.js +++ b/web/src/stores/Hotel.js @@ -40,8 +40,6 @@ const useHotelStore = create(devtools((set, get) => ({ formValues.dataRange[1].format('YYYY-MM-DD') ) - console.info(resultArray) - set(() => ({ hotelList: resultArray })) @@ -56,8 +54,6 @@ const useHotelStore = create(devtools((set, get) => ({ roomCount ) - console.info(resultArray) - set(() => ({ roomList: resultArray })) diff --git a/web/src/views/hotel/Detail.jsx b/web/src/views/hotel/Detail.jsx index c56ba6a..2408ae9 100644 --- a/web/src/views/hotel/Detail.jsx +++ b/web/src/views/hotel/Detail.jsx @@ -28,6 +28,7 @@ function Detail() { // http://localhost:5175/hotel/416980/2024-09-10/2024-09-11 if (isEmpty(hotelId) || isEmpty(checkin) || isEmpty(checkout)) { console.info('criteria is null') + setLoading(false) } else { searchForm.setFieldsValue({ dataRange: [dayjs(checkin), dayjs(checkout)], @@ -61,10 +62,7 @@ function Detail() { price: plan.Price } setHotelQuotation(forHtJson) - showModal() - - console.info('stringify: ' + JSON.stringify(forHtJson)) document.getElementById('forHtJson').value = JSON.stringify(forHtJson) } @@ -97,7 +95,6 @@ function Detail() { form={searchForm} layout='inline' onFinish={handelFormFinish} - onFinishFailed={() => console.info('onFinishFailed')} autoComplete='off' > { const checkoutDateString = searchParams.get('checkout') useEffect(() => { - console.info(searchForm) + // 测试酒店:Hotel Skypark Kingstown Dongdaemun // http://localhost:5175/hotel/list?hotel=s&checkin=2024-8-20&checkout=2024-8-21 if (isEmpty(hotelName) || isEmpty(checkinDateString) || isEmpty(checkoutDateString)) { console.info('criteria is null')