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.3 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 class="wrap-item" @click="toUrl(item.id)" v-for="item in list">
1 year ago
<view class="wrap-item-name">{{item.username}}</view>
1 year ago
<view>{{item.company_name}}</view>
<view>{{item.company_position}}</view>
</view>
</view>
<view class="nodata" v-else>
<u-empty mode="data"></u-empty>
</view>
</view>
</view>
</template>
<script>
export default {
components: {},
data() {
return {
list: []
}
},
1 year ago
onLoad() {
this.getMyCourseTxl()
1 year ago
},
methods: {
1 year ago
async getMyCourseTxl() {
1 year ago
const res = await this.$u.api.courseUserList({
// course_id: id,
type: 1
})
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;
}
&-item {
1 year ago
margin: 30rpx 0;
1 year ago
padding: 30rpx;
background-color: #fff;
1 year ago
border-radius: 20rpx;
&>view{
margin-bottom:10rpx;
}
&-name{
font-size: 32rpx;
color:#333;
}
1 year ago
}
}
}
</style>