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

118 lines
2.5 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year 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. import marquee from './marquee'
  34. export default {
  35. props: ['item'],
  36. components: { marquee },
  37. data() {
  38. return {
  39. text1: '免费开放日:2023/08/08 '
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .flex {
  46. position: relative;
  47. .cover {
  48. width: 204rpx;
  49. height: 140rpx;
  50. background-color: #f5f5f5;
  51. border-radius: 8rpx;
  52. overflow: hidden;
  53. }
  54. .textCon {
  55. flex: 1;
  56. padding: 0 0 0 36rpx;
  57. .name {
  58. font-size: 32rpx;
  59. font-weight: 600;
  60. margin-bottom: 24rpx;
  61. }
  62. .starBox {
  63. padding: 10rpx 0 20rpx 0;
  64. }
  65. .modeCar {
  66. font-size: 24rpx;
  67. color: #686B73;
  68. }
  69. }
  70. .pozPhone {
  71. position: absolute;
  72. top: 50%;
  73. right: 20rpx;
  74. width: 72rpx;
  75. height: 72rpx;
  76. transform: translateY(-50%);
  77. }
  78. }
  79. .redBox {
  80. width: 100%;
  81. display: flex;
  82. background: #FBE8EA;
  83. height: 40rpx;
  84. align-items: center;
  85. margin-top: 34rpx;
  86. overflow: hidden;
  87. .icon {
  88. width: 40rpx;
  89. image {
  90. width: 28rpx;
  91. height: 28rpx;
  92. margin-left: auto;
  93. }
  94. }
  95. .marqueeW {
  96. width: 0;
  97. flex: 1;
  98. }
  99. }
  100. .minText {
  101. display: flex;
  102. align-items: center;
  103. padding-left: 20rpx;
  104. .redTxt {
  105. color: #C12727;
  106. font-size: 24rpx;
  107. padding-left: 20rpx;
  108. }
  109. }
  110. </style>