feat:完善功能

This commit is contained in:
zjc
2025-03-05 14:02:36 +08:00
parent 69de146b57
commit 21cb9b04ca
3 changed files with 10 additions and 75 deletions

View File

@@ -26,7 +26,7 @@
backgroundImage: `url(${title2})`
}"
>
{{ otherLeftLabel || '其他' }}
{{ otherLeftLabel }}
<img class="icon" src="@/assets/images/arrow-down-1.png" />
</li>
<template #dropdown>
@@ -136,7 +136,7 @@
router.push(item.path)
} else {
if (current.value === index) return
otherLeftLabel.value = ''
otherLeftLabel.value = '其他酒店'
current.value = index
title.value = item.name
switch (router.currentRoute.value.path) {
@@ -184,6 +184,7 @@
]
break
case '/scenic':
otherLeftLabel.value = '其他景区'
isSkip.value = false
isBack.value = true
let res = await getSpotListApi()
@@ -270,11 +271,12 @@
isBack.value = true
break
case '/hotel':
title.value = '酒店管理'
title.value = '酒店场馆'
otherLeftLabel.value = '其他酒店'
isSkip.value = false
current.vlaue = ''
isBack.value = true
let hotelRes = await getHotelListApi()
let hotelRes = await getHotelListApi({ hotelStadiumType: 1 })
navLeft.value = hotelRes.data.slice(0, 3)
pubSub.publish('hotelChange', hotelRes.data[0])
otherLeftNav.value = hotelRes.data.slice(3, hotelRes.data.length - 1)

View File

@@ -72,8 +72,8 @@
</div>
<div class="desc-box">
<title2 title="酒店简介" />
<div class="desc-container">
<div class="desc-content" v-html="info?.introduction"></div>
<div class="desc-container">
<div>
<el-carousel indicator-position="outside">
<el-carousel-item v-for="item in info?.banner" :key="item">
@@ -214,6 +214,8 @@
padding: vh(20) vw(20) 0 vw(20);
}
&-content {
margin: vh(20) 0 0 vw(20);
padding-right: vw(20);
overflow-y: auto;
height: vh(200);
font-weight: 400;

View File

@@ -49,75 +49,6 @@
</div>
</div>
</li>
<!-- <li
v-if="active == 1"
class="item"
:class="{ item__active: current === index }"
v-for="(item, index) in ononlineList"
:key="index"
@click="handleItem(item, index)"
>
<p class="item__label">{{ item.licenseNumber }}</p>
<div class="item__value"
>{{ item.speed }}km/h
<img v-if="item.status == '行驶'" src="@/assets/images/engine.png" alt="" />
<img v-else src="@/assets/images/unengine.png" alt="" />
<div
:class="{
'item__hot--primary': item.status == '行驶',
'item__hot--info': item.status != '行驶',
'item__hot--active': current === index
}"
>
</div>
</div>
</li>
<li
v-if="active == 2"
class="item"
:class="{ item__active: current === index }"
v-for="(item, index) in offlineList"
:key="index"
@click="handleItem(item, index)"
>
<p class="item__label">{{ item.licenseNumber }}</p>
<div class="item__value"
>{{ item.speed }}km/h
<img v-if="item.status == '行驶'" src="@/assets/images/engine.png" alt="" />
<img v-else src="@/assets/images/unengine.png" alt="" />
<div
:class="{
'item__hot--primary': item.status == '行驶',
'item__hot--info': item.status != '行驶',
'item__hot--active': current === index
}"
>
</div>
</div>
</li>
<li
v-if="active == 3"
class="item"
:class="{ item__active: current === index }"
v-for="(item, index) in staticList"
:key="index"
@click="handleItem(item, index)"
>
<p class="item__label">{{ item.licenseNumber }}</p>
<div class="item__value"
>{{ item.speed }}km/h
<img v-if="item.status == '行驶'" src="@/assets/images/engine.png" alt="" />
<img v-else src="@/assets/images/unengine.png" alt="" />
<div
:class="{
'item__hot--primary': item.status == '行驶',
'item__hot--info': item.status != '行驶',
'item__hot--active': current === index
}"
>
</div>
</div>
</li> -->
</ul>
</div>
<div id="big-car-ship" class="big-car-ship" />
@@ -435,7 +366,7 @@
.marker {
&-box {
position: relative;
width: 316px;
width: vw(700);
border: 1px solid #0096ff;
background: linear-gradient(180deg, #0a4190 0%, #0e51b1 100%);
}