feat:重新对接首页接口

This commit is contained in:
zjc
2025-01-14 19:01:09 +08:00
parent 880db48579
commit ebac43f818
28 changed files with 2250 additions and 2133 deletions

View File

@@ -55,16 +55,13 @@
list.value.forEach(async (item, index) => {
var video = document.getElementById(`video${index}`)
let res1 = await postRefreshApi({
type: 'hls',
businessVideoDisplayPosition: item.businessVideoDisplayPosition,
cameraIndexCode: item.cameraIndexCode
})
let hlsUrl = res1.data.hlsUrl.replace(
'http://172.22.15.170:8050',
'http://36.138.38.16:6150'
)
item.hlsUrl = hlsUrl
item.hlsUrl = res1.data.hlsUrl
const hls = new Hls()
hls.loadSource(hlsUrl)
hls.loadSource(res1.data.hlsUrl)
hls.attachMedia(video)
hls.on(Hls.Events.MANIFEST_PARSED, () => {
video.play()

View File

@@ -62,7 +62,7 @@
height: vh(28);
font-weight: 400;
font-size: vw(12);
color: #0096ff;
color: #fff;
display: flex;
background: linear-gradient(180deg, rgba(0, 99, 255, 0) 0%, #0063ff 100%);
& > div {

View File

@@ -31,9 +31,9 @@
const toOrderNum = (num) => {
num = num.toString()
orderNum.value = num.split('') // 将其便变成数据,渲染至滚动数组
nextTick(() => {
setTimeout(() => {
setNumberTransform()
})
}, 500)
}
watch(
() => props.count,