洛阳学员端
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.2 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
5 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. background: url('../../../../static/images/bigImg/jlcbg.png') no-repeat;
  63. background-size: cover;
  64. }
  65. .textCon {
  66. flex: 1;
  67. font-size: 24rpx;
  68. padding: 0 0 0 20rpx;
  69. width: 0;
  70. .name {
  71. font-size: 26rpx;
  72. margin-top: 4rpx;
  73. color: #363A44;
  74. }
  75. .starBox {
  76. margin: 10rpx 10rpx 10rpx 0;
  77. }
  78. .credit {
  79. color: #1989FA;
  80. margin-bottom: 4rpx;
  81. }
  82. .adr {
  83. color: #999;
  84. font-size: 24rpx;
  85. }
  86. }
  87. .pozPhone {
  88. width: 55rpx;
  89. height: 55rpx;
  90. margin-top: 10rpx;
  91. }
  92. </style>