55b26a7d by 杨炀

no message

1 parent 126485c3
...@@ -163,7 +163,7 @@ function submit() { ...@@ -163,7 +163,7 @@ function submit() {
163 return 163 return
164 } 164 }
165 if (money.value <= 0) { 165 if (money.value <= 0) {
166 // ElMessage.error(language.value == 0 ? '请选择接站/送站' : 'Please select pickup/drop off') 166 ElMessage.error(language.value == 0 ? '请添加人数' : 'Please add the number of people')
167 return 167 return
168 } 168 }
169 // 提交确认 169 // 提交确认
......
1 <template> 1 <template>
2 <div class="itemBox" v-if="language == 0"> 2 <div v-if="language == 0" class="itemBox">
3 <el-row :gutter="20"> 3 <el-row :gutter="20">
4 <el-col :sm="12" :lg="8" :xs="12"> 4 <el-col :sm="12" :lg="8" :xs="12">
5 <div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn01.png">酒店预订</div> 5 <div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn01.png">酒店预订</div>
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
7 <el-col :sm="12" :lg="8" :xs="12"> 7 <el-col :sm="12" :lg="8" :xs="12">
8 <div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn02.png">车辆预订</div> 8 <div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn02.png">车辆预订</div>
9 </el-col> 9 </el-col>
10 <!-- <el-col :sm="12" :lg="8" :xs="12">--> 10 <!-- <el-col :sm="12" :lg="8" :xs="12">-->
11 <!-- <div class="item" @click="popRemark(3)"><img src="@/assets/dance/btn03.png">餐饮预订</div>--> 11 <!-- <div class="item" @click="popRemark(3)"><img src="@/assets/dance/btn03.png">餐饮预订</div>-->
12 <!-- </el-col>--> 12 <!-- </el-col>-->
13 <el-col :sm="12" :lg="8" :xs="12"> 13 <el-col :sm="12" :lg="8" :xs="12">
14 <div class="item" @click="popRemark(8)"><img src="@/assets/dance/btn08.png">旅游服务</div> 14 <div class="item" @click="popRemark(8)"><img src="@/assets/dance/btn08.png">旅游服务</div>
15 </el-col> 15 </el-col>
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
24 </el-col> 24 </el-col>
25 </el-row> 25 </el-row>
26 </div> 26 </div>
27 <div class="itemBox_en" v-else> 27 <div v-else class="itemBox_en">
28 <el-row :gutter="20"> 28 <el-row :gutter="20">
29 <el-col :sm="12" :lg="8" :xs="12"> 29 <el-col :sm="12" :lg="8" :xs="12">
30 <div class="item_en" @click="popRemark(1)"><img src="@/assets/dance/btn01.png"> 30 <div class="item_en" @click="popRemark(1)"><img src="@/assets/dance/btn01.png">
...@@ -59,22 +59,22 @@ ...@@ -59,22 +59,22 @@
59 </el-col> 59 </el-col>
60 </el-row> 60 </el-row>
61 </div> 61 </div>
62 <order-remark ref="orderRemarkRef" @submit="goBooking"/> 62 <order-remark ref="orderRemarkRef" @submit="goBooking" />
63 63
64 </template> 64 </template>
65 65
66 <script setup> 66 <script setup>
67 import {useRouter} from "vue-router"; 67 import { useRouter } from 'vue-router'
68 68
69 const router = useRouter() 69 const router = useRouter()
70 import OrderRemark from '@/viewsPc/components/orderRemark' 70 import OrderRemark from '@/viewsPc/components/orderRemark'
71 71
72 const {proxy} = getCurrentInstance() 72 const { proxy } = getCurrentInstance()
73 import {useStorage} from "@vueuse/core/index"; 73 import { useStorage } from '@vueuse/core/index'
74 import {ElMessage} from "element-plus"; 74 import { ElMessage } from 'element-plus'
75 import {getCurrentInstance} from "@vue/runtime-core"; 75 import { getCurrentInstance } from '@vue/runtime-core'
76 import {computed, onMounted, watch} from "vue"; 76 import { computed, onMounted, watch } from 'vue'
77 import {getBaseInfoByActiveId} from "@/apiPc/booking"; 77 import { getBaseInfoByActiveId } from '@/apiPc/booking'
78 78
79 const props = defineProps({ 79 const props = defineProps({
80 matchId: { 80 matchId: {
...@@ -90,7 +90,7 @@ const props = defineProps({ ...@@ -90,7 +90,7 @@ const props = defineProps({
90 }) 90 })
91 const language = useStorage('language', 0) 91 const language = useStorage('language', 0)
92 const form = ref({}) 92 const form = ref({})
93 const matchId = computed(() => props.matchId); 93 const matchId = computed(() => props.matchId)
94 94
95 watch(matchId, (val) => { 95 watch(matchId, (val) => {
96 if (val && val != '0') { 96 if (val && val != '0') {
...@@ -117,13 +117,13 @@ function popRemark(type) { ...@@ -117,13 +117,13 @@ function popRemark(type) {
117 building() 117 building()
118 return 118 return
119 } 119 }
120 if ((form.value.isJdView == 0 && type == '1') 120 if ((form.value.isJdView == 0 && type == '1') ||
121 || (form.value.isCarView == 0 && type == '2') 121 (form.value.isCarView == 0 && type == '2') ||
122 || (form.value.isFoodView == 0 && type == '3') 122 (form.value.isFoodView == 0 && type == '3') ||
123 || (form.value.isMealView == 0 && type == '4') 123 (form.value.isMealView == 0 && type == '4') ||
124 || (form.value.isPhotoView == 0 && type == '5') 124 (form.value.isPhotoView == 0 && type == '5') ||
125 || (form.value.isTicket==0&&type == '0') 125 (form.value.isTicket == 0 && type == '0') ||
126 || (form.value.isTravel==0&&type == '8') 126 (form.value.isTravel == 0 && type == '8')
127 ) { 127 ) {
128 building() 128 building()
129 return 129 return
...@@ -142,35 +142,35 @@ function goBooking(n) { ...@@ -142,35 +142,35 @@ function goBooking(n) {
142 case 0: 142 case 0:
143 // 票务 143 // 票务
144 router.push({ 144 router.push({
145 path: `/booking/ticket/${props.matchId}`, 145 path: `/booking/ticket/${props.matchId}`
146 // params: {id:props.matchId}, 146 // params: {id:props.matchId},
147 // query: {id: props.matchId} 147 // query: {id: props.matchId}
148 }) 148 })
149 break; 149 break
150 case 1: 150 case 1:
151 //酒店 151 // 酒店
152 router.push({path: `/booking/hotel/${props.matchId}`}) 152 router.push({ path: `/booking/hotel/${props.matchId}` })
153 break; 153 break
154 case 2: 154 case 2:
155 //车辆 155 // 车辆
156 router.push({path: `/booking/car/${props.matchId}`}) 156 router.push({ path: `/booking/car/${props.matchId}` })
157 break; 157 break
158 case 3: 158 case 3:
159 //餐饮 159 // 餐饮
160 router.push({path: `/booking/dinner/${props.matchId}`}) 160 router.push({ path: `/booking/dinner/${props.matchId}` })
161 break; 161 break
162 case 4: 162 case 4:
163 //化妆 163 // 化妆
164 router.push({path: `/booking/makeup/${props.matchId}`}) 164 router.push({ path: `/booking/makeup/${props.matchId}` })
165 break; 165 break
166 case 5: 166 case 5:
167 //拍照 167 // 拍照
168 router.push({path: `/booking/photography/${props.matchId}`}) 168 router.push({ path: `/booking/photography/${props.matchId}` })
169 break; 169 break
170 case 8: 170 case 8:
171 //酒店 171 // 酒店
172 router.push({path: `/booking/travel/${props.matchId}`}) 172 router.push({ path: `/booking/travel/${props.matchId}` })
173 break; 173 break
174 } 174 }
175 } 175 }
176 </script> 176 </script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!