You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.0 KiB

1 year ago
<template>
<view class="container">
<image class="cbg" src="../../static/common_bg.png"></image>
<view class="wrap">
<view v-if="list.length>0">
<view style="border:1px solid red" @click="toUrl(item.id)" v-for="item in list">
</view>
</view>
<view class="nodata" v-else>
<u-empty mode="data"></u-empty>
</view>
</view>
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
list:[]
}
},
onLoad(options) {
this.getMyCourseTxl(options.id)
},
methods:{
async getMyCourseTxl(id){
const res = await this.$u.api.courseUserList({
course_id:id,
type:2
})
this.list = res.list
},
}
}
</script>
<style scoped lang="scss">
.container {
padding: 30rpx;
width: 100%;
height: 100vh;
.cbg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100vh;
}
.wrap {
position: relative;
.nodata{
height:100vh;
}
}
}
</style>