江西小程序管理端
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="searchBox">
  6. <searchRow placeholder="搜索考场名称"></searchRow>
  7. </view>
  8. <view class="tabs">
  9. <view class="tab" v-for="(item,index) in tabData" :key="index" :class="{active: index==1}">{{ item.text }}</view>
  10. </view>
  11. <view class="list">
  12. <view class="card">
  13. <examinItem/>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import examinItem from './comp/examinItem'
  21. export default {
  22. components: { examinItem },
  23. data() {
  24. return {
  25. tabData: [
  26. {text: '全部', id: 1},
  27. {text: '理论', id: 2},
  28. {text: '科目二', id: 3},
  29. {text: '科目三', id: 4},
  30. ]
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .card {
  37. padding: 32rpx 36rpx 26rpx 24rpx;
  38. }
  39. .searchBox {
  40. padding: 20rpx 0;
  41. }
  42. .tabs {
  43. display: flex;
  44. justify-content: space-between;
  45. height: 110rpx;
  46. align-items: center;
  47. .tab {
  48. font-size: 28rpx;
  49. color: #fff;
  50. line-height: 110rpx;
  51. &.active {
  52. position: relative;
  53. &::before {
  54. content: '';
  55. width: 56rpx;
  56. height: 6rpx;
  57. background: #FFFFFF;
  58. border-radius: 3rpx;
  59. position: absolute;
  60. left: 50%;
  61. transform: translateX(-50%);
  62. bottom: 20rpx;
  63. }
  64. }
  65. }
  66. }
  67. </style>