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

85 lines
1.5 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">江西海正驾校</view>
  8. <view class="starBox">
  9. <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="4" disabled></u-rate>
  10. <view class="num">4.9</view>
  11. </view>
  12. <view class="credit">行业信用AA</view>
  13. <view class="adr">距您1000.99公里</view>
  14. </view>
  15. <callPhone v-if="showPhone">
  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. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .box {
  34. height: 208rpx;
  35. background: #FFFFFF;
  36. border-radius: 16rpx;
  37. padding: 24rpx;
  38. position: relative;
  39. display: flex;
  40. margin-bottom: 20rpx;
  41. }
  42. .img {
  43. width: 204rpx;
  44. height: 140rpx;
  45. background: #FFFFFF;
  46. }
  47. .textCon {
  48. flex: 1;
  49. font-size: 24rpx;
  50. padding: 0 0 0 36rpx;
  51. .name {
  52. font-size: 32rpx;
  53. color: #363A44;
  54. font-weight: 600;
  55. }
  56. .starBox {
  57. display: flex;
  58. padding: 6rpx 0 6rpx 0;
  59. .num {
  60. color: $themC;
  61. }
  62. }
  63. .credit {
  64. color: #1989FA;
  65. margin-bottom: 4rpx;
  66. }
  67. .adr {
  68. color: #363A44;
  69. }
  70. }
  71. .pozPhone {
  72. position: absolute;
  73. top: 50%;
  74. right: 20rpx;
  75. width: 72rpx;
  76. height: 72rpx;
  77. transform: translateY(-50%);
  78. }
  79. </style>