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

98 lines
1.8 KiB

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