洛阳学员端
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.

145 lines
3.0 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="pageBg">
  3. <view class="tabs">
  4. <view class="tab" v-for="(item,index) in tabData" :key="index" @click="changeTab(item)" :class="{active: currentTab==item.id}" :id="'tab'+item.id">{{ item.text }}</view>
  5. <view class="rightPad"></view>
  6. </view>
  7. <view class="pad learnStatus">
  8. <view class="card">
  9. <view class="flex-b top_row">
  10. <view class="lab">科目一阶段</view>
  11. <view class="btn status">已完成</view>
  12. </view>
  13. <view class="date-row">2023-08-09 22:52:12</view>
  14. </view>
  15. <!-- <view class="card">
  16. <view class="flex-b top_row">
  17. <view class="lab">科目一考试</view>
  18. <view class="btn status">已预约</view>
  19. </view>
  20. <view class="date-row">2023-08-09 22:52:12</view>
  21. <view class="flex-b bg">
  22. <view class="row">
  23. <view class="text">科目二</view>
  24. <view class="btn" @click="$goPage('/pages/carEntry/evaluate/evaluate')">去评价</view>
  25. </view>
  26. </view>
  27. </view> -->
  28. <view class="card">
  29. <view class="flex-b top_row">
  30. <view class="lab">科目二考试</view>
  31. <view class="btn">已预约</view>
  32. </view>
  33. <view class="date-row">2023-08-09 22:52:12</view>
  34. <view class="bg">
  35. <view class="row">
  36. <view class="text">考试场地某某科目二考场</view>
  37. </view>
  38. <view class="row">
  39. <view class="text">考试时间2023-08-23 10:00:00</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="card">
  44. <view class="flex-b top_row">
  45. <view class="lab">科目一考试</view>
  46. <view class="btn red status">未通过</view>
  47. </view>
  48. <view class="date-row">2023-08-09 22:52:12</view>
  49. </view>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. tabData: [{
  58. text: '全部',
  59. id: 10
  60. },
  61. {
  62. text: '科目一',
  63. id: 1
  64. },
  65. {
  66. text: '科目二',
  67. id: 2
  68. },
  69. {
  70. text: '科目三',
  71. id: 3
  72. },
  73. {
  74. text: '科目四',
  75. id: 4
  76. },
  77. ],
  78. currentTab: 10,
  79. }
  80. },
  81. methods: {
  82. scroll(e) {
  83. console.log(e)
  84. },
  85. changeTab(val) {
  86. this.currentTab = val.id
  87. }
  88. }
  89. }
  90. </script>
  91. <style lang="scss" scoped>
  92. @import '../../tabbar/learnCar/comp/comp.scss';
  93. .date-row {
  94. line-height: 88rpx;
  95. color: #999;
  96. border-top: 1px solid #F6F7FA;
  97. }
  98. .top_row {
  99. height: 88rpx;
  100. }
  101. .red {
  102. background-color: #FF7D7D !important;
  103. }
  104. .tabs {
  105. display: flex;
  106. justify-content: space-between;
  107. .tab {
  108. min-width: 108rpx;
  109. height: 88rpx;
  110. font-size: 28rpx;
  111. color: #333;
  112. text-align: center;
  113. line-height: 88rpx;
  114. margin-right: 28rpx;
  115. &.active {
  116. color: $themC;
  117. position: relative;
  118. &::before {
  119. position: absolute;
  120. content: '';
  121. width: 34rpx;
  122. height: 4rpx;
  123. background: #3776FF;
  124. border-radius: 2rpx;
  125. bottom: 10rpx;
  126. left: 50%;
  127. transform: translateX(-50%);
  128. }
  129. }
  130. }
  131. .rightPad {
  132. min-width: 10rpx;
  133. height: 60rpx;
  134. }
  135. }
  136. .learnStatus {
  137. margin-top: 24rpx;
  138. }
  139. </style>