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

132 lines
2.4 KiB

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. <view class="pad">
  5. <view class="searchCon">
  6. <searchRow placeholder="搜索驾校、教练…"></searchRow>
  7. </view>
  8. <view class="navBox">
  9. <view class="tab" v-for="(item,index) in tabData" :key="index" :class="{active: index==0}">
  10. {{ item.text }}</view>
  11. <view class="screen" @click="$goPage('/pages/indexEntry/findShcool/screen/screen')">
  12. <view class="txt">筛选</view>
  13. <view class="screenIcon">
  14. <image src="../../../static/images/index/ic_shaixuan.png" mode=""></image>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="ul">
  19. <view class="li" v-for="(item,index) in 10" :key="index" @click="goPage">
  20. <schoolItme/>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import schoolItme from './comp/schoolItem.vue'
  28. export default {
  29. components: { schoolItme },
  30. data() {
  31. return {
  32. tabData: [{
  33. text: '全部',
  34. id: 0
  35. },
  36. {
  37. text: '场地优先',
  38. id: 0
  39. },
  40. {
  41. text: '距离优先',
  42. id: 0
  43. },
  44. {
  45. text: '好评优先',
  46. id: 0
  47. },
  48. ]
  49. }
  50. },
  51. methods: {
  52. goPage() {
  53. console.log(this.$goPage)
  54. this.$goPage('/pages/indexEntry/findShcool/shcoolDetail/shcoolDetail')
  55. }
  56. }
  57. }
  58. </script>
  59. <style lang="scss" scoped>
  60. .pageBgImg {
  61. width: 100%;
  62. min-height: 100vh;
  63. .searchCon {
  64. padding: 24rpx 0;
  65. }
  66. .navBox {
  67. display: flex;
  68. justify-content: space-between;
  69. padding-bottom: 48rpx;
  70. .tab {
  71. display: flex;
  72. font-size: 28rpx;
  73. color: #fff;
  74. &.active {
  75. position: relative;
  76. &::before {
  77. content: '';
  78. position: absolute;
  79. bottom: -14rpx;
  80. left: 50%;
  81. transform: translateX(-50%);
  82. width: 50rpx;
  83. height: 4rpx;
  84. background-color: #fff;
  85. border-radius: 0 0 2rpx 2rpx;
  86. }
  87. }
  88. }
  89. .screen {
  90. width: 150rpx;
  91. display: flex;
  92. justify-content: center;
  93. align-items: center;
  94. position: relative;
  95. &::before {
  96. content: '';
  97. position: absolute;
  98. left: 0;
  99. top: 10rpx;
  100. width: 1px;
  101. background: #fff;
  102. height: 26rpx;
  103. }
  104. .txt {
  105. font-size: 28rpx;
  106. color: #fff;
  107. margin-right: 10rpx;
  108. }
  109. .screenIcon {
  110. width: 32rpx;
  111. height: 32rpx;
  112. }
  113. }
  114. }
  115. .ul {
  116. width: 100%;
  117. .li {
  118. }
  119. }
  120. }
  121. </style>