Commit 804f7589 authored by youjie's avatar youjie

no message

parent ab994abc
......@@ -130,7 +130,8 @@
import { moneyFormat } from '../../../utils/tools'
export default defineComponent({
components: { svgIcon },
setup() {
props:['hotelDetails'],
setup(props) {
const $q = useQuasar()
const qDateProxy = ref(null) as any
const qNameProxy = ref(null) as any
......@@ -170,11 +171,14 @@
data.scrollStyle = useScrollModule().scrollStyle
const search = inject(DirtionmaryHelper.HOTEL_QUERY_PARAM) as any
if(search.searchroomGroup.length==0){
search.searchroomGroup.push({
roomNum: 1,
numberOfAdults: 1,
numberOfChildren: 0
})
}
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.dateRangeFormat = `${data.dateRange.from} - ${data.dateRange.to}`
......@@ -185,9 +189,7 @@
data.ScatMeaList = useHotel.getHotelScatMeal()
const methods = {
goUrl(url:stringify,row: {}){
console.log(row,'---')
return
url = `${url}/${search.hotelId}/${row.roomOptionCd}/${row.imgUrl}`
url = `${url}/${search.hotelId}/${row.roomOptionCd}`
window.open(url, '_blank')
},
getPrice(price){
......@@ -365,6 +367,7 @@
childNum: data.childNum,
arrivalDate: search.arrivalDate,
departureDate: search.departureDate,
imgUrl: props.hotelDetails.hotelImageUrl1
}
localStorage.setItem(DirtionmaryHelper.SCATTERED_HOTEL_DATE,JSON.stringify(d))
}
......@@ -386,10 +389,11 @@
watch(data.childNum, (n, o) => {
methods.setData()
})
watch(props.hotelDetails, (n, o) => {
methods.setData()
})
onMounted(()=>{
methods.initHotel()
methods.setData()
})
return {
...toRefs(data),
......
......@@ -133,11 +133,13 @@ export default defineComponent({
data.scrollStyle = useScrollModule().scrollStyle
const search = inject(DirtionmaryHelper.HOTEL_QUERY_PARAM) as any
if(search.searchroomGroup.length==0){
search.searchroomGroup.push({
roomNum: 1,
numberOfAdults: 1,
numberOfChildren: 0
})
}
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.dateRangeFormat = `${data.dateRange.from} - ${data.dateRange.to}`
......
......@@ -118,7 +118,6 @@ export default defineComponent({
})
data.themeList = useHotel.getHotelTheme()
console.log(data.themeList,'-----')
data.pageTitle = inject(DirtionmaryHelper.PAGE_TITLE_KEY)
......
......@@ -56,7 +56,7 @@
</GoogleMap>
</div>
</div>
<DetailsList></DetailsList>
<DetailsList :hotelDetails="h"></DetailsList>
<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-grey-8 q-mt-sm">{{ h.Descriptions }}</div> -->
......@@ -216,9 +216,9 @@
pageTitle.value = t('v101.scatteredDetails.xiangqing')
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
console.log(data.urlParamsMsg.hotelId,'----')
console.log(data.getParamsMsg.searchroomGroup,'-----')
const search = reactive({
hotelId: data.urlParamsMsg.hotelId,
sort: 1,
......@@ -270,7 +270,6 @@
);
InternetArr.forEach((x:String,index:Number)=>{
if(x==1){
console.log(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