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

100 lines
2.1 KiB

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