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

127 lines
2.5 KiB

1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="学车进度"></topNavbar>
  4. <scroll-view class="scroll-view_w" scroll-x="true" @scroll="scroll" >
  5. <view class="tabs">
  6. <view class="tab" v-for="(item,index) in tabData" :key="index" @click="changeTab(item)" :class="{active: currentTab==item.id}">{{ item.text }}</view>
  7. <view class="rightPad"></view>
  8. </view>
  9. </scroll-view>
  10. <view class="pad learnStatus">
  11. <view class="card">
  12. <view class="flex-b">
  13. <view class="lab">模拟器训练学时报审</view>
  14. <view class="date">2023/08/09 22:52:12</view>
  15. </view>
  16. <view class="flex-b bg">
  17. <view class="row">
  18. <view class="text">评价模拟器教学老师</view>
  19. <view class="btn" @click="$goPage('/pages/carEntry/evaluate/evaluate')">去评价</view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="card">
  24. <view class="flex-b">
  25. <view class="lab">模拟器训练已预约</view>
  26. <view class="date">2023/08/09 22:52:12</view>
  27. </view>
  28. <view class="bg">
  29. <view class="row">
  30. <view class="text">模拟驾驶馆某某模拟驾驶馆</view>
  31. </view>
  32. <view class="row">
  33. <view class="text">模拟器编号00001</view>
  34. </view>
  35. <view class="row">
  36. <view class="text">预约时间2023/08/23 10:00:00</view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. tabData: [{
  48. text: '全部',
  49. id: -1
  50. },
  51. {
  52. text: '模拟器',
  53. id: 0
  54. },
  55. {
  56. text: '科目一',
  57. id: 1
  58. },
  59. {
  60. text: '科目二',
  61. id: 2
  62. },
  63. {
  64. text: '科目三',
  65. id: 3
  66. },
  67. {
  68. text: '科目四',
  69. id: 4
  70. },
  71. ],
  72. currentTab: -1,
  73. }
  74. },
  75. methods: {
  76. scroll() {
  77. },
  78. changeTab(val) {
  79. this.currentTab = val.id
  80. }
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. @import '../../tabbar/learnCar/comp/comp.scss';
  86. .scroll-view_w {
  87. width: 100%;
  88. .tabs {
  89. display: flex;
  90. flex-wrap: nowrap;
  91. padding: 0 0rpx 0 32rpx;
  92. width: auto;
  93. .tab {
  94. width: 108rpx;
  95. height: 60rpx;
  96. border-radius: 8rpx;
  97. border: 2rpx solid #FFFFFF;
  98. font-size: 28rpx;
  99. color: #fff;
  100. text-align: center;
  101. line-height: 60rpx;
  102. margin-right: 28rpx;
  103. flex-shrink: 0;
  104. &.active {
  105. background-color: #fff;
  106. color: $themC;
  107. }
  108. &.all {
  109. width: 96rpx;
  110. }
  111. }
  112. .rightPad {
  113. min-width: 10rpx;
  114. height: 60rpx;
  115. }
  116. }
  117. }
  118. .learnStatus {
  119. margin-top: 24rpx;
  120. }
  121. </style>