bug 修改

This commit is contained in:
duanliang
2025-05-30 23:54:56 +08:00
parent 2134b44689
commit 924b9c8966
4 changed files with 18 additions and 12 deletions

View File

@@ -57,7 +57,7 @@
top: '34%', top: '34%',
textStyle: { textStyle: {
color: '#00D0FF', color: '#00D0FF',
fontSize: fitChartSize(12) fontSize: fitChartSize(24)
} }
}, },
{ {
@@ -66,7 +66,7 @@
top: '56%', top: '56%',
textStyle: { textStyle: {
color: '#fff', color: '#fff',
fontSize: fitChartSize(12) fontSize: fitChartSize(24)
} }
} }
], ],

View File

@@ -14,7 +14,7 @@
width:(100/grad)+'%' width:(100/grad)+'%'
}"> }">
<div class="video-item__inner" @click="handleCamera(element.cameraIndexCode,element,index)"> <div class="video-item__inner" @click.stop="handleCamera(element.cameraIndexCode,element,index)">
<div <div
v-if="element.isDiy == 1" v-if="element.isDiy == 1"
class="video-item__follow" class="video-item__follow"
@@ -131,13 +131,15 @@
const isDiyChange = (val)=>{ const isDiyChange = (val)=>{
console.log(val,11222) console.log(val,11222)
isDiy.value = val isDiy.value = val
if(!val){
videoList.value[diyIndex.value].videos.forEach(async (it, i) => { videoList.value[diyIndex.value].videos = videoList.value[diyIndex.value].videos.filter(item => item.cameraIndexCode !== cameraIndexCode.value);
if(it.cameraIndexCode == cameraIndexCode.value){
it.isDiy = val
} }
}) // videoList.value[diyIndex.value].videos.forEach(async (it, i) => {
// if(it.cameraIndexCode == cameraIndexCode.value){
// it.isDiy = val
// }
// })
} }
const onStart = (res)=>{ const onStart = (res)=>{
@@ -185,7 +187,10 @@
} else { } else {
videoList.value[index].videos = videoList.value[index].videos.filter(item => item.cameraIndexCode !== id);
console.log('取消收藏',)
element.isDiy = 0 element.isDiy = 0
show.value = false
} }
// pubSub.publish('videoCollect', id) // pubSub.publish('videoCollect', id)
} }

View File

@@ -412,9 +412,9 @@
const handleCollectAdd = async (id, status, index) => { const handleCollectAdd = async (id, status, index) => {
await getColletDiyApi({ await getColletDiyApi({
cameraIndexCode:id, cameraIndexCode:id,
isDiy: status == 0 ? 1 : 0 isDiy: thisVideo.value.isDiy == 0 ? 1 : 0
}) })
if(status==1){ if(thisVideo.value.isDiy==1){
thisVideo.value.isDiy=0 thisVideo.value.isDiy=0
// videoList.value.forEach((item,index)=>{ // videoList.value.forEach((item,index)=>{
// if(item.cameraIndexCode==thisVideo.value.cameraIndexCode){ // if(item.cameraIndexCode==thisVideo.value.cameraIndexCode){

View File

@@ -1139,6 +1139,7 @@
align-items: center; align-items: center;
} }
.car-ship { .car-ship {
// width: vw(660);
width: 100%; width: 100%;
height: vh(250); height: vh(250);
} }