<template>
	<view class="coachItem">
		<view class="starBoxBg">{{ item.stars || '无'}}</view>
		<view class="info">
			<view class="avatar">
				<image :src="item.photoPath" mode=""  v-if="$u.utils.isImagePath(item.photoPath)" lazy-load></image>
				<image src="@/static/images/index/avatar.png" mode=""  v-else></image>
			</view>
			<view class="name">{{ item.name}}</view>
			<view class="schoolName towRowText">{{ item.schoolName }}</view>
		</view>
		<!-- <view class="tags">
			<view class="tag" v-for="(item2,index) in 3" :key="index">没有字段</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		props: ['item'],
		data() {
			return {
				tagArr: ['']
			}
		},
		
	}
</script>

<style lang="scss" scoped>
	.coachItem {
		width: 280rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
		padding: 0 20rpx;
		position: relative;
		margin-right: 20rpx;
	  .starBoxBg {
		width: 72rpx;
		height: 40rpx;
		background: $tagC;
		border-radius: 20rpx 0px 20rpx 0px;
		font-size: 28rpx;
		color: #fff;
		line-height: 40rpx;
		text-align: center;
		position: absolute;
		left: 0;
		top: 0;
	  }
	
	  .info {
		  display: flex;
		  flex-direction: column;
		  align-items: center;
		  justify-content: center;
		  padding-top: 30rpx;
	    .avatar {
			width: 120rpx;
			height: 120rpx;
			border-radius: 50%;
			overflow: hidden;
	    }
	
	    .name {
			font-size: 28rpx;
			color: #333;
			padding: 10rpx 0;
	    }
	
	    .schoolName {
			font-size: 24rpx;
			color: #999;
			margin-bottom: 16rpx;
			text-align: center;
	    }
	  }
	
	  .tags {
		  display: flex;
		  justify-content: space-between;
		  flex-wrap: wrap;
	    .tag {
			width: 110rpx;
			height: 42rpx;
			background: rgba(80,165,255,0.1);
			border: 1px solid #50A5FF;
			border-radius: 10rpx;
			font-size: 20rpx;
			color: #50A5FF;
			text-align: center;
			margin-bottom: 20rpx;
			line-height: 42rpx;
			&:nth-child(even) {
				background: rgba(171,55,252,0.1);
				border: 1px solid #AB37FC;
				color: #AB37FC;
			}
	    }
	  }
	}
</style>