江西小程序管理端
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.

92 lines
1.8 KiB

  1. <template>
  2. <view class="tabCon">
  3. <view class="tab1">
  4. <view class="card" >
  5. <view class="flex">
  6. <view class="avatar">
  7. <image :src="item.photoPath" mode="" @error="handleImageError(item)"></image>
  8. </view>
  9. <view class="rightCon">
  10. <view class="name">{{ item.name }}</view>
  11. <view class="flex-b">
  12. <view class="starBox">
  13. <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="item.stars" disabled style="pointer-events: none;"></u-rate>
  14. <view class="num">{{item.stars}}</view>
  15. </view>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="text">证件号{{item.idcard}}</view>
  20. <view class="text">联系电话{{item.mobile}}</view>
  21. <view class="text">绑定学员<text>暂时没字段</text></view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. props: ['item', ],
  29. methods: {
  30. handleImageError(item) {
  31. item.photoPath = require('@/static/images/index/avatar.png')
  32. }
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .tabCon {
  38. width: 100%;
  39. .tab1 {
  40. width: 100%;
  41. .card {
  42. width: 100%;
  43. padding: 36rpx;
  44. // margin-top: 20rpx;
  45. .flex {
  46. margin-bottom: 20rpx;
  47. }
  48. .text {
  49. font-size: 28rpx;
  50. padding: 10rpx 0;
  51. text {
  52. color: $themC;
  53. }
  54. }
  55. .avatar {
  56. width: 100rpx;
  57. height: 98rpx;
  58. border-radius: 50%;
  59. margin-right: 34rpx;
  60. background-color: #f6f6f6;
  61. }
  62. .rightCon {
  63. flex: 1;
  64. width: 0;
  65. .name {
  66. font-size: 32rpx;
  67. color: #333;
  68. font-weight: 500;
  69. }
  70. .flex-b {
  71. margin-top: 14rpx;
  72. .more {
  73. display: flex;
  74. align-items: center;
  75. .moreText {
  76. font-size: 24rpx;
  77. color: #686B73;
  78. margin-right: 10rpx;
  79. }
  80. }
  81. }
  82. }
  83. }
  84. }
  85. }
  86. </style>