ae67d96a by zhangmeng

旅游

1 parent 9fa2d4d5
...@@ -78,6 +78,7 @@ import { useStorage } from '@vueuse/core/index' ...@@ -78,6 +78,7 @@ import { useStorage } from '@vueuse/core/index'
78 import useUserStore from '@/store/modules/user' 78 import useUserStore from '@/store/modules/user'
79 import { ref, onMounted } from 'vue' 79 import { ref, onMounted } from 'vue'
80 import { getCurrentInstance } from '@vue/runtime-core' 80 import { getCurrentInstance } from '@vue/runtime-core'
81 import { getBaseInfoByActiveId } from '@/apiPc/booking'
81 82
82 const { proxy } = getCurrentInstance() 83 const { proxy } = getCurrentInstance()
83 84
...@@ -108,6 +109,11 @@ function getList() { ...@@ -108,6 +109,11 @@ function getList() {
108 } 109 }
109 110
110 async function goDetail(item) { 111 async function goDetail(item) {
112 const { data } = await getBaseInfoByActiveId(route.params.cptId)
113 if (data.isScenicView == 0) {
114 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.')
115 }
116
111 if (!user) { 117 if (!user) {
112 useStore().setVisitor() 118 useStore().setVisitor()
113 return 119 return
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
133 </div> 133 </div>
134 <div class="text-right"> 134 <div class="text-right">
135 <el-button 135 <el-button
136 v-if="(b.orderType == 0||b.orderType == 5||b.orderType==1||b.orderType==2||b.orderType==3||b.orderType==4)&&b.viewStatus!=0" 136 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"
137 class="mb10" plain round 137 class="mb10" plain round
138 size="small" type="success" 138 size="small" type="success"
139 @click="Rebook(b)" 139 @click="Rebook(b)"
...@@ -281,6 +281,11 @@ function Rebook(row) { ...@@ -281,6 +281,11 @@ function Rebook(row) {
281 } 281 }
282 }) 282 })
283 } 283 }
284 if (row.orderType == 6) {
285 return router.push({
286 path: `/booking/travel/${row.activeId}`
287 })
288 }
284 } 289 }
285 290
286 const cancel = (row) => { 291 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!