类型:开发

描述:
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}`)

View File

@@ -24,9 +24,9 @@
>
<span class="statistic-title">{{ item.name }}</span>
<span v-if="item.value > 0" class="statistic-value">
<span class="prefix">排队</span>
<countup class="value" :end-val="item.value" />
<span class="suffix"></span>
<span class="prefix" :class="{ active: item.type == 2}">排队</span>
<countup class="value" :class="{ active: item.type == 2}" :end-val="item.value" />
<span class="suffix" :class="{ active: item.type == 2}"></span>
</span>
<span v-else class="statistic-value">暂无</span>
</div>
@@ -129,7 +129,7 @@
<TicketSource :list="homeStore.userPortraitData.channel" :width="230" :height="260" />
</div>
</div>
</div>
<all-list :events="events" v-model="allShow" />
</template>
@@ -150,7 +150,7 @@
ssname: '直通车购票'
}
])
const homeStore = useHomeStore()
const countList = ref([])
const CheckClick = (index)=>{
@@ -257,6 +257,7 @@
&:nth-child(1) {
margin-right: vw(10);
}
.statistic {
display: flex;
margin-top: vh(12);
@@ -287,11 +288,13 @@
.value {
font-weight: bold;
font-size: vw(28);
}
.active{
color: #ff4400;
}
.prefix,
.suffix {
color: #ff4400;
font-size: vw(12);
margin-bottom: vh(4);
}

View File

@@ -370,8 +370,7 @@
color: #ffffff;
}
.error {
color: #F15A25;
color:#DCBB48;
color:#DCBB48;
}
.success {
color: #02F9FA;

View File

@@ -70,7 +70,6 @@
homeStore.setTrafficInfoData(val)
break
case 'carStopInfo':
console.log(val,'carStopInfocarStopInfocarStopInfocarStopInfocarStopInfo')
homeStore.setCarStopInfoData(val)
break
case 'carShipData':
@@ -97,6 +96,13 @@
scenicSpotId: ''
})
)
sendMessage(
JSON.stringify({
action: 'start',
type: 'queuingInScenicSpots',
scenicSpotId: ''
})
)
sendMessage(
JSON.stringify({
action: 'start',