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

117 lines
2.4 KiB

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
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. <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="@/static/images/logo.png" mode=""></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. border-radius: 8rpx;
  51. overflow: hidden;
  52. }
  53. .textCon {
  54. flex: 1;
  55. padding: 0 0 0 36rpx;
  56. .name {
  57. font-size: 32rpx;
  58. font-weight: 600;
  59. margin-bottom: 24rpx;
  60. }
  61. .starBox {
  62. padding: 10rpx 0 20rpx 0;
  63. }
  64. .modeCar {
  65. font-size: 24rpx;
  66. color: #686B73;
  67. }
  68. }
  69. .pozPhone {
  70. position: absolute;
  71. top: 50%;
  72. right: 20rpx;
  73. width: 72rpx;
  74. height: 72rpx;
  75. transform: translateY(-50%);
  76. }
  77. }
  78. .redBox {
  79. width: 100%;
  80. display: flex;
  81. background: #FBE8EA;
  82. height: 40rpx;
  83. align-items: center;
  84. margin-top: 34rpx;
  85. overflow: hidden;
  86. .icon {
  87. width: 40rpx;
  88. image {
  89. width: 28rpx;
  90. height: 28rpx;
  91. margin-left: auto;
  92. }
  93. }
  94. .marqueeW {
  95. width: 0;
  96. flex: 1;
  97. }
  98. }
  99. .minText {
  100. display: flex;
  101. align-items: center;
  102. padding-left: 20rpx;
  103. .redTxt {
  104. color: #C12727;
  105. font-size: 24rpx;
  106. padding-left: 20rpx;
  107. }
  108. }
  109. </style>