学员端小程序
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.

91 lines
1.6 KiB

  1. <template>
  2. <view class="box" >
  3. <view class="img">
  4. <image src="@/static/images/logo.png" mode=""></image>
  5. </view>
  6. <view class="textCon">
  7. <view class="name">{{ item.shortName }}</view>
  8. <view class="starBox">
  9. <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="item.stars" :readonly="true" style="pointer-events: none;"></u-rate>
  10. <view class="num">{{item.stars}}</view>
  11. </view>
  12. <view class="credit">行业信用{{item.creditrating}}</view>
  13. <view class="adr">距您1000.99公里</view>
  14. </view>
  15. <callPhone v-if="showPhone" :servicePhone="[{name: item.phone}]">
  16. <view class="pozPhone">
  17. <image src="@/static/images/index/telephone.png" mode=""></image>
  18. </view>
  19. </callPhone>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. showPhone: {
  26. type: Boolean,
  27. default: true
  28. },
  29. item: {
  30. type: Object,
  31. default: {}
  32. }
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .box {
  40. background: #FFFFFF;
  41. border-radius: 16rpx;
  42. padding: 24rpx;
  43. position: relative;
  44. display: flex;
  45. margin-bottom: 20rpx;
  46. }
  47. .img {
  48. width: 204rpx;
  49. height: 140rpx;
  50. background: #FFFFFF;
  51. }
  52. .textCon {
  53. flex: 1;
  54. font-size: 24rpx;
  55. padding: 0 0 0 36rpx;
  56. .name {
  57. font-size: 32rpx;
  58. color: #363A44;
  59. font-weight: 600;
  60. }
  61. .starBox {
  62. display: flex;
  63. padding: 6rpx 0 6rpx 0;
  64. .num {
  65. color: $themC;
  66. }
  67. }
  68. .credit {
  69. color: #1989FA;
  70. margin-bottom: 4rpx;
  71. }
  72. .adr {
  73. color: #363A44;
  74. }
  75. }
  76. .pozPhone {
  77. position: absolute;
  78. top: 50%;
  79. right: 20rpx;
  80. width: 72rpx;
  81. height: 72rpx;
  82. transform: translateY(-50%);
  83. }
  84. </style>