类型:开发
描述:
This commit is contained in:
@@ -191,7 +191,6 @@
|
||||
|
||||
// 点击导航
|
||||
const handleNav = (item) => {
|
||||
console.log(item,router.currentRoute.value.path,'测试一下 ')
|
||||
if (isSkip.value) {
|
||||
router.push(item.path)
|
||||
} else {
|
||||
@@ -214,7 +213,6 @@
|
||||
otherLeftLabel.value = '其他酒店'
|
||||
otherRightLabel.value = '其他场馆'
|
||||
pubSub.publish('hotelChange', item)
|
||||
// console.log(item,'hotelChange')
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -370,12 +368,11 @@
|
||||
isBack.value = true
|
||||
let hotelRes = await getHotelListApi({ hotelStadiumType: 1 })
|
||||
navLeft.value = hotelRes.data.slice(0, 3)
|
||||
current.value = navLeft.value[0].id
|
||||
otherLeftNav.value = hotelRes.data.slice(3, hotelRes.data.length - 1)
|
||||
current.value = navLeft.value[0].id
|
||||
otherLeftNav.value = hotelRes.data.slice(3, hotelRes.data.length)
|
||||
let venueRes = await getHotelListApi({ hotelStadiumType: 2 })
|
||||
// console.log(venueRes,'venueRes')
|
||||
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])
|
||||
break
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<div v-if="videoLog == 1" class="video-wrapper">
|
||||
<div class="video-list">
|
||||
<div class="empty-box" v-if="videoList.length==0&&cond">
|
||||
加载中...
|
||||
{{cond?'未接入':'加载中...'}}
|
||||
</div>
|
||||
<div
|
||||
class="video-item"
|
||||
@@ -489,13 +489,14 @@
|
||||
cameraName: cameraName.value,
|
||||
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)=>{
|
||||
// // item.show = true
|
||||
// item.videoResources=item.resourcesList[0].videoResources
|
||||
// })
|
||||
regionList.value[0].show = false
|
||||
|
||||
}
|
||||
const handleRegions = (e) => {
|
||||
regionList.value[e].show = !regionList.value[e].show
|
||||
@@ -508,6 +509,7 @@
|
||||
hotelChange = pubSub.subscribe('hotelChange', (msg, data) => {
|
||||
cameraName.value = ''
|
||||
params.businessScenicArea = data.name
|
||||
regionList.value=[];
|
||||
getVideoRegions()
|
||||
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user