旅游
Showing
2 changed files
with
10 additions
and
9 deletions
| ... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
| 24 | <el-row :gutter="20" align="middle" class="hotel"> | 24 | <el-row :gutter="20" align="middle" class="hotel"> |
| 25 | <el-col :span="6"> | 25 | <el-col :span="6"> |
| 26 | <div class="imgbox"> | 26 | <div class="imgbox"> |
| 27 | <img :src="fillImgUrl(h.photos?.split(',')[0])" class="w100"> | 27 | <img :src="fillImgUrl(h.cover?.split(',')[0])" class="w100"> |
| 28 | </div> | 28 | </div> |
| 29 | </el-col> | 29 | </el-col> |
| 30 | <el-col :span="12"> | 30 | <el-col :span="12"> | ... | ... |
| ... | @@ -145,14 +145,16 @@ const route = useRoute() | ... | @@ -145,14 +145,16 @@ const route = useRoute() |
| 145 | const router = useRouter() | 145 | const router = useRouter() |
| 146 | const show = ref(false) | 146 | const show = ref(false) |
| 147 | const showUrl = ref('') | 147 | const showUrl = ref('') |
| 148 | const activeId = ref(route.params.activeId) | 148 | const activeId = ref(route.params.lasId) |
| 149 | const scenicId = ref(route.params.scenicId) | ||
| 150 | const lasId = ref(route.query.lasId) | ||
| 151 | |||
| 149 | const active = ref(1) | 152 | const active = ref(1) |
| 150 | 153 | ||
| 151 | const timeData = ref() | ||
| 152 | const endTime = ref() | 154 | const endTime = ref() |
| 153 | const matchForm = ref({}) | 155 | const matchForm = ref({}) |
| 154 | const selectForm = ref({ | 156 | const selectForm = ref({ |
| 155 | latsId: null, | 157 | lasId: null, |
| 156 | scenicDate: '', | 158 | scenicDate: '', |
| 157 | price: '--', | 159 | price: '--', |
| 158 | priceEn: '--' | 160 | priceEn: '--' |
| ... | @@ -161,15 +163,14 @@ const selectForm = ref({ | ... | @@ -161,15 +163,14 @@ const selectForm = ref({ |
| 161 | const { proxy } = getCurrentInstance() | 163 | const { proxy } = getCurrentInstance() |
| 162 | const travel = ref({}) | 164 | const travel = ref({}) |
| 163 | const ticketList = ref([]) | 165 | const ticketList = ref([]) |
| 164 | |||
| 165 | onMounted(() => { | 166 | onMounted(() => { |
| 166 | getLogexScenicVoById() | 167 | getLogexScenicVoById() |
| 167 | }) | 168 | }) |
| 168 | 169 | ||
| 169 | async function getLogexScenicVoById() { | 170 | async function getLogexScenicVoById() { |
| 170 | const res = await booking.getLogexScenicVoById({ id: activeId.value }) | 171 | const res = await booking.getLogexScenicVoById({ id: lasId.value }) |
| 171 | travel.value = res.data | 172 | travel.value = res.data |
| 172 | selectForm.value.latsId = travel.value.id | 173 | selectForm.value.lasId = lasId.value |
| 173 | if (travel.value.dateList && travel.value.dateList.length > 0) { | 174 | if (travel.value.dateList && travel.value.dateList.length > 0) { |
| 174 | selectForm.value.scenicDate = travel.value.dateList[0] | 175 | selectForm.value.scenicDate = travel.value.dateList[0] |
| 175 | await getGateListByLasId() | 176 | await getGateListByLasId() |
| ... | @@ -178,7 +179,7 @@ async function getLogexScenicVoById() { | ... | @@ -178,7 +179,7 @@ async function getLogexScenicVoById() { |
| 178 | 179 | ||
| 179 | async function getGateListByLasId() { | 180 | async function getGateListByLasId() { |
| 180 | const res = await booking.getGateListByLasId({ | 181 | const res = await booking.getGateListByLasId({ |
| 181 | latsId: selectForm.value.latsId, | 182 | lasId: lasId.value, |
| 182 | scenicDate: selectForm.value.scenicDate | 183 | scenicDate: selectForm.value.scenicDate |
| 183 | }) | 184 | }) |
| 184 | ticketList.value = res.data | 185 | ticketList.value = res.data |
| ... | @@ -255,7 +256,7 @@ function goNext() { | ... | @@ -255,7 +256,7 @@ function goNext() { |
| 255 | start: selectForm.value.scenicDate | 256 | start: selectForm.value.scenicDate |
| 256 | }, | 257 | }, |
| 257 | query: { | 258 | query: { |
| 258 | lasId: selectForm.value.latsId, | 259 | lasId: selectForm.value.lasId, |
| 259 | item: encodeURIComponent(JSON.stringify(ticketList.value)) | 260 | item: encodeURIComponent(JSON.stringify(ticketList.value)) |
| 260 | } | 261 | } |
| 261 | }) | 262 | }) | ... | ... |
-
Please register or sign in to post a comment