类型:开发

描述:
This commit is contained in:
2025-12-10 16:20:11 +08:00
parent d6c4bd0406
commit 095cd64373
2 changed files with 11 additions and 12 deletions

View File

@@ -95,11 +95,11 @@
</div> </div>
</div> </div>
<div class="amplify" @click="handleAmplify"> <div class="amplify" @click="handleAmplify">
<img class="icon-qp" src="@/assets/images/qping.png" alt="" /> <img class="icon-qp" src="@/assets/images/qping.png" alt="" />
</div> </div>
</template> </template>
<script> <script>
</script> </script>
<script setup> <script setup>
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
@@ -191,7 +191,6 @@
// 点击导航 // 点击导航
const handleNav = (item) => { const handleNav = (item) => {
console.log(item,router.currentRoute.value.path,'测试一下 ')
if (isSkip.value) { if (isSkip.value) {
router.push(item.path) router.push(item.path)
} else { } else {
@@ -214,7 +213,6 @@
otherLeftLabel.value = '其他酒店' otherLeftLabel.value = '其他酒店'
otherRightLabel.value = '其他场馆' otherRightLabel.value = '其他场馆'
pubSub.publish('hotelChange', item) pubSub.publish('hotelChange', item)
// console.log(item,'hotelChange')
break break
} }
} }
@@ -370,12 +368,11 @@
isBack.value = true isBack.value = true
let hotelRes = await getHotelListApi({ hotelStadiumType: 1 }) let hotelRes = await getHotelListApi({ hotelStadiumType: 1 })
navLeft.value = hotelRes.data.slice(0, 3) navLeft.value = hotelRes.data.slice(0, 3)
current.value = navLeft.value[0].id current.value = navLeft.value[0].id
otherLeftNav.value = hotelRes.data.slice(3, hotelRes.data.length - 1) otherLeftNav.value = hotelRes.data.slice(3, hotelRes.data.length)
let venueRes = await getHotelListApi({ hotelStadiumType: 2 }) let venueRes = await getHotelListApi({ hotelStadiumType: 2 })
// console.log(venueRes,'venueRes')
navRight.value = venueRes.data.slice(0, 3) navRight.value = venueRes.data.slice(0, 3)
otherRightNav.value = venueRes.data.slice(3, venueRes.data.length - 1) otherRightNav.value = venueRes.data.slice(3, venueRes.data.length)
pubSub.publish('hotelChange', hotelRes.data[0]) pubSub.publish('hotelChange', hotelRes.data[0])
break break
} }

View File

@@ -55,7 +55,7 @@
<div v-if="videoLog == 1" class="video-wrapper"> <div v-if="videoLog == 1" class="video-wrapper">
<div class="video-list"> <div class="video-list">
<div class="empty-box" v-if="videoList.length==0&&cond"> <div class="empty-box" v-if="videoList.length==0&&cond">
加载中... {{cond?'未接入':'加载中...'}}
</div> </div>
<div <div
class="video-item" class="video-item"
@@ -489,13 +489,14 @@
cameraName: cameraName.value, cameraName: cameraName.value,
businessScenicArea: params.businessScenicArea businessScenicArea: params.businessScenicArea
}) })
regionList.value = res.data[0].resourcesList; if(res.data.length>0){
regionList.value = res.data[0].resourcesList;
regionList.value[0].show = false
}
// regionList.value.forEach((item,index)=>{ // regionList.value.forEach((item,index)=>{
// // item.show = true // // item.show = true
// item.videoResources=item.resourcesList[0].videoResources // item.videoResources=item.resourcesList[0].videoResources
// }) // })
regionList.value[0].show = false
} }
const handleRegions = (e) => { const handleRegions = (e) => {
regionList.value[e].show = !regionList.value[e].show regionList.value[e].show = !regionList.value[e].show
@@ -508,6 +509,7 @@
hotelChange = pubSub.subscribe('hotelChange', (msg, data) => { hotelChange = pubSub.subscribe('hotelChange', (msg, data) => {
cameraName.value = '' cameraName.value = ''
params.businessScenicArea = data.name params.businessScenicArea = data.name
regionList.value=[];
getVideoRegions() getVideoRegions()
}) })