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

108 lines
2.6 KiB

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