1f20191d by zhangmeng

票档显示

1 parent e41b1a70
...@@ -235,8 +235,10 @@ async function getTicketList() { ...@@ -235,8 +235,10 @@ async function getTicketList() {
235 activityId: activeId.value, isView: 1 235 activityId: activeId.value, isView: 1
236 }) 236 })
237 tickClass.value = res.rows 237 tickClass.value = res.rows
238 selectForm.value.latId = tickClass.value?.[0]?.id 238 if (tickClass.value.length > 0) {
239 await getTicketListType() 239 selectForm.value.latId = tickClass.value?.[0]?.id
240 await getTicketListType()
241 }
240 } 242 }
241 243
242 // 根据票档获取场次 244 // 根据票档获取场次
...@@ -275,8 +277,8 @@ function selectTick(v) { ...@@ -275,8 +277,8 @@ function selectTick(v) {
275 } 277 }
276 278
277 function toSelectSeat() { 279 function toSelectSeat() {
278 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')
279 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')
280 if (!user.value) { 282 if (!user.value) {
281 useStore.setVisitor() 283 useStore.setVisitor()
282 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!