洛阳学员端
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.

101 lines
2.0 KiB

7 months ago
  1. <template>
  2. <view class="coachItem">
  3. <view class="starBoxBg">{{ item.stars || '无'}}</view>
  4. <view class="info">
  5. <view class="avatar">
  6. <image :src="item.photoPath" mode="" v-if="$u.utils.isImagePath(item.photoPath)"></image>
  7. <image src="@/static/images/index/avatar.png" mode="" v-else></image>
  8. </view>
  9. <view class="name">{{ item.name}}</view>
  10. <view class="schoolName towRowText">{{ item.schoolName }}</view>
  11. </view>
  12. <!-- <view class="tags">
  13. <view class="tag" v-for="(item2,index) in 3" :key="index">没有字段</view>
  14. </view> -->
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. props: ['item'],
  20. data() {
  21. return {
  22. tagArr: ['']
  23. }
  24. },
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. .coachItem {
  29. width: 280rpx;
  30. background: #FFFFFF;
  31. border-radius: 20rpx;
  32. position: relative;
  33. padding: 0 20rpx;
  34. margin-right: 20rpx;
  35. .starBoxBg {
  36. width: 72rpx;
  37. height: 40rpx;
  38. background: $tagC;
  39. border-radius: 20rpx 0px 20rpx 0px;
  40. font-size: 28rpx;
  41. color: #fff;
  42. line-height: 40rpx;
  43. text-align: center;
  44. position: absolute;
  45. left: 0;
  46. top: 0;
  47. }
  48. .info {
  49. display: flex;
  50. flex-direction: column;
  51. align-items: center;
  52. justify-content: center;
  53. padding-top: 30rpx;
  54. .avatar {
  55. width: 120rpx;
  56. height: 120rpx;
  57. border-radius: 50%;
  58. overflow: hidden;
  59. }
  60. .name {
  61. font-size: 28rpx;
  62. color: #333;
  63. padding: 10rpx 0;
  64. }
  65. .schoolName {
  66. font-size: 24rpx;
  67. color: #999;
  68. margin-bottom: 16rpx;
  69. text-align: center;
  70. }
  71. }
  72. .tags {
  73. display: flex;
  74. justify-content: space-between;
  75. flex-wrap: wrap;
  76. .tag {
  77. width: 110rpx;
  78. height: 42rpx;
  79. background: rgba(80,165,255,0.1);
  80. border: 1px solid #50A5FF;
  81. border-radius: 10rpx;
  82. font-size: 20rpx;
  83. color: #50A5FF;
  84. text-align: center;
  85. margin-bottom: 20rpx;
  86. line-height: 42rpx;
  87. &:nth-child(even) {
  88. background: rgba(171,55,252,0.1);
  89. border: 1px solid #AB37FC;
  90. color: #AB37FC;
  91. }
  92. }
  93. }
  94. }
  95. </style>