ae67d96a by zhangmeng

旅游

1 parent 9fa2d4d5
......@@ -78,6 +78,7 @@ import { useStorage } from '@vueuse/core/index'
import useUserStore from '@/store/modules/user'
import { ref, onMounted } from 'vue'
import { getCurrentInstance } from '@vue/runtime-core'
import { getBaseInfoByActiveId } from '@/apiPc/booking'
const { proxy } = getCurrentInstance()
......@@ -108,6 +109,11 @@ function getList() {
}
async function goDetail(item) {
const { data } = await getBaseInfoByActiveId(route.params.cptId)
if (data.isScenicView == 0) {
return proxy.$modal.confirm(language.value == 0 ? '感谢您对本次比赛的关注,该服务暂无可预订信息,敬请期待。' : 'Thank you for your attention to this competition. The service is currently unavailable for booking. Please stay tuned.')
}
if (!user) {
useStore().setVisitor()
return
......
......@@ -133,7 +133,7 @@
</div>
<div class="text-right">
<el-button
v-if="(b.orderType == 0||b.orderType == 5||b.orderType==1||b.orderType==2||b.orderType==3||b.orderType==4)&&b.viewStatus!=0"
v-if="(b.orderType == 0||b.orderType == 5||b.orderType==1||b.orderType==2||b.orderType==3||b.orderType==4||b.orderType==6)&&b.viewStatus!=0"
class="mb10" plain round
size="small" type="success"
@click="Rebook(b)"
......@@ -281,6 +281,11 @@ function Rebook(row) {
}
})
}
if (row.orderType == 6) {
return router.push({
path: `/booking/travel/${row.activeId}`
})
}
}
const cancel = (row) => {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!