Merge remote-tracking branch 'origin/main'

main
Lei OT 10 months ago
commit e12bb672a3

@ -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
}))

@ -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'
>
<Form.Item

@ -23,7 +23,7 @@ const List = () => {
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')

Loading…
Cancel
Save