55b26a7d by 杨炀

no message

1 parent 126485c3
......@@ -163,7 +163,7 @@ function submit() {
return
}
if (money.value <= 0) {
// ElMessage.error(language.value == 0 ? '请选择接站/送站' : 'Please select pickup/drop off')
ElMessage.error(language.value == 0 ? '请添加人数' : 'Please add the number of people')
return
}
// 提交确认
......
<template>
<div class="itemBox" v-if="language == 0">
<div v-if="language == 0" class="itemBox">
<el-row :gutter="20">
<el-col :sm="12" :lg="8" :xs="12">
<div class="item" @click="popRemark(1)"><img src="@/assets/dance/btn01.png">酒店预订</div>
......@@ -7,9 +7,9 @@
<el-col :sm="12" :lg="8" :xs="12">
<div class="item" @click="popRemark(2)"><img src="@/assets/dance/btn02.png">车辆预订</div>
</el-col>
<!-- <el-col :sm="12" :lg="8" :xs="12">-->
<!-- <div class="item" @click="popRemark(3)"><img src="@/assets/dance/btn03.png">餐饮预订</div>-->
<!-- </el-col>-->
<!-- <el-col :sm="12" :lg="8" :xs="12">-->
<!-- <div class="item" @click="popRemark(3)"><img src="@/assets/dance/btn03.png">餐饮预订</div>-->
<!-- </el-col>-->
<el-col :sm="12" :lg="8" :xs="12">
<div class="item" @click="popRemark(8)"><img src="@/assets/dance/btn08.png">旅游服务</div>
</el-col>
......@@ -24,7 +24,7 @@
</el-col>
</el-row>
</div>
<div class="itemBox_en" v-else>
<div v-else class="itemBox_en">
<el-row :gutter="20">
<el-col :sm="12" :lg="8" :xs="12">
<div class="item_en" @click="popRemark(1)"><img src="@/assets/dance/btn01.png">
......@@ -59,22 +59,22 @@
</el-col>
</el-row>
</div>
<order-remark ref="orderRemarkRef" @submit="goBooking"/>
<order-remark ref="orderRemarkRef" @submit="goBooking" />
</template>
<script setup>
import {useRouter} from "vue-router";
import { useRouter } from 'vue-router'
const router = useRouter()
import OrderRemark from '@/viewsPc/components/orderRemark'
const {proxy} = getCurrentInstance()
import {useStorage} from "@vueuse/core/index";
import {ElMessage} from "element-plus";
import {getCurrentInstance} from "@vue/runtime-core";
import {computed, onMounted, watch} from "vue";
import {getBaseInfoByActiveId} from "@/apiPc/booking";
const { proxy } = getCurrentInstance()
import { useStorage } from '@vueuse/core/index'
import { ElMessage } from 'element-plus'
import { getCurrentInstance } from '@vue/runtime-core'
import { computed, onMounted, watch } from 'vue'
import { getBaseInfoByActiveId } from '@/apiPc/booking'
const props = defineProps({
matchId: {
......@@ -90,7 +90,7 @@ const props = defineProps({
})
const language = useStorage('language', 0)
const form = ref({})
const matchId = computed(() => props.matchId);
const matchId = computed(() => props.matchId)
watch(matchId, (val) => {
if (val && val != '0') {
......@@ -117,13 +117,13 @@ function popRemark(type) {
building()
return
}
if ((form.value.isJdView == 0 && type == '1')
|| (form.value.isCarView == 0 && type == '2')
|| (form.value.isFoodView == 0 && type == '3')
|| (form.value.isMealView == 0 && type == '4')
|| (form.value.isPhotoView == 0 && type == '5')
|| (form.value.isTicket==0&&type == '0')
|| (form.value.isTravel==0&&type == '8')
if ((form.value.isJdView == 0 && type == '1') ||
(form.value.isCarView == 0 && type == '2') ||
(form.value.isFoodView == 0 && type == '3') ||
(form.value.isMealView == 0 && type == '4') ||
(form.value.isPhotoView == 0 && type == '5') ||
(form.value.isTicket == 0 && type == '0') ||
(form.value.isTravel == 0 && type == '8')
) {
building()
return
......@@ -142,35 +142,35 @@ function goBooking(n) {
case 0:
// 票务
router.push({
path: `/booking/ticket/${props.matchId}`,
path: `/booking/ticket/${props.matchId}`
// params: {id:props.matchId},
// query: {id: props.matchId}
})
break;
break
case 1:
//酒店
router.push({path: `/booking/hotel/${props.matchId}`})
break;
// 酒店
router.push({ path: `/booking/hotel/${props.matchId}` })
break
case 2:
//车辆
router.push({path: `/booking/car/${props.matchId}`})
break;
// 车辆
router.push({ path: `/booking/car/${props.matchId}` })
break
case 3:
//餐饮
router.push({path: `/booking/dinner/${props.matchId}`})
break;
// 餐饮
router.push({ path: `/booking/dinner/${props.matchId}` })
break
case 4:
//化妆
router.push({path: `/booking/makeup/${props.matchId}`})
break;
// 化妆
router.push({ path: `/booking/makeup/${props.matchId}` })
break
case 5:
//拍照
router.push({path: `/booking/photography/${props.matchId}`})
break;
// 拍照
router.push({ path: `/booking/photography/${props.matchId}` })
break
case 8:
//酒店
router.push({path: `/booking/travel/${props.matchId}`})
break;
// 酒店
router.push({ path: `/booking/travel/${props.matchId}` })
break
}
}
</script>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!