类型:开发

描述:
This commit is contained in:
2025-05-01 16:00:33 +08:00
parent 5563dc0536
commit a1277eb04d
8 changed files with 72 additions and 50 deletions

View File

@@ -15,15 +15,15 @@
:key="index"
@click="handleItem(item)"
>
<div
v-if="item.isCollect == 1"
class="item-unfollow"
<div
v-if="item.isCollect == 1"
class="item-unfollow"
@click.stop="handleCollect(item.cameraIndexCode, index)">取消关注</div>
<div
v-if="item.isCollect == 0"
class="item-unfollow"
<div
v-if="item.isCollect == 0"
class="item-unfollow"
@click.stop="handleCollect(item.cameraIndexCode, index)">关注</div>
<video class="item-video" :id="'video' + index" muted autoplay :controls="false">
<source type="application/x-mpegURL" />
</video>
@@ -43,8 +43,8 @@
/>
</div>
</div>
</el-dialog>
</div>
<video-dialog v-model="videoShow" :src="src" :isDiy="isDiy" :isCollect="isCollect" :cameraIndexCode="cameraIndexCode" />
@@ -58,7 +58,7 @@
import Hls from 'hls.js'
import pubSub from 'pubsub-js'
let props = defineProps({
events: {
type: Object,
@@ -76,7 +76,7 @@
let isDiy = ref(0)
let params = reactive({
pageNum: 1,
pageSize: 15,
pageSize: 6,
businessScenicArea:'',
})
@@ -137,11 +137,10 @@
let cond = ref(false)
const getVideoList = async () => {
let res = await getSpotVideoEvents(params)
console.log(res,'rrrrrrrrr')
list.value = res.data
total.value = res.total
setTimeout(()=>{cond.value = true},1500)
nextTick(() => {
list.value.forEach(async (item, index) => {
var video = document.getElementById(`video${index}`)