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

102 lines
2.1 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="itemBox" >
  3. <view class="img">
  4. <image :src="item.photoPath" mode="" v-if="$u.utils.isImagePath(item.photoPath)"></image>
  5. <image src="@/static/images/index/avatar.png" mode="" v-else></image>
  6. </view>
  7. <view class="textCon">
  8. <view class="name oneRowText">{{item.name}}</view>
  9. <view class="flex-b">
  10. <view class="flex">
  11. <view class="starBox">
  12. <view class="num">{{item.stars || '无'}}</view>
  13. </view>
  14. <view class="pingjia" v-if="item.commentTotal">{{item.commentTotal }}条评价</view>
  15. </view>
  16. <callPhone v-if="showPhone&&item.mobile" :servicePhone="[{name: item.mobile}]">
  17. <view class="pozPhone">
  18. <image src="@/static/images/indexIcon/phone.png" mode=""></image>
  19. </view>
  20. </callPhone>
  21. </view>
  22. <view class="adr"><text style="margin-right: 6rpx;">{{item.districtName}}</text> <text v-if="item.distance">距您{{ $u.utils.distanceFn(item.distance)}}</text></view>
  23. <!-- <view class="credit">行业信用 <text v-if="item.creditrating">{{item.creditrating}}</text></view> -->
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. props: {
  30. showPhone: {
  31. type: Boolean,
  32. default: true
  33. },
  34. item: {
  35. type: Object,
  36. default: {}
  37. }
  38. },
  39. methods: {
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .itemBox {
  45. background: #FFFFFF;
  46. border-radius: 16rpx;
  47. padding: 20rpx;
  48. position: relative;
  49. display: flex;
  50. // border-bottom: 1px solid #F4F4F4;
  51. margin-bottom: 20rpx;
  52. }
  53. .img {
  54. width: 134rpx;
  55. height: 134rpx;
  56. background: #f6f6f6;
  57. border-radius: 50%;
  58. overflow: hidden;
  59. flex-shrink: 0;
  60. }
  61. .textCon {
  62. flex: 1;
  63. font-size: 24rpx;
  64. padding: 0 0 0 20rpx;
  65. width: 0;
  66. .name {
  67. font-size: 28rpx;
  68. margin-top: 4rpx;
  69. color: #363A44;
  70. }
  71. .starBox {
  72. margin: 10rpx 0;
  73. }
  74. .pingjia {
  75. font-size: 24rpx;
  76. color: #999;
  77. margin-left: 14rpx;
  78. }
  79. .credit {
  80. color: #1989FA;
  81. margin-bottom: 4rpx;
  82. }
  83. .adr {
  84. color: #999;
  85. font-size: 24rpx;
  86. }
  87. }
  88. .pozPhone {
  89. width: 55rpx;
  90. height: 55rpx;
  91. margin-top: 14rpx;
  92. }
  93. </style>