This commit is contained in:
2025-01-10 18:25:27 +08:00
2 changed files with 145 additions and 139 deletions

View File

@@ -25,11 +25,9 @@
})
function seVideo(item) {
// uni.navigateTo({
// url: '/me/detail/detail?id=' + item.courseId + '&courseDetailsId=' + item.courseDetailsId +
// '&tt_album_id=' + item.dyCourseId + '&tt_episode_id=' + item
// .dyEpisodeId
// })
uni.navigateTo({
url:"/pages/video/detail?courseId="+item.courseId+"&courseDetailsId="+item.courseDetailsId
})
}
</script>

View File

@@ -54,30 +54,38 @@
</template>
<script setup>
import {
import {
reactive,
watch
} from "vue";
import {
onShow, onReachBottom
} from '@dcloudio/uni-app'
const props = defineProps({
} from "vue";
import {
onShow,
onReachBottom
} from '@dcloudio/uni-app'
const props = defineProps({
list: {
type: Array,
default: []
},
})
let datas = reactive({
})
let datas = reactive({
arrListLeft: [], //左边数据
arrListRight: [], //右边数据
})
onShow(() => {
})
onShow(() => {
spliceArrayListr()
})
watch(() => props.list, () => {
})
watch(() => props.list, () => {
spliceArrayListr()
})
function spliceArrayListr() {
})
function clickItem(item) {
uni.navigateTo({
url: "/pages/video/detail?courseId=" + item.courseId + "&courseDetailsId=" + item.courseDetailsId
})
}
function spliceArrayListr() {
datas.arrListRight = []
datas.arrListLeft = []
props.list.map((item, index) => {
@@ -87,10 +95,10 @@ function spliceArrayListr() {
datas.arrListRight.push(item)
}
})
}
}
</script>
<style lang="scss">
.list {
.list {
width: 100%;
height: auto;
display: flex;
@@ -215,5 +223,5 @@ function spliceArrayListr() {
margin-top: 10rpx;
padding: 0 20rpx;
}
}
}
</style>