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

191 lines
3.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 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. <view class="img">
  21. <image src="../../../static/images/logo.png" mode=""></image>
  22. </view>
  23. <view class="textCon">
  24. <view class="name">江西海正驾校</view>
  25. <view class="starBox">
  26. <u-rate active-color="#1989FA" inactive-color="#1989FA" gutter="1" :size="16" :value="4" disabled></u-rate>
  27. <view class="num">4.9</view>
  28. </view>
  29. <view class="credit">行业信用AA</view>
  30. <view class="adr">距您1000.99公里</view>
  31. </view>
  32. <view class="pozPhone">
  33. <image src="@/static/images/index/telephone.png" mode=""></image>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. tabData: [{
  45. text: '全部',
  46. id: 0
  47. },
  48. {
  49. text: '场地优先',
  50. id: 0
  51. },
  52. {
  53. text: '距离优先',
  54. id: 0
  55. },
  56. {
  57. text: '好评优先',
  58. id: 0
  59. },
  60. ]
  61. }
  62. },
  63. methods: {
  64. goPage() {
  65. console.log(this.$goPage)
  66. this.$goPage('/pages/indexEntry/findShcool/shcoolDetail/shcoolDetail')
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .pageBgImg {
  73. width: 100%;
  74. min-height: 100vh;
  75. .searchCon {
  76. padding: 24rpx 0;
  77. }
  78. .navBox {
  79. display: flex;
  80. justify-content: space-between;
  81. padding-bottom: 48rpx;
  82. .tab {
  83. display: flex;
  84. font-size: 28rpx;
  85. color: #fff;
  86. &.active {
  87. position: relative;
  88. &::before {
  89. content: '';
  90. position: absolute;
  91. bottom: -14rpx;
  92. left: 50%;
  93. transform: translateX(-50%);
  94. width: 50rpx;
  95. height: 4rpx;
  96. background-color: #fff;
  97. border-radius: 0 0 2rpx 2rpx;
  98. }
  99. }
  100. }
  101. .screen {
  102. width: 150rpx;
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. position: relative;
  107. &::before {
  108. content: '';
  109. position: absolute;
  110. left: 0;
  111. top: 10rpx;
  112. width: 1px;
  113. background: #fff;
  114. height: 26rpx;
  115. }
  116. .txt {
  117. font-size: 28rpx;
  118. color: #fff;
  119. margin-right: 10rpx;
  120. }
  121. .screenIcon {
  122. width: 32rpx;
  123. height: 32rpx;
  124. }
  125. }
  126. }
  127. .ul {
  128. width: 100%;
  129. .li {
  130. height: 208rpx;
  131. background: #FFFFFF;
  132. border-radius: 16rpx;
  133. padding: 24rpx;
  134. position: relative;
  135. display: flex;
  136. margin-bottom: 20rpx;
  137. .img {
  138. width: 204rpx;
  139. height: 140rpx;
  140. background: #FFFFFF;
  141. }
  142. .textCon {
  143. flex: 1;
  144. font-size: 24rpx;
  145. padding: 0 0 0 36rpx;
  146. .name {
  147. font-size: 32rpx;
  148. color: #363A44;
  149. font-weight: 600;
  150. }
  151. .starBox {
  152. display: flex;
  153. padding: 6rpx 0 6rpx 0;
  154. .num {
  155. color: $themC;
  156. }
  157. }
  158. .credit {
  159. color: #1989FA;
  160. margin-bottom: 4rpx;
  161. }
  162. .adr {
  163. color: #363A44;
  164. }
  165. }
  166. .pozPhone {
  167. position: absolute;
  168. top: 50%;
  169. right: 48rpx;
  170. width: 72rpx;
  171. height: 72rpx;
  172. transform: translateY(-50%);
  173. }
  174. }
  175. }
  176. }
  177. </style>