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

116 lines
2.4 KiB

1 year ago
12 months ago
1 year ago
1 year ago
12 months ago
1 year ago
12 months ago
1 year ago
12 months ago
1 year ago
12 months ago
1 year ago
12 months ago
1 year ago
12 months ago
1 year ago
1 year ago
12 months ago
1 year ago
12 months ago
1 year ago
12 months ago
1 year ago
  1. <template>
  2. <view class="li" @click="$goPage('/pages/indexEntry/examines/detail/detail?id='+ item.id)">
  3. <view class="flex">
  4. <view class="cover">
  5. <image :src="item.images" mode="" v-if="item.images"></image>
  6. </view>
  7. <view class="textCon">
  8. <view class="name">{{ item.name}}</view>
  9. <!-- <view class="starBox">
  10. <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="4" :readonly="true"></u-rate>
  11. <view class="num">4.9</view>
  12. </view> -->
  13. <view class="modeCar">准考车型{{item.carType}}</view>
  14. </view>
  15. <callPhone :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. <view class="redBox" v-if="item.notification&&item.notification.length">
  22. <!-- <view class="marqueeW"> -->
  23. <!-- </view> -->
  24. <view class="minText" v-if="item.notification.length<24">
  25. <u-icon name="volume" color="#C12727" size="18"></u-icon>
  26. <view class="redTxt">{{ item.notification }}</view>
  27. </view>
  28. <u-notice-bar :text="item.notification" bgColor="#FBE8EA" color="#C12727" fontSize="12" v-else></u-notice-bar>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. props: ['item'],
  35. data() {
  36. return {
  37. text1: '免费开放日:2023/08/08 '
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .flex {
  44. position: relative;
  45. .cover {
  46. width: 204rpx;
  47. height: 140rpx;
  48. background-color: #f5f5f5;
  49. border-radius: 8rpx;
  50. overflow: hidden;
  51. }
  52. .textCon {
  53. flex: 1;
  54. padding: 0 0 0 36rpx;
  55. .name {
  56. font-size: 32rpx;
  57. font-weight: 600;
  58. margin-bottom: 24rpx;
  59. }
  60. .starBox {
  61. padding: 10rpx 0 20rpx 0;
  62. }
  63. .modeCar {
  64. font-size: 24rpx;
  65. color: #686B73;
  66. }
  67. }
  68. .pozPhone {
  69. position: absolute;
  70. top: 50%;
  71. right: 20rpx;
  72. width: 72rpx;
  73. height: 72rpx;
  74. transform: translateY(-50%);
  75. }
  76. }
  77. .redBox {
  78. width: 100%;
  79. display: flex;
  80. background: #FBE8EA;
  81. height: 40rpx;
  82. align-items: center;
  83. margin-top: 34rpx;
  84. overflow: hidden;
  85. .icon {
  86. width: 40rpx;
  87. image {
  88. width: 28rpx;
  89. height: 28rpx;
  90. margin-left: auto;
  91. }
  92. }
  93. .marqueeW {
  94. width: 0;
  95. flex: 1;
  96. }
  97. }
  98. .minText {
  99. display: flex;
  100. align-items: center;
  101. padding-left: 20rpx;
  102. .redTxt {
  103. color: #C12727;
  104. font-size: 24rpx;
  105. padding-left: 20rpx;
  106. }
  107. }
  108. </style>