增加视频播放页面

This commit is contained in:
2025-01-09 09:28:14 +08:00
parent b6eb3b0d35
commit 8572bebabb
16 changed files with 3098 additions and 104 deletions

View File

@@ -1,6 +1,7 @@
<template>
<view class="min-page">
<my-video-list @swiperChange="swiperChange" :list="state.list" :isCollect="state.isCollect" @share="share"
<my-video-list v-if="state.list.length" @swiperChange="swiperChange" :list="state.list" @update="update"
:info="state"
></my-video-list>
</view>
</template>
@@ -17,6 +18,9 @@
import {
slice
} from 'lodash'
const boxStyle={
height:'835px'
}
let options = {}
const state = reactive({
collect: 0,
@@ -30,6 +34,9 @@
Object.assign(state, res)
state.list = res.list
}
function update({index,item}){
state.list[index]=item
}
onLoad((opt) => {
Object.assign(options, opt)
init()
@@ -54,4 +61,8 @@
background-color: #000;
overflow: hidden;
}
.u-popup{
position: fixed;
}
</style>

View File

@@ -7,7 +7,7 @@
<script setup>
function toDetail(){
uni.navigateTo({
url:'/pages/video/detail'
url:'/pages/video/detail?courseId=1208'
})
}
</script>