Commit 804f7589 authored by youjie's avatar youjie

no message

parent ab994abc
...@@ -130,7 +130,8 @@ ...@@ -130,7 +130,8 @@
import { moneyFormat } from '../../../utils/tools' import { moneyFormat } from '../../../utils/tools'
export default defineComponent({ export default defineComponent({
components: { svgIcon }, components: { svgIcon },
setup() { props:['hotelDetails'],
setup(props) {
const $q = useQuasar() const $q = useQuasar()
const qDateProxy = ref(null) as any const qDateProxy = ref(null) as any
const qNameProxy = ref(null) as any const qNameProxy = ref(null) as any
...@@ -170,11 +171,14 @@ ...@@ -170,11 +171,14 @@
data.scrollStyle = useScrollModule().scrollStyle data.scrollStyle = useScrollModule().scrollStyle
const search = inject(DirtionmaryHelper.HOTEL_QUERY_PARAM) as any const search = inject(DirtionmaryHelper.HOTEL_QUERY_PARAM) as any
search.searchroomGroup.push({ if(search.searchroomGroup.length==0){
roomNum: 1, search.searchroomGroup.push({
numberOfAdults: 1, roomNum: 1,
numberOfChildren: 0 numberOfAdults: 1,
}) numberOfChildren: 0
})
}
data.dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY/MM/DD') data.dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY/MM/DD')
data.dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY/MM/DD') data.dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY/MM/DD')
data.dateRangeFormat = `${data.dateRange.from} - ${data.dateRange.to}` data.dateRangeFormat = `${data.dateRange.from} - ${data.dateRange.to}`
...@@ -185,9 +189,7 @@ ...@@ -185,9 +189,7 @@
data.ScatMeaList = useHotel.getHotelScatMeal() data.ScatMeaList = useHotel.getHotelScatMeal()
const methods = { const methods = {
goUrl(url:stringify,row: {}){ goUrl(url:stringify,row: {}){
console.log(row,'---') url = `${url}/${search.hotelId}/${row.roomOptionCd}`
return
url = `${url}/${search.hotelId}/${row.roomOptionCd}/${row.imgUrl}`
window.open(url, '_blank') window.open(url, '_blank')
}, },
getPrice(price){ getPrice(price){
...@@ -365,6 +367,7 @@ ...@@ -365,6 +367,7 @@
childNum: data.childNum, childNum: data.childNum,
arrivalDate: search.arrivalDate, arrivalDate: search.arrivalDate,
departureDate: search.departureDate, departureDate: search.departureDate,
imgUrl: props.hotelDetails.hotelImageUrl1
} }
localStorage.setItem(DirtionmaryHelper.SCATTERED_HOTEL_DATE,JSON.stringify(d)) localStorage.setItem(DirtionmaryHelper.SCATTERED_HOTEL_DATE,JSON.stringify(d))
} }
...@@ -386,10 +389,11 @@ ...@@ -386,10 +389,11 @@
watch(data.childNum, (n, o) => { watch(data.childNum, (n, o) => {
methods.setData() methods.setData()
}) })
watch(props.hotelDetails, (n, o) => {
methods.setData()
})
onMounted(()=>{ onMounted(()=>{
methods.initHotel() methods.initHotel()
methods.setData()
}) })
return { return {
...toRefs(data), ...toRefs(data),
......
...@@ -133,11 +133,13 @@ export default defineComponent({ ...@@ -133,11 +133,13 @@ export default defineComponent({
data.scrollStyle = useScrollModule().scrollStyle data.scrollStyle = useScrollModule().scrollStyle
const search = inject(DirtionmaryHelper.HOTEL_QUERY_PARAM) as any const search = inject(DirtionmaryHelper.HOTEL_QUERY_PARAM) as any
search.searchroomGroup.push({ if(search.searchroomGroup.length==0){
roomNum: 1, search.searchroomGroup.push({
numberOfAdults: 1, roomNum: 1,
numberOfChildren: 0 numberOfAdults: 1,
}) numberOfChildren: 0
})
}
data.dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY/MM/DD') data.dateRange.to = date.formatDate(date.addToDate(new Date(), { days: 9 }), 'YYYY/MM/DD')
data.dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY/MM/DD') data.dateRange.from = date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY/MM/DD')
data.dateRangeFormat = `${data.dateRange.from} - ${data.dateRange.to}` data.dateRangeFormat = `${data.dateRange.from} - ${data.dateRange.to}`
......
...@@ -118,7 +118,6 @@ export default defineComponent({ ...@@ -118,7 +118,6 @@ export default defineComponent({
}) })
data.themeList = useHotel.getHotelTheme() data.themeList = useHotel.getHotelTheme()
console.log(data.themeList,'-----')
data.pageTitle = inject(DirtionmaryHelper.PAGE_TITLE_KEY) data.pageTitle = inject(DirtionmaryHelper.PAGE_TITLE_KEY)
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
</GoogleMap> </GoogleMap>
</div> </div>
</div> </div>
<DetailsList></DetailsList> <DetailsList :hotelDetails="h"></DetailsList>
<div class="bg-light-blue-1 q-pa-md fz14 rounded-borders"> <div class="bg-light-blue-1 q-pa-md fz14 rounded-borders">
<div class="text-weight-bold">{{ $t('v101.scatteredDetails.jiudianxinxi') }}</div> <div class="text-weight-bold">{{ $t('v101.scatteredDetails.jiudianxinxi') }}</div>
<!-- <div class="text-grey-8 q-mt-sm">{{ h.Descriptions }}</div> --> <!-- <div class="text-grey-8 q-mt-sm">{{ h.Descriptions }}</div> -->
...@@ -216,9 +216,9 @@ ...@@ -216,9 +216,9 @@
pageTitle.value = t('v101.scatteredDetails.xiangqing') pageTitle.value = t('v101.scatteredDetails.xiangqing')
data.scrollStyle = useScrollModule().scrollStyle data.scrollStyle = useScrollModule().scrollStyle
data.getParamsMsg = localStorage.getItem(DirtionmaryHelper.SCATTERED_HOTEL_DATE) data.getParamsMsg = JSON.parse(localStorage.getItem(DirtionmaryHelper.SCATTERED_HOTEL_DATE))
data.urlParamsMsg = currentRouter.currentRoute.value.params data.urlParamsMsg = currentRouter.currentRoute.value.params
console.log(data.urlParamsMsg.hotelId,'----') console.log(data.getParamsMsg.searchroomGroup,'-----')
const search = reactive({ const search = reactive({
hotelId: data.urlParamsMsg.hotelId, hotelId: data.urlParamsMsg.hotelId,
sort: 1, sort: 1,
...@@ -270,7 +270,6 @@ ...@@ -270,7 +270,6 @@
); );
InternetArr.forEach((x:String,index:Number)=>{ InternetArr.forEach((x:String,index:Number)=>{
if(x==1){ if(x==1){
console.log(data.InterList[index].name,'====')
data.InterArr.push(data.InterList[index].name) data.InterArr.push(data.InterList[index].name)
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment