bb4313de by zhangmeng

bug修复

1 parent 3737d22c
......@@ -83,11 +83,9 @@
</template>
<script setup>
import {useRouter} from "vue-router";
import {ref, reactive, onMounted} from "vue";
import {useRoute} from "vue-router";
import {getHotelById, getMenuById} from "@/apiPc/booking"
import {useRouter,useRoute} from "vue-router";
import {ref, onMounted} from "vue";
import { getMenuById} from "@/apiPc/booking"
import {useStorage} from "@vueuse/core/index";
import useUserStore from "@/store/modules/user";
import {fillImgUrl} from "@/utils/ruoyi";
......@@ -98,7 +96,7 @@ const router = useRouter()
const route = useRoute()
const form = ref({})
const query = ref({
larId: route.query.id
larId: route.params.id
})
const loading = ref(false)
const roomList = ref([])
......@@ -106,11 +104,13 @@ const map = ref(null)
onMounted(() => {
form.value = JSON.parse(decodeURIComponent(route.query.detail))
getData()
})
function getData() {
loading.value = true
query.value.hotelId = route.query.id
console.log(query.value)
getMenuById(query.value).then(res => {
loading.value = false
roomList.value = res.rows
......
......@@ -242,6 +242,7 @@ function submit() {
form.value.foodsList.push(obj)
form.value.activeId = restaurant.value.activityId
form.value.larId = restaurant.value.id
form.value.orderName=restaurant.value.name
// 提交确认
ElMessageBox.confirm(language.value == 0 ? '确认提交订单吗?' : 'Confirm to submit the order?', {
confirmButtonText: language.value == 0 ? '确定' : 'Confirm',
......
......@@ -97,12 +97,12 @@ function building() {
return
}
function popRemark(type){
// debugger
if(!form.value){
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') || (type=='5'&&form.value.isPhotoView == 0)){
//type == '0'
building()
return
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!