584c27d3 by zhangmeng

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

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