c284720d by zhangmeng

旅游

1 parent d1ddb010
......@@ -24,7 +24,7 @@
<el-row :gutter="20" align="middle" class="hotel">
<el-col :span="6">
<div class="imgbox">
<img :src="fillImgUrl(h.photos?.split(',')[0])" class="w100">
<img :src="fillImgUrl(h.cover?.split(',')[0])" class="w100">
</div>
</el-col>
<el-col :span="12">
......
......@@ -145,14 +145,16 @@ const route = useRoute()
const router = useRouter()
const show = ref(false)
const showUrl = ref('')
const activeId = ref(route.params.activeId)
const activeId = ref(route.params.lasId)
const scenicId = ref(route.params.scenicId)
const lasId = ref(route.query.lasId)
const active = ref(1)
const timeData = ref()
const endTime = ref()
const matchForm = ref({})
const selectForm = ref({
latsId: null,
lasId: null,
scenicDate: '',
price: '--',
priceEn: '--'
......@@ -161,15 +163,14 @@ const selectForm = ref({
const { proxy } = getCurrentInstance()
const travel = ref({})
const ticketList = ref([])
onMounted(() => {
getLogexScenicVoById()
})
async function getLogexScenicVoById() {
const res = await booking.getLogexScenicVoById({ id: activeId.value })
const res = await booking.getLogexScenicVoById({ id: lasId.value })
travel.value = res.data
selectForm.value.latsId = travel.value.id
selectForm.value.lasId = lasId.value
if (travel.value.dateList && travel.value.dateList.length > 0) {
selectForm.value.scenicDate = travel.value.dateList[0]
await getGateListByLasId()
......@@ -178,7 +179,7 @@ async function getLogexScenicVoById() {
async function getGateListByLasId() {
const res = await booking.getGateListByLasId({
latsId: selectForm.value.latsId,
lasId: lasId.value,
scenicDate: selectForm.value.scenicDate
})
ticketList.value = res.data
......@@ -255,7 +256,7 @@ function goNext() {
start: selectForm.value.scenicDate
},
query: {
lasId: selectForm.value.latsId,
lasId: selectForm.value.lasId,
item: encodeURIComponent(JSON.stringify(ticketList.value))
}
})
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!