584c27d3 by zhangmeng

Merge branch '票档显示' into 购票修改

2 parents 020bfaca 1f20191d
...@@ -231,10 +231,14 @@ async function getDetail() { ...@@ -231,10 +231,14 @@ async function getDetail() {
231 getTicketList() 231 getTicketList()
232 232
233 async function getTicketList() { 233 async function getTicketList() {
234 const res = await getTicketListApi({activityId: activeId.value}) 234 const res = await getTicketListApi({
235 activityId: activeId.value, isView: 1
236 })
235 tickClass.value = res.rows 237 tickClass.value = res.rows
236 selectForm.value.latId = tickClass.value?.[0]?.id 238 if (tickClass.value.length > 0) {
237 await getTicketListType() 239 selectForm.value.latId = tickClass.value?.[0]?.id
240 await getTicketListType()
241 }
238 } 242 }
239 243
240 // 根据票档获取场次 244 // 根据票档获取场次
...@@ -273,8 +277,8 @@ function selectTick(v) { ...@@ -273,8 +277,8 @@ function selectTick(v) {
273 } 277 }
274 278
275 function toSelectSeat() { 279 function toSelectSeat() {
276 if (!selectForm.value.latId) return ElMessage.error(language == 0 ? "请选择票档" : 'Please select a ticket file') 280 if (!selectForm.value.latId) return ElMessage.error(language.value == 0 ? "请选择票档" : 'Please select a ticket file')
277 if (!selectForm.value.id) return ElMessage.error(language == 0 ? "请选择时间" : 'Please select time') 281 if (!selectForm.value.id) return ElMessage.error(language.value == 0 ? "请选择时间" : 'Please select time')
278 if (!user.value) { 282 if (!user.value) {
279 useStore.setVisitor() 283 useStore.setVisitor()
280 return 284 return
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!