学员端小程序
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.

103 lines
2.0 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="tabCon">
  3. <view class="tab1">
  4. <view class="card" @click="$goPage('/pages/indexEntry/findShcool/coachComment/coachComment')">
  5. <view class="avatar">
  6. <image src="@/static/images/logo.png" mode=""></image>
  7. </view>
  8. <view class="rightCon">
  9. <view class="flex">
  10. <view class="name">王一宝</view>
  11. <view class="age">10年教龄</view>
  12. </view>
  13. <view class="flex-b">
  14. <view class="starBox">
  15. <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="4" disabled></u-rate>
  16. <view class="num">4.9</view>
  17. </view>
  18. <view class="btn" v-if="showSign">报名</view>
  19. <view class="more" v-else>
  20. <view class="moreText">查看详情</view>
  21. <u-icon name="arrow-right"></u-icon>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. props: ['showSign']
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .tabCon {
  36. width: 100%;
  37. .tab1 {
  38. width: 100%;
  39. .card {
  40. width: 100%;
  41. display: flex;
  42. align-items: center;
  43. padding: 36rpx;
  44. margin-top: 20rpx;
  45. .avatar {
  46. width: 100rpx;
  47. height: 98rpx;
  48. border-radius: 50%;
  49. margin-right: 34rpx;
  50. }
  51. .rightCon {
  52. flex: 1;
  53. width: 0;
  54. .flex {
  55. .name {
  56. font-size: 32rpx;
  57. color: #333;
  58. font-weight: 500;
  59. }
  60. .age {
  61. width: 142rpx;
  62. height: 40rpx;
  63. background: #E8F3FE;
  64. border-radius: 4rpx;
  65. color: $themC;
  66. text-align: center;
  67. line-height: 40rpx;
  68. margin-left: 24rpx;
  69. font-size: 24rpx;
  70. }
  71. }
  72. .flex-b {
  73. margin-top: 14rpx;
  74. .more {
  75. display: flex;
  76. align-items: center;
  77. .moreText {
  78. font-size: 24rpx;
  79. color: #686B73;
  80. margin-right: 10rpx;
  81. }
  82. }
  83. }
  84. }
  85. }
  86. }
  87. }
  88. .btn {
  89. width: 130rpx;
  90. height: 60rpx;
  91. background: #1989FA;
  92. border-radius: 8rpx;
  93. color: #fff;
  94. text-align: center;
  95. line-height: 60rpx;
  96. font-size: 28rpx;
  97. }
  98. </style>