new_app/pages/video/detail.nvue

34 lines
581 B
Plaintext

<template>
<view class="min-page">
<my-video-list></my-video-list>
</view>
</template>
<script setup>
import {onLoad,onShow} from '@dcloudio/uni-app'
import * as Api from '@/api/video/index.js'
let options={}
onLoad((opt)=>{
Object.assign(options,opt)
try {
Api.getVideoDetail(options)
} catch (error) {
console.log(error)
setTimeout(()=>{
uni.navigateBack()
},500)
//TODO handle the exception
}
})
onShow(()=>{
})
</script>
<style lang="scss" scoped>
.min-page{
height: 100vh;
background-color: #000;
overflow: hidden;
}
</style>