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.

79 lines
1.4 KiB

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