学员端小程序
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.6 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. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="学车进度"></topNavbar>
  4. <scroll-view class="scroll-view_w" scroll-x="true" @scroll="scroll" scroll-with-animation :scroll-into-view="'tab'+currentTab" >
  5. <view class="tabs">
  6. <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>
  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: 10
  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(e) {
  77. console.log(e)
  78. },
  79. changeTab(val) {
  80. this.currentTab = val.id
  81. }
  82. }
  83. }
  84. </script>
  85. <style lang="scss" scoped>
  86. @import '../../tabbar/learnCar/comp/comp.scss';
  87. .scroll-view_w {
  88. width: 100%;
  89. .tabs {
  90. display: flex;
  91. flex-wrap: nowrap;
  92. padding: 0 0rpx 0 32rpx;
  93. width: auto;
  94. .tab {
  95. width: 108rpx;
  96. height: 60rpx;
  97. border-radius: 8rpx;
  98. border: 2rpx solid #FFFFFF;
  99. font-size: 28rpx;
  100. color: #fff;
  101. text-align: center;
  102. line-height: 60rpx;
  103. margin-right: 28rpx;
  104. flex-shrink: 0;
  105. &.active {
  106. background-color: #fff;
  107. color: $themC;
  108. }
  109. &.all {
  110. width: 96rpx;
  111. }
  112. }
  113. .rightPad {
  114. min-width: 10rpx;
  115. height: 60rpx;
  116. }
  117. }
  118. }
  119. .learnStatus {
  120. margin-top: 24rpx;
  121. }
  122. </style>