feat:重新对接首页接口
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
const toOrderNum = (num) => {
|
||||
num = num.toString()
|
||||
orderNum.value = num.split('') // 将其便变成数据,渲染至滚动数组
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
setNumberTransform()
|
||||
})
|
||||
}, 500)
|
||||
}
|
||||
watch(
|
||||
() => props.count,
|
||||
|
||||
Reference in New Issue
Block a user