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') formValues.dataRange[1].format('YYYY-MM-DD')
) )
console.info(resultArray)
set(() => ({ set(() => ({
hotelList: resultArray hotelList: resultArray
})) }))
@ -56,8 +54,6 @@ const useHotelStore = create(devtools((set, get) => ({
roomCount roomCount
) )
console.info(resultArray)
set(() => ({ set(() => ({
roomList: resultArray roomList: resultArray
})) }))

@ -28,6 +28,7 @@ function Detail() {
// http://localhost:5175/hotel/416980/2024-09-10/2024-09-11 // http://localhost:5175/hotel/416980/2024-09-10/2024-09-11
if (isEmpty(hotelId) || isEmpty(checkin) || isEmpty(checkout)) { if (isEmpty(hotelId) || isEmpty(checkin) || isEmpty(checkout)) {
console.info('criteria is null') console.info('criteria is null')
setLoading(false)
} else { } else {
searchForm.setFieldsValue({ searchForm.setFieldsValue({
dataRange: [dayjs(checkin), dayjs(checkout)], dataRange: [dayjs(checkin), dayjs(checkout)],
@ -61,10 +62,7 @@ function Detail() {
price: plan.Price price: plan.Price
} }
setHotelQuotation(forHtJson) setHotelQuotation(forHtJson)
showModal() showModal()
console.info('stringify: ' + JSON.stringify(forHtJson))
document.getElementById('forHtJson').value = JSON.stringify(forHtJson) document.getElementById('forHtJson').value = JSON.stringify(forHtJson)
} }
@ -97,7 +95,6 @@ function Detail() {
form={searchForm} form={searchForm}
layout='inline' layout='inline'
onFinish={handelFormFinish} onFinish={handelFormFinish}
onFinishFailed={() => console.info('onFinishFailed')}
autoComplete='off' autoComplete='off'
> >
<Form.Item <Form.Item

@ -23,7 +23,7 @@ const List = () => {
const checkoutDateString = searchParams.get('checkout') const checkoutDateString = searchParams.get('checkout')
useEffect(() => { useEffect(() => {
console.info(searchForm) // Hotel Skypark Kingstown Dongdaemun
// http://localhost:5175/hotel/list?hotel=s&checkin=2024-8-20&checkout=2024-8-21 // http://localhost:5175/hotel/list?hotel=s&checkin=2024-8-20&checkout=2024-8-21
if (isEmpty(hotelName) || isEmpty(checkinDateString) || isEmpty(checkoutDateString)) { if (isEmpty(hotelName) || isEmpty(checkinDateString) || isEmpty(checkoutDateString)) {
console.info('criteria is null') console.info('criteria is null')

Loading…
Cancel
Save