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

68 lines
1.3 KiB

1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="找考场"></topNavbar>
  4. <view class="pad">
  5. <view class="search">
  6. <searchRow placeholder="搜索考场名称"/>
  7. </view>
  8. <view class="navBox">
  9. <view class="nav" v-for="(item,index) in navList" :key="index" :class="{active: index==0}">{{ item.text }}</view>
  10. </view>
  11. <view class="card">
  12. <examineItem></examineItem>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. import examineItem from '../comp/examineItem.vue'
  19. export default {
  20. components: {
  21. examineItem
  22. },
  23. data() {
  24. return {
  25. navList: [
  26. {text: '全部', id: 0},
  27. {text: '理论', id: 1},
  28. {text: '科目二', id: 2},
  29. {text: '科目三', id: 3},
  30. ]
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .pageBgImg {
  37. min-height: 100vh;
  38. }
  39. .navBox {
  40. display: flex;
  41. justify-content: space-between;
  42. padding: 24rpx 42rpx 36rpx 42rpx;
  43. .nav {
  44. display: flex;
  45. font-size: 28rpx;
  46. color: #fff;
  47. &.active {
  48. position: relative;
  49. &::before {
  50. content: '';
  51. position: absolute;
  52. bottom: -14rpx;
  53. left: 50%;
  54. transform: translateX(-50%);
  55. width: 50rpx;
  56. height: 4rpx;
  57. background-color: #fff;
  58. border-radius: 0 0 2rpx 2rpx;
  59. }
  60. }
  61. }
  62. }
  63. .card {
  64. padding: 32rpx 24rpx 28rpx 24rpx;
  65. margin-bottom: 20rpx;
  66. }
  67. </style>