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.
 
 
 
 
 
zhishifufei_uniapp/components/RelatedLecturer/index.vue

99 lines
1.8 KiB

<template>
<view class="bind-lecturer">
<view class="bind-lecturer-hd">相关讲师</view>
<view class="bind-lecturer-bd">
<navigator class="item" :url="`/pages/merchant/teacher_detail?id=${lecturer.id}`">
<view>
<image :src="lecturer.lecturer_head" />
</view>
<view class="item-bd">
<view class="name">{{ lecturer.lecturer_name }}</view>
<view class="tag-group">
<text v-for="(label, idx) of lecturer.label" :key="idx" class="tag">{{
label
}}</text>
</view>
</view>
<i class="iconfont iconxiangyou"></i>
</navigator>
</view>
</view>
</template>
<script>
export default {
props: {
lecturer: Object,
},
};
</script>
<style scoped lang="scss">
.bind-lecturer {
padding: 30rpx;
border-top: 14rpx solid #f5f5f5;
background-color: #ffffff;
}
.bind-lecturer-hd {
font-weight: 500;
font-size: 32rpx;
line-height: 45rpx;
color: #282828;
}
.bind-lecturer-bd {
margin-top: 20rpx;
}
.bind-lecturer .item {
display: flex;
align-items: center;
padding: 30rpx;
border-radius: 4rpx;
background-color: #f7f7f7;
}
.bind-lecturer image {
width: 90rpx;
height: 90rpx;
border-radius: 50%;
vertical-align: middle;
}
.bind-lecturer .item-bd {
flex: 1;
padding: 0 18rpx;
}
.bind-lecturer .name {
font-weight: 500;
font-size: 30rpx;
line-height: 30rpx;
color: #282828;
}
.bind-lecturer .tag-group {
margin-top: 4rpx;
}
.bind-lecturer .tag {
display: inline-block;
padding: 2rpx 12rpx;
border-radius: 4rpx;
margin-right: 5rpx;
background-color: #fff0e5;
font-size: 22rpx;
line-height: 30rpx;
color: #ff6b00;
}
.bind-lecturer .tag:last-child {
margin-right: 0;
}
.bind-lecturer .iconfont {
font-size: 24rpx;
color: #333333;
}
</style>